The shopper confirms a shipped order received
The signed-in shopper says the parcel arrived: a shipped order moves to completed, the same step the seller's fulfilment route takes, under the same row lock, with one completed event and the tracking number and carrier left as they were. The seller-completes path is unchanged.
FENCED LIKE THE ORDER READ. The buyer comes from the session and is a predicate of the statement, so another shopper's order number answers the same 404 as one never issued. On a mall host the request is served at the store that owns the order. No request body.
IDEMPOTENT. An order already completed (by the seller or an earlier call) answers 200 with the order and writes nothing. An order not yet shipped, or cancelled, is 409 order_not_shipped.
Authorization
bearerAuth In: header
Path Parameters
length <= 64Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://sandbox.505pay.link/v1/marketplace/buyer/orders/string/received"{
"order_number": "string",
"status": "pending",
"payment_status": "pending",
"placed_at": "2019-08-24T14:15:22Z",
"lines": [
{
"variant_id": "8a2d415d-59aa-4132-bef3-011f97c4a0f6",
"product_id": "0d012afa-f885-4e65-aeca-37e27701e2d1",
"sku": "string",
"name": "string",
"quantity": 0,
"unit_cents": 0,
"line_total_cents": 0,
"image_url": "string"
}
],
"subtotal_cents": 0,
"discount_cents": 0,
"promo_code": "string",
"shipping_cents": 0,
"shipping_method_name": "string",
"shipping_address": {},
"tax_cents": 0,
"total_cents": 0,
"currency": "str",
"fulfilment": {
"state": "placed",
"tracking_number": "string",
"carrier": "string",
"events": [
{
"state": "placed",
"at": "2019-08-24T14:15:22Z"
}
]
},
"pay_url": "string",
"issue_state": "",
"can_request_cancel": true,
"can_open_complaint": true
}{
"error": "not_found",
"message": "resource not found",
"request_id": "01916b2a-f3c0-7000-0000-0000000000ff"
}{
"error": "not_found",
"message": "resource not found",
"request_id": "01916b2a-f3c0-7000-0000-0000000000ff"
}{
"error": "not_found",
"message": "resource not found",
"request_id": "01916b2a-f3c0-7000-0000-0000000000ff"
}{
"error": "not_found",
"message": "resource not found",
"request_id": "01916b2a-f3c0-7000-0000-0000000000ff"
}Was this page helpful?