post https://api.sandbox.billit.be/v1/peppol/sendOrder
The sendOrder Endpoint
This endpoints allows you to send an E-Invoice over the Peppol network. We use a JSON object similar to our Order object used in the Order endpoints.
This endpoint will create the valid UBL from the JSON provided and will directly send it on the Peppol network.
The minimum you have to provide the API is the following:
- All data of the company used has to be filled in. You can this under Profile in the application
Field Name | Field Value | Field Definition |
---|---|---|
Customer (Object) | Customer Data Party | The data from the customer |
OrderDate | DateTime | The date from the order |
ExpiryDate | DateTime | The expiry date from the order |
OrderType | Types | The type of invoice |
OrderDirection | Types | The Direction of the invoice |
OrderLines | Orderlines | The items that are billed |
Paid | Boolean | If the invoice is already paid |
PaidDate | DateTime | The date when the order was paid |
Currency | ISO Standard | the currency of the invoice |
Below you can find a JSON example of the table above
{
"Customer": {
"Name": "A customer name",
"Street": "A street",
"StreetNumber": "25",
"Box": "",
"Zipcode": "9000",
"City": "Gent",
"CountryCode": "BE",
"IBAN": "BE0000001",
"BIC": "KREDBEBB",
"Mobile": "01234242",
"Email": "[email protected]",
"Contact": "Contact",
"VATNumber": "BE0563846944",
"PartyType": "Customer",
"VATLiable": true,
},
"OrderNumber": "20220001",
"OrderDate": "2019-12-03T18:51:21.261Z",
"ExpiryDate": "2019-12-15T18:51:21.262Z",
"OrderType": "Invoice",
"OrderDirection": "Income",
"OrderLines": [
{
"Quantity": 1,
"UnitPriceExcl": 100.0,
"Description": "my order line",
"VATPercentage": 21.0
}
],
"Paid": true,
"PaidDate": "2019-12-03T18:51:21.262Z",
"Currency": "EUR",
}
//Only possible when you have signed the PeppolAnySender Contract
{
"Supplier":{
"Name": "A customer name",
"Street": "A street",
"StreetNumber": "25",
"Box": "",
"Zipcode": "9000",
"City": "Gent",
"CountryCode": "BE",
"IBAN": "BE0000001",
"BIC": "KREDBEBB",
"Mobile": "01234242",
"Email": "[email protected]",
"Contact": "Contact",
"VATNumber": "BE0563846944",
"PartyType": "Customer",
},
"Customer": {
"Name": "A customer name",
"Street": "A street",
"StreetNumber": "25",
"Box": "",
"Zipcode": "9000",
"City": "Gent",
"CountryCode": "BE",
"IBAN": "BE0000001",
"BIC": "KREDBEBB",
"Mobile": "01234242",
"Email": "[email protected]",
"Contact": "Contact",
"VATNumber": "BE0563846944",
"PartyType": "Customer",
"VATLiable": true,
},
"OrderNumber": "20220001",
"OrderDate": "2019-12-03T18:51:21.261Z",
"ExpiryDate": "2019-12-15T18:51:21.262Z",
"OrderType": "Invoice",
"OrderDirection": "Income",
"OrderLines": [
{
"Quantity": 1,
"UnitPriceExcl": 100.0,
"Description": "my order line",
"VATPercentage": 21.0
}
],
"Paid": true,
"PaidDate": "2019-12-03T18:51:21.262Z",
"Currency": "EUR",
}