Skip to content

Mark a Delivery as Delivered

This endpoint allows the (seller) to mark a delivery as delivered 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}/finishing' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer <Access Token>' \
  -H 'Content-Type: application/json' \
  -d '{
    "channel": {
        "id": "3f042852-3efc-4d47-97f8-f94989c7b0bc"
      },
    "delivered_at": "2021-07-22T13:06:28.000Z" // [Optional, if null, the current date will be assigned]
 }'

Resposta:

{
  "id": "7a9b65aa-08c6-4470-9b9e-1cf2cd386378",
  "created_at": "2023-06-15T10:17:07.000Z",
}

Response Codes

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