POST api/ApxDms/PostSaveSalesData
Request Information
URI Parameters
None.
Body Parameters
SalesDataName | Description | Type | Additional information |
---|---|---|---|
salesHeaderData | SalesHeaderData |
None. |
|
salesPrimaryData | SalesPrimaryData |
None. |
|
salesBillingAddress | SalesBillingAddress |
None. |
|
salesDeliveryAddress | SalesDeliveryAddress |
None. |
|
salesSecondaryData | Collection of SalesSecondaryData |
None. |
|
salesTradeAdditionDeductionData | Collection of SalesTradeAdditionDeductionData |
None. |
|
salesCollectedPayments | Collection of SalesCollectedPayments |
None. |
|
salesGiftVouchers | Collection of SalesGiftVoucher |
None. |
|
salesAdditionalDetails | SalesAdditionalDetails |
None. |
Request Formats
application/json, text/json
Sample:
{ "salesHeaderData": { "CompanyCode": "sample string 1", "TransType": "sample string 2", "BranchCode": "sample string 3", "UserId": "sample string 4" }, "salesPrimaryData": { "DocumentNoPrefix": "sample string 1", "DocumentNo": 2, "Date": 3, "Time": "sample string 4", "ReferenceDocType": "sample string 5", "ReferenceDocNo": "sample string 6", "ReferenceDocDate": 7, "DocumentType": "sample string 8", "SalesType": "sample string 9", "PartyType": "sample string 10", "PartyIdType": "sample string 11", "PartyIdCode": "sample string 12", "SalespersonCode": "sample string 13", "TaxClassCode": "sample string 14", "ItemTotalAddition": 15.1, "ItemTotalDeduction": 16.1, "TotalTradeAddition": 17.1, "TotalTradeDeduction": 18.1, "NetAmount": 19.1, "FinancierCode": "sample string 20", "FinancierApprovalNo": "sample string 21", "FinancierScheme": "sample string 22", "FinancierDownPayment": 23.1, "FinancierFinanceAmount": 24.1, "EnquiryNotPurchasedReason": "sample string 25", "TranNotes": "sample string 26" }, "salesBillingAddress": { "Name": "sample string 1", "AddrLine1": "sample string 2", "AddrLine2": "sample string 3", "AddrLine3": "sample string 4", "City": "sample string 5", "State": "sample string 6", "PinCode": "sample string 7", "MobileNo": "sample string 8", "PhoneNo": "sample string 9", "EmailId": "sample string 10", "MembershipId": "sample string 11", "DOB": 12, "DOA": 13, "Gender": "sample string 14", "Category": "sample string 15", "Area": "sample string 16", "GSTIN": "sample string 17" }, "salesDeliveryAddress": { "Name": "sample string 1", "AddrLine1": "sample string 2", "AddrLine2": "sample string 3", "AddrLine3": "sample string 4", "City": "sample string 5", "State": "sample string 6", "PinCode": "sample string 7", "MobileNo": "sample string 8", "PhoneNo": "sample string 9", "EmailId": "sample string 10", "GSTIN": "sample string 11" }, "salesSecondaryData": [ { "ItemCodeType": "sample string 1", "ItemCode": "sample string 2", "ItemName": "sample string 3", "ItemAdditionalInfo": "sample string 4", "ItemQty": 5.1, "ItemFreeQty": 6.1, "ItemGrossRate": 7.1, "ItemDiscount1Perc": 8.1, "ItemDiscount1Amount": 9.1, "ItemDiscount2Perc": 10.1, "ItemDiscount2Amount": 11.1, "ItemTax1Type": "sample string 12", "ItemTax1Perc": 13.1, "ItemTax1Amount": 14.1, "ItemTax2Type": "sample string 15", "ItemTax2Perc": 16.1, "ItemTax2Amount": 17.1, "ItemCessPerc": 18.1, "ItemCessAmount": 19.1, "ItemAddiCessPerc": 20.1, "ItemAddiCessAmount": 21.1, "ItemTaxableAmount": 22.1, "salesSecondaryIdentitiesdata": [ { "SerialNo": "sample string 1" }, { "SerialNo": "sample string 1" } ] }, { "ItemCodeType": "sample string 1", "ItemCode": "sample string 2", "ItemName": "sample string 3", "ItemAdditionalInfo": "sample string 4", "ItemQty": 5.1, "ItemFreeQty": 6.1, "ItemGrossRate": 7.1, "ItemDiscount1Perc": 8.1, "ItemDiscount1Amount": 9.1, "ItemDiscount2Perc": 10.1, "ItemDiscount2Amount": 11.1, "ItemTax1Type": "sample string 12", "ItemTax1Perc": 13.1, "ItemTax1Amount": 14.1, "ItemTax2Type": "sample string 15", "ItemTax2Perc": 16.1, "ItemTax2Amount": 17.1, "ItemCessPerc": 18.1, "ItemCessAmount": 19.1, "ItemAddiCessPerc": 20.1, "ItemAddiCessAmount": 21.1, "ItemTaxableAmount": 22.1, "salesSecondaryIdentitiesdata": [ { "SerialNo": "sample string 1" }, { "SerialNo": "sample string 1" } ] } ], "salesTradeAdditionDeductionData": [ { "Type": "sample string 1", "Code": "sample string 2", "Name": "sample string 3", "Percentage": 4.1, "Amount": 5.1 }, { "Type": "sample string 1", "Code": "sample string 2", "Name": "sample string 3", "Percentage": 4.1, "Amount": 5.1 } ], "salesCollectedPayments": [ { "PaymentMode": "sample string 1", "Amount": 2.1, "BankAccountCode": "sample string 3", "FinInstNo": "sample string 4", "FinInstDate": 5, "FinInstBankName": "sample string 6", "FinInstCardNo": "sample string 7", "NoOfEMI": 8 }, { "PaymentMode": "sample string 1", "Amount": 2.1, "BankAccountCode": "sample string 3", "FinInstNo": "sample string 4", "FinInstDate": 5, "FinInstBankName": "sample string 6", "FinInstCardNo": "sample string 7", "NoOfEMI": 8 } ], "salesGiftVouchers": [ { "GiftVoucherPartnerName": "sample string 1", "GiftVoucherNo": "sample string 2" }, { "GiftVoucherPartnerName": "sample string 1", "GiftVoucherNo": "sample string 2" } ], "salesAdditionalDetails": { "SupplyType": "sample string 1", "GenerateIRN": true, "GenerateEWayBill": true, "GenerateEayBillPartB": true, "TransportType": "sample string 5", "EWayBillTransName": "sample string 6", "EWayBillDistance": 7, "EWayBillTransDocNo": "sample string 8", "EWayBillTransDocDt": 9, "EWayBillVehNo": "sample string 10", "EWayBillVehType": "sample string 11", "EWayBillTransMode": 12 } }
application/xml, text/xml
Sample:
<SalesData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APXWebAPI.Models.Sales"> <salesAdditionalDetails> <EWayBillDistance>7</EWayBillDistance> <EWayBillTransDocDt>9</EWayBillTransDocDt> <EWayBillTransDocNo>sample string 8</EWayBillTransDocNo> <EWayBillTransMode>12</EWayBillTransMode> <EWayBillTransName>sample string 6</EWayBillTransName> <EWayBillVehNo>sample string 10</EWayBillVehNo> <EWayBillVehType>sample string 11</EWayBillVehType> <GenerateEWayBill>true</GenerateEWayBill> <GenerateEayBillPartB>true</GenerateEayBillPartB> <GenerateIRN>true</GenerateIRN> <SupplyType>sample string 1</SupplyType> <TransportType>sample string 5</TransportType> </salesAdditionalDetails> <salesBillingAddress> <AddrLine1>sample string 2</AddrLine1> <AddrLine2>sample string 3</AddrLine2> <AddrLine3>sample string 4</AddrLine3> <Area>sample string 16</Area> <Category>sample string 15</Category> <City>sample string 5</City> <DOA>13</DOA> <DOB>12</DOB> <EmailId>sample string 10</EmailId> <GSTIN>sample string 17</GSTIN> <Gender>sample string 14</Gender> <MembershipId>sample string 11</MembershipId> <MobileNo>sample string 8</MobileNo> <Name>sample string 1</Name> <PhoneNo>sample string 9</PhoneNo> <PinCode>sample string 7</PinCode> <State>sample string 6</State> </salesBillingAddress> <salesCollectedPayments> <SalesCollectedPayments> <Amount>2.1</Amount> <BankAccountCode>sample string 3</BankAccountCode> <FinInstBankName>sample string 6</FinInstBankName> <FinInstCardNo>sample string 7</FinInstCardNo> <FinInstDate>5</FinInstDate> <FinInstNo>sample string 4</FinInstNo> <NoOfEMI>8</NoOfEMI> <PaymentMode>sample string 1</PaymentMode> </SalesCollectedPayments> <SalesCollectedPayments> <Amount>2.1</Amount> <BankAccountCode>sample string 3</BankAccountCode> <FinInstBankName>sample string 6</FinInstBankName> <FinInstCardNo>sample string 7</FinInstCardNo> <FinInstDate>5</FinInstDate> <FinInstNo>sample string 4</FinInstNo> <NoOfEMI>8</NoOfEMI> <PaymentMode>sample string 1</PaymentMode> </SalesCollectedPayments> </salesCollectedPayments> <salesDeliveryAddress> <AddrLine1>sample string 2</AddrLine1> <AddrLine2>sample string 3</AddrLine2> <AddrLine3>sample string 4</AddrLine3> <City>sample string 5</City> <EmailId>sample string 10</EmailId> <GSTIN>sample string 11</GSTIN> <MobileNo>sample string 8</MobileNo> <Name>sample string 1</Name> <PhoneNo>sample string 9</PhoneNo> <PinCode>sample string 7</PinCode> <State>sample string 6</State> </salesDeliveryAddress> <salesGiftVouchers> <SalesGiftVoucher> <GiftVoucherNo>sample string 2</GiftVoucherNo> <GiftVoucherPartnerName>sample string 1</GiftVoucherPartnerName> </SalesGiftVoucher> <SalesGiftVoucher> <GiftVoucherNo>sample string 2</GiftVoucherNo> <GiftVoucherPartnerName>sample string 1</GiftVoucherPartnerName> </SalesGiftVoucher> </salesGiftVouchers> <salesHeaderData> <BranchCode>sample string 3</BranchCode> <CompanyCode>sample string 1</CompanyCode> <TransType>sample string 2</TransType> <UserId>sample string 4</UserId> </salesHeaderData> <salesPrimaryData> <Date>3</Date> <DocumentNo>2</DocumentNo> <DocumentNoPrefix>sample string 1</DocumentNoPrefix> <DocumentType>sample string 8</DocumentType> <EnquiryNotPurchasedReason>sample string 25</EnquiryNotPurchasedReason> <FinancierApprovalNo>sample string 21</FinancierApprovalNo> <FinancierCode>sample string 20</FinancierCode> <FinancierDownPayment>23.1</FinancierDownPayment> <FinancierFinanceAmount>24.1</FinancierFinanceAmount> <FinancierScheme>sample string 22</FinancierScheme> <ItemTotalAddition>15.1</ItemTotalAddition> <ItemTotalDeduction>16.1</ItemTotalDeduction> <NetAmount>19.1</NetAmount> <PartyIdCode>sample string 12</PartyIdCode> <PartyIdType>sample string 11</PartyIdType> <PartyType>sample string 10</PartyType> <ReferenceDocDate>7</ReferenceDocDate> <ReferenceDocNo>sample string 6</ReferenceDocNo> <ReferenceDocType>sample string 5</ReferenceDocType> <SalesType>sample string 9</SalesType> <SalespersonCode>sample string 13</SalespersonCode> <TaxClassCode>sample string 14</TaxClassCode> <Time>sample string 4</Time> <TotalTradeAddition>17.1</TotalTradeAddition> <TotalTradeDeduction>18.1</TotalTradeDeduction> <TranNotes>sample string 26</TranNotes> </salesPrimaryData> <salesSecondaryData> <SalesSecondaryData> <ItemAddiCessAmount>21.1</ItemAddiCessAmount> <ItemAddiCessPerc>20.1</ItemAddiCessPerc> <ItemAdditionalInfo>sample string 4</ItemAdditionalInfo> <ItemCessAmount>19.1</ItemCessAmount> <ItemCessPerc>18.1</ItemCessPerc> <ItemCode>sample string 2</ItemCode> <ItemCodeType>sample string 1</ItemCodeType> <ItemDiscount1Amount>9.1</ItemDiscount1Amount> <ItemDiscount1Perc>8.1</ItemDiscount1Perc> <ItemDiscount2Amount>11.1</ItemDiscount2Amount> <ItemDiscount2Perc>10.1</ItemDiscount2Perc> <ItemFreeQty>6.1</ItemFreeQty> <ItemGrossRate>7.1</ItemGrossRate> <ItemName>sample string 3</ItemName> <ItemQty>5.1</ItemQty> <ItemTax1Amount>14.1</ItemTax1Amount> <ItemTax1Perc>13.1</ItemTax1Perc> <ItemTax1Type>sample string 12</ItemTax1Type> <ItemTax2Amount>17.1</ItemTax2Amount> <ItemTax2Perc>16.1</ItemTax2Perc> <ItemTax2Type>sample string 15</ItemTax2Type> <ItemTaxableAmount>22.1</ItemTaxableAmount> <salesSecondaryIdentitiesdata> <SalesSecondaryIdentityData> <SerialNo>sample string 1</SerialNo> </SalesSecondaryIdentityData> <SalesSecondaryIdentityData> <SerialNo>sample string 1</SerialNo> </SalesSecondaryIdentityData> </salesSecondaryIdentitiesdata> </SalesSecondaryData> <SalesSecondaryData> <ItemAddiCessAmount>21.1</ItemAddiCessAmount> <ItemAddiCessPerc>20.1</ItemAddiCessPerc> <ItemAdditionalInfo>sample string 4</ItemAdditionalInfo> <ItemCessAmount>19.1</ItemCessAmount> <ItemCessPerc>18.1</ItemCessPerc> <ItemCode>sample string 2</ItemCode> <ItemCodeType>sample string 1</ItemCodeType> <ItemDiscount1Amount>9.1</ItemDiscount1Amount> <ItemDiscount1Perc>8.1</ItemDiscount1Perc> <ItemDiscount2Amount>11.1</ItemDiscount2Amount> <ItemDiscount2Perc>10.1</ItemDiscount2Perc> <ItemFreeQty>6.1</ItemFreeQty> <ItemGrossRate>7.1</ItemGrossRate> <ItemName>sample string 3</ItemName> <ItemQty>5.1</ItemQty> <ItemTax1Amount>14.1</ItemTax1Amount> <ItemTax1Perc>13.1</ItemTax1Perc> <ItemTax1Type>sample string 12</ItemTax1Type> <ItemTax2Amount>17.1</ItemTax2Amount> <ItemTax2Perc>16.1</ItemTax2Perc> <ItemTax2Type>sample string 15</ItemTax2Type> <ItemTaxableAmount>22.1</ItemTaxableAmount> <salesSecondaryIdentitiesdata> <SalesSecondaryIdentityData> <SerialNo>sample string 1</SerialNo> </SalesSecondaryIdentityData> <SalesSecondaryIdentityData> <SerialNo>sample string 1</SerialNo> </SalesSecondaryIdentityData> </salesSecondaryIdentitiesdata> </SalesSecondaryData> </salesSecondaryData> <salesTradeAdditionDeductionData> <SalesTradeAdditionDeductionData> <Amount>5.1</Amount> <Code>sample string 2</Code> <Name>sample string 3</Name> <Percentage>4.1</Percentage> <Type>sample string 1</Type> </SalesTradeAdditionDeductionData> <SalesTradeAdditionDeductionData> <Amount>5.1</Amount> <Code>sample string 2</Code> <Name>sample string 3</Name> <Percentage>4.1</Percentage> <Type>sample string 1</Type> </SalesTradeAdditionDeductionData> </salesTradeAdditionDeductionData> </SalesData>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |