POST /accounting/api/v1/consents/{consentId}/salesinvoices HTTP/1.1
Host: apione.zwapgrid.com
x-api-key: YOUR_API_KEY
x-correlation-id: 123e4567-e89b-12d3-a456-426614174000
Content-Type: application/json
Accept: */*
Content-Length: 6639
{
"reference": null,
"buyerReference": null,
"bookedInvoiceIndicator": null,
"cancelledInvoiceIndicator": null,
"issueDate": null,
"issueTime": null,
"dueDate": null,
"creditInvoice": {
"creditInvoiceIndicator": null,
"reference": null,
"creditInvoiceDocumentReferences": [
{
"id": null,
"reference": null,
"documentType": "Invoice"
}
]
},
"financialDimensions": [
{
"id": null,
"reference": null,
"type": null,
"name": null,
"description": null,
"isActive": null
}
],
"notes": [
{
"text": null,
"languageId": null
}
],
"orderReference": {
"buyerOrderId": null,
"sellerOrderId": null
},
"documentCurrencyCode": {
"currencyId": null,
"currencyRate": null
},
"accountingSupplierParty": {
"customerAssignedAccountId": {
"id": null,
"schemeId": null
},
"party": {
"partyName": {
"name": null,
"languageId": null
},
"postalAddress": {
"buildingNumber": null,
"streetName": null,
"additionalStreetName": null,
"cityName": null,
"postalZone": null,
"country": {
"identificationCode": null,
"name": null
}
},
"partyLegalEntity": {
"registrationName": null,
"companyId": {
"id": null,
"schemeId": null
}
},
"contact": {
"name": null,
"telephone": null,
"email": null,
"secondaryEmail": null
},
"endpointId": {
"id": null,
"schemeId": null
},
"partyIdentification": [
{
"id": null,
"schemeId": null
}
]
}
},
"accountingCustomerParty": {
"supplierAssignedAccountId": {
"id": null,
"schemeId": null
},
"party": {
"partyName": {
"name": null,
"languageId": null
},
"postalAddress": {
"buildingNumber": null,
"streetName": null,
"additionalStreetName": null,
"cityName": null,
"postalZone": null,
"country": {
"identificationCode": null,
"name": null
}
},
"partyLegalEntity": {
"registrationName": null,
"companyId": {
"id": null,
"schemeId": null
}
},
"contact": {
"name": null,
"telephone": null,
"email": null,
"secondaryEmail": null
},
"endpointId": {
"id": null,
"schemeId": null
},
"partyIdentification": [
{
"id": null,
"schemeId": null
}
]
}
},
"invoicePeriod": {
"startDate": null,
"endDate": null
},
"delivery": {
"deliveryParty": {
"partyIdentification": {
"id": null,
"schemeId": null
},
"partyName": {
"name": null,
"languageId": null
}
},
"carrierParty": {
"partyIdentification": {
"id": null,
"schemeId": null
},
"partyName": {
"name": null,
"languageId": null
}
},
"actualDeliveryDate": null,
"trackingId": null,
"deliveryAddress": {
"buildingNumber": null,
"streetName": null,
"additionalStreetName": null,
"cityName": null,
"postalZone": null,
"country": {
"identificationCode": null,
"name": null
}
}
},
"deliveryTerms": {
"deliveryTermsId": {
"id": null,
"schemeId": null
},
"specialTerms": {
"text": null,
"languageId": null
}
},
"paymentTerms": {
"paymentTermsId": {
"id": null,
"schemeId": null
},
"notes": [
{
"text": null,
"languageId": null
}
]
},
"paymentMeans": [
{
"paymentChannelCode": null,
"paymentDueDate": null,
"paymentIds": [
{
"id": null,
"schemeId": null
}
]
}
],
"allowanceCharges": [
{
"allowanceChargeId": {
"id": null,
"schemeId": null
},
"chargeIndicator": true,
"allowanceChargeReason": null,
"allowanceChargeAmount": {
"amount": 1,
"currencyId": null
},
"taxTotal": {
"taxAmount": {
"amount": 1,
"currencyId": null
},
"taxIncludedIndicator": null,
"taxSubtotals": [
{
"taxableAmount": {
"amount": 1,
"currencyId": null
},
"taxAmount": {
"amount": 1,
"currencyId": null
},
"taxCategory": {
"id": null,
"percent": null,
"taxScheme": {
"id": null
},
"taxExemptionReason": null,
"taxExemptionReasonCode": null
}
}
]
},
"taxCategory": {
"percent": 1,
"taxScheme": {
"taxSchemeId": {
"id": null,
"schemeId": null
}
},
"id": null
},
"allowanceChargeBaseAmount": {
"amount": 1,
"currencyId": null
},
"multiplierFactorNumeric": null
}
],
"taxTotals": [
{
"taxAmount": {
"amount": 1,
"currencyId": null
},
"taxIncludedIndicator": null,
"taxSubtotals": [
{
"taxableAmount": {
"amount": 1,
"currencyId": null
},
"taxAmount": {
"amount": 1,
"currencyId": null
},
"taxCategory": {
"id": null,
"percent": null,
"taxScheme": {
"id": null
},
"taxExemptionReason": null,
"taxExemptionReasonCode": null
}
}
]
}
],
"withholdingTaxTotals": [
{
"taxAmount": {
"amount": 1,
"currencyId": null
},
"taxSubtotals": [
{
"taxableAmount": {
"amount": 1,
"currencyId": null
},
"taxAmount": {
"amount": 1,
"currencyId": null
},
"taxCategory": {
"id": null,
"percent": null,
"taxScheme": {
"id": null
},
"taxExemptionReason": null,
"taxExemptionReasonCode": null
}
}
]
}
],
"totalBalanceAmount": {
"amount": 1,
"currencyId": null
},
"additionalDocumentReferences": [
{
"id": null,
"reference": null
}
],
"legalMonetaryTotal": {
"taxInclusiveAmount": {
"amount": 1,
"currencyId": null
},
"prepaidAmount": {
"amount": 1,
"currencyId": null
},
"payableRoundingAmount": {
"amount": 1,
"currencyId": null
},
"payableAmount": {
"amount": 1,
"currencyId": null
},
"lineExtensionAmount": {
"amount": 1,
"currencyId": null
},
"taxExclusiveAmount": {
"amount": 1,
"currencyId": null
}
},
"paymentStatus": {
"status": "UNPAID",
"settlementDate": null
},
"isSent": null,
"sellerReference": null,
"invoiceLines": [
{
"id": null,
"invoicedQuantity": {
"quantity": null,
"unitCode": null
},
"lineExtensionAmount": {
"amount": 1,
"currencyId": null
},
"item": {
"name": null,
"description": null,
"sellersItemIdentification": {
"id": null,
"extendedId": null
},
"classifiedTaxCategories": [
{
"percent": 1,
"taxScheme": {
"taxSchemeId": {
"id": null,
"schemeId": null
}
},
"id": null
}
]
},
"price": {
"priceAmount": {
"amount": 1,
"currencyId": null
},
"priceTypeCode": {
"code": null,
"listId": null
},
"baseQuantity": {
"quantity": null,
"unitCode": null
},
"allowanceCharges": [
{
"allowanceChargeId": {
"id": null,
"schemeId": null
},
"chargeIndicator": true,
"allowanceChargeReason": null,
"allowanceChargeAmount": {
"amount": 1,
"currencyId": null
},
"taxTotal": {
"taxAmount": {
"amount": 1,
"currencyId": null
},
"taxIncludedIndicator": null,
"taxSubtotals": [
{
"taxableAmount": {
"amount": 1,
"currencyId": null
},
"taxAmount": {
"amount": 1,
"currencyId": null
},
"taxCategory": {
"id": null,
"percent": null,
"taxScheme": {
"id": null
},
"taxExemptionReason": null,
"taxExemptionReasonCode": null
}
}
]
},
"taxCategory": {
"percent": 1,
"taxScheme": {
"taxSchemeId": {
"id": null,
"schemeId": null
}
},
"id": null
},
"allowanceChargeBaseAmount": {
"amount": 1,
"currencyId": null
},
"multiplierFactorNumeric": null
}
]
},
"delivery": {
"actualDeliveryDate": null
},
"financialDimensions": [
{
"id": null,
"reference": null,
"type": null,
"name": null,
"description": null,
"isActive": null
}
],
"allowanceCharges": [
{
"allowanceChargeId": {
"id": null,
"schemeId": null
},
"chargeIndicator": true,
"allowanceChargeReason": null,
"allowanceChargeAmount": {
"amount": 1,
"currencyId": null
},
"taxTotal": {
"taxAmount": {
"amount": 1,
"currencyId": null
},
"taxIncludedIndicator": null,
"taxSubtotals": [
{
"taxableAmount": {
"amount": 1,
"currencyId": null
},
"taxAmount": {
"amount": 1,
"currencyId": null
},
"taxCategory": {
"id": null,
"percent": null,
"taxScheme": {
"id": null
},
"taxExemptionReason": null,
"taxExemptionReasonCode": null
}
}
]
},
"taxCategory": {
"percent": 1,
"taxScheme": {
"taxSchemeId": {
"id": null,
"schemeId": null
}
},
"id": null
},
"allowanceChargeBaseAmount": {
"amount": 1,
"currencyId": null
},
"multiplierFactorNumeric": null
}
],
"subInvoiceLines": [
{
"invoicedQuantity": {
"quantity": null,
"unitCode": null
},
"item": {
"name": null,
"description": null,
"sellersItemIdentification": {
"id": null,
"extendedId": null
},
"classifiedTaxCategories": [
{
"percent": 1,
"taxScheme": {
"taxSchemeId": {
"id": null,
"schemeId": null
}
},
"id": null
}
]
}
}
]
}
]
}