sayren Docs
주문서

배송비 미리보기

배송지 우편번호로 배송비를 다시 계산한다. 주문서를 만들 때는 배송지를 모르므로 제주·도서산간 추가 배송비가 빠져 있다 — 구매자가 배송지를 입력하거나 고칠 때 이 엔드포인트로 금액을 갱신하면 결제 직전에 금액이 바뀌는 일을 피할 수 있다. **주문서를 바꾸지 않는 읽기 계산이고 최종 금액은 결제 시작 응답의 `amounts`다.** 배송비는 배송 묶음(같은 출고지 + 같은 배송 정책)마다 한 번 붙고, 지역 추가 배송비는 묶음마다 더한다.

POST
/storefront/v1/checkout/{checkoutId}/delivery-quote

배송지 우편번호로 배송비를 다시 계산한다. 주문서를 만들 때는 배송지를 모르므로 제주·도서산간 추가 배송비가 빠져 있다 — 구매자가 배송지를 입력하거나 고칠 때 이 엔드포인트로 금액을 갱신하면 결제 직전에 금액이 바뀌는 일을 피할 수 있다. 주문서를 바꾸지 않는 읽기 계산이고 최종 금액은 결제 시작 응답의 amounts다. 배송비는 배송 묶음(같은 출고지 + 같은 배송 정책)마다 한 번 붙고, 지역 추가 배송비는 묶음마다 더한다.

AuthorizationBearer <token>

회원 accessToken

In: header

Path Parameters

checkoutId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

zipCode*string

배송지 우편번호 5자리

Match^[0-9]{5}$

Response Body

application/json

curl -X POST "https://example.com/storefront/v1/checkout/string/delivery-quote" \  -H "Content-Type: application/json" \  -d '{    "zipCode": "string"  }'
{  "meta": {    "status": 200,    "code": "OK",    "message": "OK",    "isSuccess": true  },  "data": {    "amounts": {      "productAmount": 0,      "deliveryFee": 0,      "totalAmount": 0,      "couponDiscountAmount": 0,      "deliveryDiscountAmount": 0,      "pointAmount": 0    },    "delivery": {      "baseFee": 0,      "remoteSurcharge": 0,      "remoteArea": "NONE",      "remoteAreaLabel": "string",      "bundleCount": 0,      "freeByThreshold": true,      "zipCode": "string"    }  },  "error": null}