API Overview
FCC Cart & Checkout exposes RESTful APIs over HTTPS. All endpoints follow consistent conventions for headers, authentication, and response structure.
Base URL
https://virtserver.swaggerhub.com/fcc-fab/Transact/1.0.0
Standard request headers
All API calls require these headers:
| Header | Type | Description |
|---|---|---|
| X-Request-Id | string | Unique request identifier for tracing. Use a UUID per request. |
| X-Tenant-Id | string | Your tenant / client identifier. Provided during onboarding. |
| X-Channel | string | Sales channel: WEB, MOBILE, POS, ANDROID, IOS |
| X-Timestamp | integer (int64) | Request timestamp in epoch milliseconds. |
| Authorisation | string | Bearer token: Bearer <token> |
Endpoint summary
Cart endpoints
| Method | Path | Description |
|---|---|---|
| POST | /v1/cart | Create Cart |
| PUT | /v1/cart/{id} | Update Cart Context |
| GET | /v1/cart/{id} | Get Cart |
| POST | /v1/cart/{id}/items | Add Items |
| PATCH | /v1/cart/{id}/items | Update Items |
| DELETE | /v1/cart/{id}/items | Delete Items |
Checkout endpoints
| Method | Path | Description |
|---|---|---|
| POST | /v1/checkout | Initiate Checkout |
| PATCH | /v1/checkout/{checkoutId}/items | Update Items in Checkout |
| DELETE | /v1/checkout/{checkoutId}/items | Delete Items from Checkout |
| POST | /v1/checkout/{checkoutId}/payments | Initiate Payment |
| POST | /v1/checkout/{checkoutId}/order | Create Order |
| GET | /v1/checkout/{checkoutId} | Get Checkout |
Response codes
| Code | Meaning |
|---|---|
200 | OK — request succeeded |
201 | Created — resource successfully created |
400 | Bad Request — invalid input |
401 | Unauthorised — invalid or missing auth token |
403 | Forbidden — valid token, insufficient permissions |
500 | Internal Server Error |
OpenAPI spec
The full OpenAPI 3.0 specification is available as a YAML file:
📄 sampleTransactOpenAPI.yaml