POST api/Values/SubmitInvoice
Request Information
URI Parameters
None.
Body Parameters
root| Name | Description | Type | Additional information |
|---|---|---|---|
| CompanyNumber | string |
None. |
|
| DeviceSerialNumber | string |
None. |
|
| PreviousInvoiceHash | string |
None. |
|
| Invoice | InvoiceHeader |
None. |
Request Formats
application/json, text/json
Sample:
{
"CompanyNumber": "sample string 1",
"DeviceSerialNumber": "sample string 2",
"PreviousInvoiceHash": "sample string 3",
"Invoice": {
"EGSUnit": "sample string 1",
"InterID": "sample string 2",
"ID": "sample string 3",
"DocumentDate": "sample string 4",
"InvoiceTypeCode": "sample string 5",
"InvoiceTypeCodeName": "sample string 6",
"CurrencyCode": "sample string 7",
"TAXCurrencyCode": "sample string 8",
"PartyIdentification_CompanyTRN": "sample string 9",
"InvoiceDocumentReference": "sample string 10",
"cmp_StreetName": "sample string 11",
"cmp_BuildingNumber": "sample string 12",
"cmp_PlotIdentification": "sample string 13",
"cmp_CitySubdivisionName": "sample string 14",
"cmp_CityName": "sample string 15",
"cmp_PostalZone": "sample string 16",
"cm_Country": "sample string 17",
"CompanyName": "sample string 18",
"InvoiceCounter": 19,
"CustomerVatID": "sample string 20",
"Customer_StreetName": "sample string 21",
"Customer_BuldingNumber": "sample string 22",
"Customer_PlotIdentification": "sample string 23",
"Customer_CitySubDivisionName": "sample string 24",
"Customer_CityName": "sample string 25",
"Customer_PostalZone": "sample string 26",
"Customer_CountrySubentity": "sample string 27",
"Customer_Country_IdentificationCode": "sample string 28",
"Customer_PartLegalEntity_RegistrationName": "sample string 29",
"ActualDeliveryDate": "sample string 30",
"LatestDeliveryDate": "sample string 31",
"PaymentMeansInstruction": "sample string 32",
"PaymentMeanCode": "sample string 33",
"AllowanceCharge_ChargeIndicatior": true,
"AllowanceCharge_AllowanceChargeReason": "sample string 35",
"OriginatingTradeDiscountAmount": "sample string 36",
"TaxCategory_VatTypeID": "sample string 37",
"TaxCategory_Percent": "sample string 38",
"OriginatingTaxAmount": "sample string 39",
"OriginatingTaxAmount_USD": "sample string 40",
"TaxTotal_TaxSubTotal_TaxableAmount": "sample string 41",
"LegalMonetaryTotal_LineExtensionAmount": "sample string 42",
"LegalMonetaryTotal_TaxExclusiveAmount": "sample string 43",
"LegalMonetaryTotal_TaxInclusiveAmount": "sample string 44",
"LegalMonetaryTotal_PayableAmount": "sample string 45",
"InvoiceLines": [
{
"InvoicedQuantityUnitCode": "sample string 1",
"InvoicedQuantity": "sample string 2",
"LineExtensionAmount": "sample string 3",
"TaxTotal_TaxAmount": "sample string 4",
"TaxTotal_RoundingAmount": "sample string 5",
"Item_Name": "sample string 6",
"Item_ClassifiedTaxCategory_ID": "sample string 7",
"Item_ClassifiedTaxCategory_Percent": "sample string 8",
"Price_PriceAmount": "sample string 9",
"Price_AllowanceCharge_ChargeIndicator": true,
"Price_AllowanceCharge_AllowanceChargeReason": "sample string 11",
"Price_AllowanceCharge_Amount": "sample string 12"
},
{
"InvoicedQuantityUnitCode": "sample string 1",
"InvoicedQuantity": "sample string 2",
"LineExtensionAmount": "sample string 3",
"TaxTotal_TaxAmount": "sample string 4",
"TaxTotal_RoundingAmount": "sample string 5",
"Item_Name": "sample string 6",
"Item_ClassifiedTaxCategory_ID": "sample string 7",
"Item_ClassifiedTaxCategory_Percent": "sample string 8",
"Price_PriceAmount": "sample string 9",
"Price_AllowanceCharge_ChargeIndicator": true,
"Price_AllowanceCharge_AllowanceChargeReason": "sample string 11",
"Price_AllowanceCharge_Amount": "sample string 12"
}
],
"PartyIdentification_SchemeValue": "sample string 46",
"PartyIdentification_SchemeID": "sample string 47"
}
}
application/xml, text/xml
Sample:
<root xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Zatca_Services.Models">
<CompanyNumber>sample string 1</CompanyNumber>
<DeviceSerialNumber>sample string 2</DeviceSerialNumber>
<Invoice>
<ActualDeliveryDate>sample string 30</ActualDeliveryDate>
<AllowanceCharge_AllowanceChargeReason>sample string 35</AllowanceCharge_AllowanceChargeReason>
<AllowanceCharge_ChargeIndicatior>true</AllowanceCharge_ChargeIndicatior>
<CompanyName>sample string 18</CompanyName>
<CurrencyCode>sample string 7</CurrencyCode>
<CustomerVatID>sample string 20</CustomerVatID>
<Customer_BuldingNumber>sample string 22</Customer_BuldingNumber>
<Customer_CityName>sample string 25</Customer_CityName>
<Customer_CitySubDivisionName>sample string 24</Customer_CitySubDivisionName>
<Customer_CountrySubentity>sample string 27</Customer_CountrySubentity>
<Customer_Country_IdentificationCode>sample string 28</Customer_Country_IdentificationCode>
<Customer_PartLegalEntity_RegistrationName>sample string 29</Customer_PartLegalEntity_RegistrationName>
<Customer_PlotIdentification>sample string 23</Customer_PlotIdentification>
<Customer_PostalZone>sample string 26</Customer_PostalZone>
<Customer_StreetName>sample string 21</Customer_StreetName>
<DocumentDate>sample string 4</DocumentDate>
<EGSUnit>sample string 1</EGSUnit>
<ID>sample string 3</ID>
<InterID>sample string 2</InterID>
<InvoiceCounter>19</InvoiceCounter>
<InvoiceDocumentReference>sample string 10</InvoiceDocumentReference>
<InvoiceLines>
<InvoiceDetails>
<InvoicedQuantity>sample string 2</InvoicedQuantity>
<InvoicedQuantityUnitCode>sample string 1</InvoicedQuantityUnitCode>
<Item_ClassifiedTaxCategory_ID>sample string 7</Item_ClassifiedTaxCategory_ID>
<Item_ClassifiedTaxCategory_Percent>sample string 8</Item_ClassifiedTaxCategory_Percent>
<Item_Name>sample string 6</Item_Name>
<LineExtensionAmount>sample string 3</LineExtensionAmount>
<Price_AllowanceCharge_AllowanceChargeReason>sample string 11</Price_AllowanceCharge_AllowanceChargeReason>
<Price_AllowanceCharge_Amount>sample string 12</Price_AllowanceCharge_Amount>
<Price_AllowanceCharge_ChargeIndicator>true</Price_AllowanceCharge_ChargeIndicator>
<Price_PriceAmount>sample string 9</Price_PriceAmount>
<TaxTotal_RoundingAmount>sample string 5</TaxTotal_RoundingAmount>
<TaxTotal_TaxAmount>sample string 4</TaxTotal_TaxAmount>
</InvoiceDetails>
<InvoiceDetails>
<InvoicedQuantity>sample string 2</InvoicedQuantity>
<InvoicedQuantityUnitCode>sample string 1</InvoicedQuantityUnitCode>
<Item_ClassifiedTaxCategory_ID>sample string 7</Item_ClassifiedTaxCategory_ID>
<Item_ClassifiedTaxCategory_Percent>sample string 8</Item_ClassifiedTaxCategory_Percent>
<Item_Name>sample string 6</Item_Name>
<LineExtensionAmount>sample string 3</LineExtensionAmount>
<Price_AllowanceCharge_AllowanceChargeReason>sample string 11</Price_AllowanceCharge_AllowanceChargeReason>
<Price_AllowanceCharge_Amount>sample string 12</Price_AllowanceCharge_Amount>
<Price_AllowanceCharge_ChargeIndicator>true</Price_AllowanceCharge_ChargeIndicator>
<Price_PriceAmount>sample string 9</Price_PriceAmount>
<TaxTotal_RoundingAmount>sample string 5</TaxTotal_RoundingAmount>
<TaxTotal_TaxAmount>sample string 4</TaxTotal_TaxAmount>
</InvoiceDetails>
</InvoiceLines>
<InvoiceTypeCode>sample string 5</InvoiceTypeCode>
<InvoiceTypeCodeName>sample string 6</InvoiceTypeCodeName>
<LatestDeliveryDate>sample string 31</LatestDeliveryDate>
<LegalMonetaryTotal_LineExtensionAmount>sample string 42</LegalMonetaryTotal_LineExtensionAmount>
<LegalMonetaryTotal_PayableAmount>sample string 45</LegalMonetaryTotal_PayableAmount>
<LegalMonetaryTotal_TaxExclusiveAmount>sample string 43</LegalMonetaryTotal_TaxExclusiveAmount>
<LegalMonetaryTotal_TaxInclusiveAmount>sample string 44</LegalMonetaryTotal_TaxInclusiveAmount>
<OriginatingTaxAmount>sample string 39</OriginatingTaxAmount>
<OriginatingTaxAmount_USD>sample string 40</OriginatingTaxAmount_USD>
<OriginatingTradeDiscountAmount>sample string 36</OriginatingTradeDiscountAmount>
<PartyIdentification_CompanyTRN>sample string 9</PartyIdentification_CompanyTRN>
<PartyIdentification_SchemeID>sample string 47</PartyIdentification_SchemeID>
<PartyIdentification_SchemeValue>sample string 46</PartyIdentification_SchemeValue>
<PaymentMeanCode>sample string 33</PaymentMeanCode>
<PaymentMeansInstruction>sample string 32</PaymentMeansInstruction>
<TAXCurrencyCode>sample string 8</TAXCurrencyCode>
<TaxCategory_Percent>sample string 38</TaxCategory_Percent>
<TaxCategory_VatTypeID>sample string 37</TaxCategory_VatTypeID>
<TaxTotal_TaxSubTotal_TaxableAmount>sample string 41</TaxTotal_TaxSubTotal_TaxableAmount>
<cm_Country>sample string 17</cm_Country>
<cmp_BuildingNumber>sample string 12</cmp_BuildingNumber>
<cmp_CityName>sample string 15</cmp_CityName>
<cmp_CitySubdivisionName>sample string 14</cmp_CitySubdivisionName>
<cmp_PlotIdentification>sample string 13</cmp_PlotIdentification>
<cmp_PostalZone>sample string 16</cmp_PostalZone>
<cmp_StreetName>sample string 11</cmp_StreetName>
</Invoice>
<PreviousInvoiceHash>sample string 3</PreviousInvoiceHash>
</root>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.