Download OpenAPI specification:Download
fabric's Checkout API lets you complete the checkout process and place an order on the cart items. This process includes specifying a customer's shipping and payment details, and calculating tax and shipping rates.
Create checkout operation on all the items of a specific cart which is identified by a unique cartId
. Along with cartId
, checkout operation includes merchant account Id, amount to be paid, tax to be imposed on cart items and shipping address, and some other details.
OK
Client error
Not found
Internal server error
{- "cartId": "d7e78a21-bee3-4448-bf1c-d5b5461dbda2",
- "customerAccountId": "5f689caa4216e7000750d1ef",
- "customerEmail": "john.doe@gmail.com",
- "customerPhoneNumber": {
- "number": "123-456-7890",
- "kind": "office"
}, - "paymentDetails": [
- {
- "connectorName": "Authorizenet",
- "paymentMethod": "card",
- "paymentToken": 534234543,
- "amount": 100,
- "currency": "USD",
- "billToAddress": {
- "name": {
- "first": "John",
- "middle": "",
- "last": "Doe"
}, - "phone": {
- "number": "123-456-7890",
- "kind": "office"
}, - "email": "john.doe@gmail.com",
- "street1": "100 NE 100th St",
- "street2": "Near landmark",
- "city": "Seattle",
- "state": "Washington",
- "country": "USA",
- "zipCode": 98121,
- "customerId": 98121
}
}
], - "estimatedTax": {
- "itemsTaxes": [
- {
- "lineItemId": 1,
- "amount": 1.5
}
], - "shipToTaxes": [
- {
- "shipToId": "fef78121-bee3-4448-bf1c-d5b5461dbda2",
- "amount": 2.5
}
]
}
}
{- "checkoutComplete": true,
- "orderId": "111-121-1234"
}