Skip to main content
POST
/
admin
/
shipping_methods
배송 방법 생성
curl --request POST \
  --url https://api.headlesscommerce.io/v1/admin/shipping_methods \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "price": 123,
  "description": "<string>",
  "free_shipping_threshold": 123,
  "metadata": {}
}
'
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "price": {
    "amount": 123,
    "currency": "<string>"
  },
  "free_shipping_threshold": {
    "amount": 123,
    "currency": "<string>"
  },
  "is_active": true,
  "position": 123
}

Authorizations

Authorization
string
header
required

API Key. 예: sk_live_xxxxx 또는 pk_live_xxxxx

Body

application/json
name
string
required
price
integer
required

고정 배송비 (최소 통화 단위)

description
string
free_shipping_threshold
integer
metadata
object

Response

201 - application/json

Created

id
string
name
string
description
string
price
object
free_shipping_threshold
object
is_active
boolean
position
integer