Skip to main content
PUT
/
carts
/
{cartId}
/
fulfillments
/
{fulfillmentId}
Update fulfillment
curl --request PUT \
  --url https://api.fabric.inc/v3/carts/{cartId}/fulfillments/{fulfillmentId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-fabric-tenant-id: <x-fabric-tenant-id>' \
  --data '{
  "type": "SHIP_TO",
  "refId": "398427903843",
  "attributes": {
    "source": "store"
  },
  "originAddress": "a8577d7f-0d4d-4b22-8e85-7b4a2e90dc93",
  "destinationAddress": "a8577d7f-0d4d-4b22-8e85-7b4a2e90dc93",
  "locationId": "CA",
  "pickupPerson": {
    "primary": {
      "name": {
        "first": "John",
        "middle": "S",
        "last": "Doe"
      },
      "email": "[email protected]",
      "phone": {
        "number": "123-456-7890",
        "type": "MOBILE"
      }
    },
    "secondary": [
      {
        "name": {
          "first": "John",
          "middle": "S",
          "last": "Doe"
        },
        "email": "[email protected]",
        "phone": {
          "number": "123-456-7890",
          "type": "MOBILE"
        }
      }
    ]
  },
  "price": {
    "amount": 12.99
  }
}'
{
  "id": "d6229cdb-0c5b-4885-b1b2-13b94d02488e",
  "type": "SHIP_TO",
  "refId": "398427903843",
  "attributes": {
    "source": "store"
  },
  "originAddress": "a8577d7f-0d4d-4b22-8e85-7b4a2e90dc93",
  "destinationAddress": "a8577d7f-0d4d-4b22-8e85-7b4a2e90dc93",
  "locationId": "CA",
  "pickupPerson": {
    "primary": {
      "name": {
        "first": "John",
        "middle": "S",
        "last": "Doe"
      },
      "email": "[email protected]",
      "phone": {
        "number": "123-456-7890",
        "type": "MOBILE"
      }
    },
    "secondary": [
      {
        "name": {
          "first": "John",
          "middle": "S",
          "last": "Doe"
        },
        "email": "[email protected]",
        "phone": {
          "number": "123-456-7890",
          "type": "MOBILE"
        }
      }
    ]
  },
  "price": {
    "amount": 12.99
  },
  "promotions": {
    "total": 15,
    "collection": [
      {
        "id": "bb44db95-6fbd-4eed-a1ed-4d99bc91250f",
        "amount": 15
      }
    ]
  },
  "fees": {
    "total": 5,
    "collection": [
      {
        "id": "a8577d7f-0d4d-4b22-8e85-7b4a2e90dc93",
        "name": "Eco Fee",
        "price": {
          "amount": 12.99
        },
        "taxable": true,
        "attributes": {
          "source": "eco"
        },
        "tax": {
          "total": 3,
          "collection": [
            {
              "amount": 3,
              "attributes": {
                "rate": "5.0",
                "type": "COUNTY"
              }
            }
          ]
        },
        "updatedAt": "2024-06-13T16:50:00.682Z",
        "createdAt": "2024-06-13T16:50:00.682Z",
        "taxDetails": {
          "destinationAddress": "c86f777b-1885-4ddf-961d-542ba80a69b8",
          "originAddress": "c86f777b-1885-4ddf-961d-542ba80a69b8"
        }
      }
    ]
  },
  "adjustments": {
    "total": 2,
    "collection": [
      {
        "id": "a8577d7f-0d4d-4b22-8e85-7b4a2e90dc93",
        "price": {
          "amount": 12.99
        },
        "reason": "Price adjustment from customer representative.",
        "attributes": {
          "source": "CSR"
        },
        "updatedAt": "2024-06-13T16:50:00.682Z",
        "createdAt": "2024-06-13T16:50:00.682Z"
      }
    ]
  },
  "tax": {
    "total": 3,
    "collection": [
      {
        "amount": 3,
        "attributes": {
          "rate": "5.0",
          "type": "COUNTY"
        }
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Headers

x-fabric-tenant-id
string
required
Example:
x-fabric-request-id
string
Example:
x-fabric-channel-id
string
Example:

Path Parameters

cartId
string
required
fulfillmentId
string
required

Body

application/json
type
enum<string>
Available options:
SHIP_TO,
BOPIS,
ROPIS
Example:
refId
string
Example:
attributes
object
Example:
originAddress
string
Example:
destinationAddress
string
Example:
locationId
string
Example:
pickupPerson
object
price
object

Response

id
string
Example:
type
enum<string>
Available options:
SHIP_TO,
BOPIS,
ROPIS
Example:
refId
string
Example:
attributes
object
Example:
originAddress
string
Example:
destinationAddress
string
Example:
locationId
string
Example:
pickupPerson
object
price
object
promotions
object
fees
object
adjustments
object
tax
object