Skip to content

Retrieve Invoices for a Delivery

This endpoint allows the (seller) to retrieve the invoices for a delivery using the id as a reference.

Required Scope

Value Description
open:order-delivery-seller:read Allows reading deliveries and related data.

URL Parameters

Field Type Description Required
id string ID of the delivery on the platform. Yes

Headers

Field Type Description Required
X-Channel-Id String ID of the sales channel you want to operate (e.g. "9fe0d853-732b-4e4a-a0b0-cff988ed043d") Yes

Request:

curl -X 'GET' \
  'https://api.magalu.com/seller/v1/deliveries/{id}/invoices' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer <Access Token>' \
  -H 'Content-Type: application/json' \ 
-H 'X-Channel-Id: <Channel Id>'

Response:

{
  "meta": {
    "page": {
      "limit": 20,
      "offset": 0,
      "max_limit": 100
    },
    "links": {
      "previous": "?_offset=0&_limit=20",
      "next": null,
      "self": "?_offset=0&_limit=20"
    }
  },
  "results": [
    {
      "key": "55080701212344000127550010000000981364117781",
      "issued_at": "2021-07-22T13:06:28.000Z",
      "xml": "<xml>...</xml>",
      "status": "approved|validating|invalid"
    }
  ]
}

Response Codes

Code Description
200 OK
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
500 Internal Server Error