PATCH
/
api-cart
/
v1
/
cart
/
{cartId}
/
ship-to
/
{shipToId}
curl --request PATCH \
  --url https://prod01-apigw.{customer_name}.fabric.zone/api-cart/v1/cart/{cartId}/ship-to/{shipToId} \
  --header 'Content-Type: application/json' \
  --header 'x-site-context: <x-site-context>' \
  --data '{
  "shipToType": "SHIP_TO_ADDRESS",
  "warehouseId": "123456abcdef123456abcdef",
  "isPickup": true,
  "shipMethod": 123,
  "taxCode": "FR1000",
  "storeId": "TBD",
  "pickupPerson": {
    "name": {
      "first": "John",
      "last": "Smith"
    },
    "phone": {
      "number": "123-456-7890",
      "kind": "Mobile"
    },
    "email": "johnsmith@fabric.inc"
  },
  "altPickupPerson": {
    "name": {
      "first": "John",
      "last": "Smith"
    },
    "phone": {
      "number": "123-456-7890",
      "kind": "Mobile"
    },
    "email": "johnsmith@fabric.inc"
  },
  "address": {
    "attention": "Leave at the back door.",
    "street1": "123 Main Street",
    "street2": "ABC Boulevard",
    "city": "Seattle",
    "state": "WA",
    "country": "United States of America",
    "zipCode": "10008-1234",
    "kind": "TBD",
    "name": {
      "first": "John",
      "last": "Smith"
    },
    "phone": {
      "number": "123-456-7890",
      "kind": "Mobile"
    },
    "email": "johnsmith@fabric.inc"
  }
}'
{
  "shipToType": "SHIP_TO_ADDRESS",
  "warehouseId": "123456abcdef123456abcdef",
  "isPickup": true,
  "shipMethod": {
    "shipMethodId": "1a2b3c4d5e6f7g8h9i0j",
    "shipmentCarrier": "Fedex",
    "shipmentMethod": "Next Day",
    "cost": {
      "currency": "USD",
      "amount": 5.99
    }
  },
  "taxCode": "FR1000",
  "storeId": "TBD",
  "pickupPerson": {
    "name": {
      "first": "John",
      "last": "Smith"
    },
    "phone": {
      "number": "123-456-7890",
      "kind": "Mobile"
    },
    "email": "johnsmith@fabric.inc"
  },
  "altPickupPerson": {
    "name": {
      "first": "John",
      "last": "Smith"
    },
    "phone": {
      "number": "123-456-7890",
      "kind": "Mobile"
    },
    "email": "johnsmith@fabric.inc"
  },
  "address": {
    "attention": "Leave at the back door.",
    "street1": "123 Main Street",
    "street2": "ABC Boulevard",
    "city": "Seattle",
    "state": "WA",
    "country": "United States of America",
    "zipCode": "10008-1234",
    "kind": "TBD",
    "name": {
      "first": "John",
      "last": "Smith"
    },
    "phone": {
      "number": "123-456-7890",
      "kind": "Mobile"
    },
    "email": "johnsmith@fabric.inc"
  },
  "cartId": "5e5818a84d030c206b2ffb02",
  "shipToId": 13812,
  "_id": "5fee9d59f2f08a1b3cbdea08",
  "createdAt": "2020-12-31T02:09:53.914Z",
  "updatedAt": "2020-12-31T02:09:53.914Z",
  "__v": 0
}

Headers

x-site-context
string
required

The x-site-context header is a JSON object that contains information about the source you wish to pull from. The mandatory account is the 24 character identifier found in Copilot. The channel (Sales channel ID), stage (environment name), and date attributes can be used to further narrow the scope of your data source.

Example:

"{\"date\": \"2023-01-01T00:00:00.000Z\", \"channel\": 12, \"account\": \"1234abcd5678efgh9ijklmno\",\"stage\":\"production\"}"

Path Parameters

cartId
string
required
Required string length: 24
Example:

"5e5818a84d030c206b2ffb02"

shipToId
string
required
Required string length: 24
Example:

"5e5818a84d030c206b2ffb02"

Body

application/json
isPickup
boolean
required
Example:

true

shipToType
enum<string>
Available options:
BOPIS,
SHIP_TO_STORE,
SHIP_TO_ADDRESS,
STORE_PICKUP
Example:

"SHIP_TO_ADDRESS"

warehouseId
string
Required string length: 24
Example:

"123456abcdef123456abcdef"

shipMethod
number
taxCode
string
Example:

"FR1000"

storeId
string
Required string length: 5 - 50
Example:

"TBD"

pickupPerson
object
altPickupPerson
object
address
any

Response

200
application/json
Ship To Updated
shipToType
enum<string>
Available options:
BOPIS,
SHIP_TO_STORE,
SHIP_TO_ADDRESS,
STORE_PICKUP
Example:

"SHIP_TO_ADDRESS"

warehouseId
string
Required string length: 24
Example:

"123456abcdef123456abcdef"

isPickup
boolean
Example:

true

shipMethod
object
taxCode
string
Example:

"FR1000"

storeId
string
Required string length: 5 - 50
Example:

"TBD"

pickupPerson
object
altPickupPerson
object
address
any
cartId
string
Required string length: 24
Example:

"5e5818a84d030c206b2ffb02"

shipToId
number
Example:

13812

_id
string
Example:

"5fee9d59f2f08a1b3cbdea08"

createdAt
string
Example:

"2020-12-31T02:09:53.914Z"

updatedAt
string
Example:

"2020-12-31T02:09:53.914Z"

__v
number
Example:

0