/checkout/apply-code
Apply code
Validates a gift card or discount code for checkout use.
Body required
| Field | Type |
|---|---|
code
|
string · nullable |
Responses
ApplyCodeResponse
| Field | Type |
|---|---|
balance
|
decimal · nullable |
code
|
string · nullable |
currencyId
|
string · nullable |
discountCalculation
|
string · nullable |
discountName
|
string · nullable |
discountValue
|
decimal · nullable |
type
|
string · nullable |
-
Retry-After— Seconds to wait before retrying.
Standard errors:
400
404
Errors
Examples
curl -X POST "https://api.erp.fluit.cloud/ecom/checkout/apply-code" \
-H "Authorization: Bearer $SESSION_TOKEN" \
-H "X-Tenant-Id: $FLUIT_TENANT_ID" \
-H "X-Channel: web" \
-H "Content-Type: application/json" \
-d @body.json
{
"balance": "299.00",
"code": "string",
"currencyId": "string",
"discountCalculation": "string",
"discountName": "Acme AB",
"discountValue": "299.00",
"type": "string"
}
Base URL https://api.erp.fluit.cloud/ecom. The response example is generated from the schema: the shape is right, the values are made up.