Invoice Preview
1 min
POST
https://api.nue.io/orders/invoice-preview
acceptstringGenerated from available response content types
bodyobject<p>Exactly one of 'orderProducts' (initial order) or 'assetChanges' (change order) must be present.</p>
200Invoice preview computed successfully. The response shape depends on the request type.
400Validation error
401Unauthorized
curl --request POST \
--url https://api.nue.io/orders/invoice-preview \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"customer": {
"id": ""
},
"orderProducts": [
{
"priceBookEntryId": "",
"quantity": "",
"subscriptionStartDate": "",
"addOns": [
{
"productOptionId": ""
}
]
}
],
"assetChanges": [
{
"changeType": "",
"assetNumber": "",
"addOns": [
{
"productOptionId": "",
"reconfigureEffectiveDate": "",
"productOptionQuantity": ""
}
]
}
],
"products": [
{
"priceBookEntryId": "",
"quantity": "",
"subscriptionStartDate": ""
}
]
}'