Download fulfillment invoices¶
This endpoint allows the (seller
) to retrieve the invoices from fulfillment orders.
Required Scope
Value | Description |
---|---|
open:order-invoice-seller:read |
Allows reading information invoices data. |
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 |
Filters
Field | Type | Description | Required |
---|---|---|---|
start_date |
String (datetime ISO 8601) | Filter invoices starting from the specified date (e.g., "2023-06-27T12:15:37.729Z") | Yes |
end_date |
String (datetime ISO 8601) | Filter invoices up to the specified date (e.g., "2023-07-27T00:00:00.000Z") | Yes |
- Limit of 30 days |
Request:
curl -X 'GET' \
'https://api.magalu.com/seller/v1/invoices/fulfillment' \
-H 'accept: application/json' \
-H 'Authorization: Bearer <Access Token>' \
-H 'Content-Type: application/json' \
-H 'X-Channel-Id: <Channel Id>'
Response:
{
"signed_url": "https://files.example.com/8f8e1f95-02cd-4909-9290-99883e4fcc72",
"expires_on": "2023-07-28T10:17:07.000Z"
}
Response Codes
Code | Description |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |