sayren Docs
주문 상품 처리

배송완료 처리

발송(`DISPATCHED`)·배송중(`DELIVERING`) 주문상품을 배송완료(`DELIVERED`)로 바꾼다. 배송완료 시점에 구매확정 예정일(`autoDecisionDate`)을 상점 설정 `autoConfirmDays`로 다시 잡고, `ORDER.DELIVERED` 웹훅을 보낸다. 그 예정일이 지나면 자동 구매확정된다. 스코프 `order:rw`.

POST
/v1/order-items/{orderItemId}/delivered

발송(DISPATCHED)·배송중(DELIVERING) 주문상품을 배송완료(DELIVERED)로 바꾼다. 배송완료 시점에 구매확정 예정일(autoDecisionDate)을 상점 설정 autoConfirmDays로 다시 잡고, ORDER.DELIVERED 웹훅을 보낸다. 그 예정일이 지나면 자동 구매확정된다. 스코프 order:rw.

Authorization

accessToken
headerAuthorizationBearer <token>

Sayren 계정 토큰(로그인 토큰 또는 개인 액세스 토큰, RFC 9068 JWT)

Path Parameters

orderItemId*string

Header Parameters

X-Store-Id*string

대상 상점 id. 토큰의 상점 범위 밖이면 403 STORE_NOT_GRANTED, 없으면 400 STORE_ID_REQUIRED다

idempotency-key?string

멱등키. 같은 키로 다시 보내면 처음 결과를 돌려주고 한 번만 적용한다. 재시도에는 같은 키를 쓴다

Lengthlength <= 255

Response Body

성공

application/json
  1. response
meta*
data*
error*|null
curl -X POST 'https://api.sayren.io/v1/order-items/string/delivered' \  -H 'X-Store-Id: string'
{  "meta": {    "status": 200,    "code": "OK",    "message": "OK",    "isSuccess": true  },  "data": {    "orderItemId": "string",    "orderItemNo": null,    "orderId": "string",    "status": "PAYMENT_WAITING",    "claimStatus": "CANCEL_REQUESTED",    "productId": "string",    "productName": "string",    "optionId": "string",    "optionName": "string",    "optionSelections": [],    "customInputs": [],    "stay": {      "checkIn": "string",      "checkOut": "string",      "nights": [        {          "date": "string",          "price": 0        }      ]    },    "sellerCode": "string",    "fulfillmentSnapshot": {      "type": "SHIPPING",      "shipping": {        "bundleKey": "string",        "returnAddressId": "string"      },      "method": "string",      "pickupLocation": {        "locationId": "string",        "name": "string",        "address": "string",        "phone": "string",        "hours": "string"      }    },    "quantity": 0,    "canceledQuantity": 0,    "activeQuantity": 0,    "unitPrice": 0,    "discountAmount": 0,    "totalPrice": 0,    "couponDiscountAmount": 0,    "pointAllocation": 0,    "hold": {      "reason": "string",      "expectedDispatchDate": "string"    },    "fulfillment": null,    "autoDecisionDate": "string",    "sellerMemo": "string",    "orderedAt": "string",    "lastChangedAt": "string",    "lastChangedType": "ORDER.PAID",    "testPayment": true  },  "error": null}