Add Invoice to a Delivery¶
This endpoint allows the (seller
) to add an invoice to a delivery using the id
as a reference.
Required Scope
Value | Description |
---|---|
open:order-delivery-seller:write |
Allows writing deliveries and related data. |
URL Parameters
Field | Type | Description | Required |
---|---|---|---|
id |
string | ID of the delivery on the platform. | Yes |
Request:
curl -X 'POST' \
'https://api.magalu.com/seller/v1/deliveries/{id}/invoices' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <Access Token>' \
-H 'Content-Type: application/json' \
-d '{
"issued_at": "2024-08-01T14:13:50.015255",
"key": "55230968422419000175550040000490061048949744",
"issuer": "00000000000",
"amount": 100.37,
"channel": {
"id": "00839163-486f-4557-8173-c454d22edd64"
},
"xml": "<xml>...</xml>"
}'
{
"issued_at": "2024-08-01T14:13:50.015255",
"key": "55230968422419000175550040000490061048949744",
"status": "awaiting_validation",
}
Response Codes
Code | Description |
---|---|
201 | CREATED |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |