Example: Drafting an Invoice

Request
{ "invoiceInformation": { "description": "Food", "dueDate": "2019-07-11", "sendImmediately": false, "deliveryMode": "none" }, "orderInformation": { "amountDetails": { "totalAmount": "2623.64", "currency": "USD" } } }
Response to a Successful Request
{ "_links": { "self": { "href": "/v2/invoices/98762", "method": "GET" }, "update": { "href": "/v2/invoices/98762", "method": "PUT" }, "deliver": { "href": "/v2/invoices/98762/delivery", "method": "POST" }, "cancel": { "href": "/v2/invoices/98762/cancelation", "method": "POST" } }, "id": "98762", "submitTimeUtc": "2024-08-02T19:24:06.184293960Z", "status": "CREATED", "processingInformation": { "requestPhone": false, "requestShipping": false }, "invoiceInformation": { "invoiceNumber": "98762", "description": "Food", "dueDate": "2019-07-11", "allowPartialPayments": false, "paymentLink": "
https://businesscenter.cybersource.com
/ebc2/invoicing/payInvoice/NyvghJCpsrrZAjkvZNxelqUrI7iyOdLXFXWS8e5MLXyLYbifinsuYfBk6kaYo3co?version=v2.1", "deliveryMode": "None" }, "orderInformation": { "amountDetails": { "totalAmount": 2623.64, "currency": "USD", "balanceAmount": 2623.64 } } }
Request
{ "customerInformation": { "name": "Tanya Lee", "email": "tanya.lee@my-email.world" }, "invoiceInformation": { "dueDate": "2019-07-11", "sendImmediately": false, "deliveryMode": "none" }, "orderInformation": { "amountDetails": { "totalAmount": "293.50", "currency": "USD" }, "lineItems": [ { "productSku": "P653727383", "productName": "First line item's name", "quantity": "20", "unitPrice": "12.05", "totalAmount": "241.00" }, { "productSku": "P653727383", "productName": "First line item's name", "quantity": "10", "unitPrice": "5.25", "totalAmount": "52.50" } ] } }
Response to a Successful Request
{ "_links": { "self": { "href": "/v2/invoices/98764", "method": "GET" }, "update": { "href": "/v2/invoices/98764", "method": "PUT" }, "deliver": { "href": "/v2/invoices/98764/delivery", "method": "POST" }, "cancel": { "href": "/v2/invoices/98764/cancelation", "method": "POST" } }, "id": "98764", "submitTimeUtc": "2024-08-02T22:14:13.000671718Z", "status": "DRAFT", "customerInformation": { "name": "Tanya Lee", "email": "tanya.lee@my-email.world" }, "processingInformation": { "requestPhone": false, "requestShipping": false }, "invoiceInformation": { "invoiceNumber": "98764", "dueDate": "2019-07-11", "allowPartialPayments": false, "deliveryMode": "None" }, "orderInformation": { "amountDetails": { "totalAmount": 293.5, "currency": "USD" }, "lineItems": [ { "productSku": "P653727383", "productName": "First line item's name", "unitPrice": 12.05, "quantity": 20, "totalAmount": 241 }, { "productSku": "P653727383", "productName": "First line item's name", "unitPrice": 5.25, "quantity": 10, "totalAmount": 52.5 } ] } }