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
}
Transaction
Create invoice for transaction
Creates an invoice for a transaction sending the products for the invoice.
POST
/
transaction
/
{transactionId}
/
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
}
Path parameters
Propaga’s transaction id
Body
Show properties
Show properties
Show Product object
Show Product object
Product description
Total price for the product
The product key in the SAT system is an identifier in the Product and
Services Catalog (Catálogo de productos y servicios). For more
information, see the SAT’s
catalog
Internal product identifier
Product unit key in the SAT system. For more information, see the
SAT’s
catalog
Product quantity
Response
Was this page helpful?
⌘I

