/checkout/apply-code
Apply code
Validates a gift card or discount code for checkout use.
Body krävs
| Fält | Typ |
|---|---|
code
|
string · nullable |
Svar
ApplyCodeResponse
| Fält | Typ |
|---|---|
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.
Standardfel:
400
404
Felhantering
Exempel
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"
}
Bas-URL https://api.erp.fluit.cloud/ecom. Svarsexemplet är genererat ur schemat: formen stämmer, värdena är påhittade.