POST
/
api-order
/
checkout
curl --request POST \
  --url https://prod01-apigw.{customer_name}.fabric.zone/api-order/checkout \
  --header 'Content-Type: application/json' \
  --data '{
  "cartId": "5e4876e10cfe1d8902005d33",
  "customerAccountId": "5e3598e3007c5e00080d2bb8",
  "customerEmail": "jsmith@example.com",
  "customerPhoneNumber": {
    "number": "123-456-7890",
    "kind": "Mobile"
  },
  "paymentDetails": [
    {
      "billToId": 1000001,
      "shipToId": [
        1000001,
        1000002
      ],
      "transactionDetails": {
        "paymentType": "CARD",
        "tokenizedPaymentMethod": "12fyg3fv4dbb56bbd7dfb890123456",
        "cardNumber": "1234567890123456",
        "expDate": "0220",
        "cvv": "123",
        "cardHolderFullName": "Mr John Smith",
        "metadata": {}
      },
      "paymentMethod": "Visa",
      "paymentKind": "<string>",
      "amount": 533.33,
      "currency": "USD",
      "conversion": 1.12,
      "billToAddress": {
        "name": {
          "first": "John",
          "middle": "Paul",
          "last": "Smith"
        },
        "email": "johnsmith@fabric.inc",
        "phone": {
          "number": "123-456-7890",
          "kind": "Mobile"
        },
        "street1": "10400 NE 4th St",
        "street2": "Suite 500",
        "city": "Bellevue",
        "state": "WA",
        "country": "USA",
        "zipCode": "98004",
        "kind": "Bill to address"
      }
    }
  ],
  "estimatedTax": {
    "itemsTaxes": [
      {
        "lineItemId": 2,
        "amount": 20
      }
    ],
    "shipToTaxes": [
      {
        "shipToId": "5ec35a857e6cac8d99a57d3b",
        "amount": 20
      }
    ]
  },
  "shipFrom": {
    "street1": "10400 NE 4th St",
    "city": "Bellevue",
    "state": "WA",
    "country": "USA",
    "zipCode": "98004"
  }
}'
{
  "checkoutComplete": true,
  "orderId": "9376-1544-24209"
}

Headers

x-api-key
string

Body

application/json
cartId
string
required
Required string length: 24
customerEmail
string
required
Minimum length: 3
paymentDetails
object[]
required
estimatedTax
object
required
customerAccountId
string
Minimum length: 3
customerPhoneNumber
object
shipFrom
object

Response

200
application/json
Order checkout
checkoutComplete
boolean
orderId
string