Skip to content

Update an Delivery Invoice

This endpoint allows the (seller) to update an invalid invoice using the id and key as references.

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
key string Key of the invoice to be updated. Yes

Request:

curl -X 'PUT' \
  'https://api.magalu.com/seller/v1/deliveries/{id}/invoices/{key}' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer <Access Token>' \
  -H 'Content-Type: application/json' \
  -d '{
    "channel": {
      "id": "00000000-0000-0000-0000-000000000000",
    },
    "issued_at": "2024-07-22T13:18:22.000Z",
    "amount": 100.0,
    "xml": "<xml>...</xml>"
}'

Response Codes

Code Description
204 NO CONTENT
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
500 Internal Server Error