POST /landed-costs.json

POST /landed-costs.json
application/json

Body Required

  • countries array[string] | null

    Countries

  • countryScope string | null Required

    Country scope

    Values are all, domestic, international, selected, or excluded. Default value is all.

  • dropshipProviderFilter string | null Required

    Dropship provider filter

    Values are all, include, or exclude. Default value is all.

  • name string Required

    Name

  • type string Required

    Type

    Values are purchase, purchase_item, or purchase_shipping_rate. Default value is purchase_item.

  • value number Required

    Value

  • valueType string Required

    Value type

    Values are absolute or percentage.

Responses

  • 200 application/json

    Successful response

    Hide response attributes Show response attributes object
    • countries array[string] | null

      Countries

    • countryScope string | null Required

      Country scope

      Values are all, domestic, international, selected, or excluded. Default value is all.

    • createdAt string(date-time)

      Created at

    • dropshipProviderFilter string | null Required

      Dropship provider filter

      Values are all, include, or exclude. Default value is all.

    • id integer(int32)

      Id

    • name string Required

      Name

    • type string Required

      Type

      Values are purchase, purchase_item, or purchase_shipping_rate. Default value is purchase_item.

    • updatedAt string(date-time)

      Updated at

    • value number Required

      Value

    • valueType string Required

      Value type

      Values are absolute or percentage.

POST /landed-costs.json
curl \
 -X POST http://api.example.com/v1/landed-costs.json \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"countries":["string"],"countryScope":"all","dropshipProviderFilter":"all","name":"string","type":"purchase_item","value":42.0,"valueType":"absolute"}'
Request example
{
  "countries": [
    "string"
  ],
  "countryScope": "all",
  "dropshipProviderFilter": "all",
  "name": "string",
  "type": "purchase_item",
  "value": 42.0,
  "valueType": "absolute"
}
Response examples (200)
{
  "countries": [
    "string"
  ],
  "countryScope": "all",
  "createdAt": "2024-05-04T09:42:00+00:00",
  "dropshipProviderFilter": "all",
  "id": 42,
  "name": "string",
  "type": "purchase_item",
  "updatedAt": "2024-05-04T09:42:00+00:00",
  "value": 42.0,
  "valueType": "absolute"
}