curl
--location
--request POST 'https://staging-api.propaga.io/v1/transaction/{transactionId}/invoice' \
--header 'Authorization: <your_awesome_token>'
--header 'Content-Type: application/json'
--data '{
"invoice": {
"discount": 0,
"products": [
{
"product": {
"description": "Sopa",
"price": 200.77,
"productKey": "50191507",
"sku": "00041789901980",
"taxes": [{ "rate": 0, "type": "IVA" }],
"unitKey": "XUN"
},
"quantity": 1
},
]
}
}'
{
"success": true
}
Creates an invoice for a transaction sending the products for the invoice.
curl
--location
--request POST 'https://staging-api.propaga.io/v1/transaction/{transactionId}/invoice' \
--header 'Authorization: <your_awesome_token>'
--header 'Content-Type: application/json'
--data '{
"invoice": {
"discount": 0,
"products": [
{
"product": {
"description": "Sopa",
"price": 200.77,
"productKey": "50191507",
"sku": "00041789901980",
"taxes": [{ "rate": 0, "type": "IVA" }],
"unitKey": "XUN"
},
"quantity": 1
},
]
}
}'
{
"success": true
}
curl
--location
--request POST 'https://staging-api.propaga.io/v1/transaction/{transactionId}/invoice' \
--header 'Authorization: <your_awesome_token>'
--header 'Content-Type: application/json'
--data '{
"invoice": {
"discount": 0,
"products": [
{
"product": {
"description": "Sopa",
"price": 200.77,
"productKey": "50191507",
"sku": "00041789901980",
"taxes": [{ "rate": 0, "type": "IVA" }],
"unitKey": "XUN"
},
"quantity": 1
},
]
}
}'
{
"success": true
}
Show properties
Show Product object