OrderDiscount
OrderDiscount
List order discounts
Authorizations
Path parameters
tenantUidstringRequiredPattern:
Reference to a tenant.
^[A-Za-z0-9-_]+
storeUidstringRequiredPattern:
Reference to a Store.
^[A-Za-z0-9-_]+
orderUidstringRequiredPattern:
Reference to an Order.
^[A-Za-z0-9-_]+
Responses
200
Example response
application/json
get
GET /v2/tenants/{tenantUid}/stores/{storeUid}/orders/{orderUid}/discounts HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200
Example response
{
"items": [
{
"orderDiscountUid": "text",
"discountCode": "text",
"type": "PERCENTAGE",
"amount": 1,
"name": "text",
"origin": "LOYALTY",
"validTo": "2025-07-30T18:09:46.444Z",
"maxUsage": 1,
"productSkus": [
"text"
],
"orderItemUids": [
"text"
],
"externalTransactionId": "text",
"scope": "WHOLE_ORDER",
"discountReasonCode": "text",
"createdAt": "2025-07-30T18:09:46.444Z",
"createdBy": "text",
"lastModifiedAt": "2025-07-30T18:09:46.444Z",
"lastModifiedBy": "text",
"campaignUid": "text"
}
]
}
Add discounts to an order.
Authorizations
Path parameters
tenantUidstringRequiredPattern:
Reference to a tenant.
^[A-Za-z0-9-_]+
storeUidstringRequiredPattern:
Reference to a Store.
^[A-Za-z0-9-_]+
orderUidstringRequiredPattern:
Reference to an Order.
^[A-Za-z0-9-_]+
Body
discountCodestringOptional
typestring · enumOptionalPossible values:
amountintegerOptional
originstring · enumRequiredPossible values:
namestringOptional
productSkusstring[]Optional
validTostring · date-timeOptional
maxUsageintegerOptional
orderItemUidstringOptionalPattern:
^[A-Za-z0-9-_]+
discountReasonCodestringOptional
orderDiscountUidstringOptionalPattern:
^[A-Za-z0-9-_]+
campaignUidstringOptionalPattern:
^[A-Za-z0-9-_]+
Responses
201
Example response
application/json
post
POST /v2/tenants/{tenantUid}/stores/{storeUid}/orders/{orderUid}/discounts HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 257
{
"discountCode": "text",
"type": "PERCENTAGE",
"amount": 1,
"origin": "LOYALTY",
"name": "text",
"productSkus": [
"text"
],
"validTo": "2025-07-30T18:09:46.444Z",
"maxUsage": 1,
"orderItemUid": "text",
"discountReasonCode": "text",
"orderDiscountUid": "text",
"campaignUid": "text"
}
201
Example response
{
"orderDiscountUid": "text",
"discountCode": "text",
"type": "PERCENTAGE",
"amount": 1,
"name": "text",
"origin": "LOYALTY",
"validTo": "2025-07-30T18:09:46.444Z",
"maxUsage": 1,
"productSkus": [
"text"
],
"orderItemUids": [
"text"
],
"externalTransactionId": "text",
"scope": "WHOLE_ORDER",
"discountReasonCode": "text",
"createdAt": "2025-07-30T18:09:46.444Z",
"createdBy": "text",
"lastModifiedAt": "2025-07-30T18:09:46.444Z",
"lastModifiedBy": "text",
"campaignUid": "text"
}
Get order discount details.
Authorizations
Path parameters
tenantUidstringRequiredPattern:
Reference to a tenant.
^[A-Za-z0-9-_]+
storeUidstringRequiredPattern:
Reference to a Store.
^[A-Za-z0-9-_]+
orderUidstringRequiredPattern:
Reference to an Order.
^[A-Za-z0-9-_]+
orderDiscountUidstringRequiredPattern:
Reference to an order discount.
^[A-Za-z0-9-_]+
Responses
200
Example response
application/json
get
GET /v2/tenants/{tenantUid}/stores/{storeUid}/orders/{orderUid}/discounts/{orderDiscountUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200
Example response
{
"orderDiscountUid": "text",
"discountCode": "text",
"type": "PERCENTAGE",
"amount": 1,
"name": "text",
"origin": "LOYALTY",
"validTo": "2025-07-30T18:09:46.444Z",
"maxUsage": 1,
"productSkus": [
"text"
],
"orderItemUids": [
"text"
],
"externalTransactionId": "text",
"scope": "WHOLE_ORDER",
"discountReasonCode": "text",
"createdAt": "2025-07-30T18:09:46.444Z",
"createdBy": "text",
"lastModifiedAt": "2025-07-30T18:09:46.444Z",
"lastModifiedBy": "text",
"campaignUid": "text"
}
Update order discount
Authorizations
Path parameters
tenantUidstringRequiredPattern:
Reference to a tenant.
^[A-Za-z0-9-_]+
storeUidstringRequiredPattern:
Reference to a Store.
^[A-Za-z0-9-_]+
orderUidstringRequiredPattern:
Reference to an Order.
^[A-Za-z0-9-_]+
orderDiscountUidstringRequiredPattern:
Reference to an order discount.
^[A-Za-z0-9-_]+
Body
discountCodestringOptional
typestring · enumOptionalPossible values:
amountintegerOptional
originstring · enumOptionalPossible values:
namestringOptional
productSkusstring[]Optional
validTostring · date-timeOptional
maxUsageintegerOptional
orderItemUidstringOptionalPattern:
^[A-Za-z0-9-_]*
discountReasonCodestringOptional
Responses
200
Example response
application/json
put
PUT /v2/tenants/{tenantUid}/stores/{storeUid}/orders/{orderUid}/discounts/{orderDiscountUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 210
{
"discountCode": "text",
"type": "PERCENTAGE",
"amount": 1,
"origin": "LOYALTY",
"name": "text",
"productSkus": [
"text"
],
"validTo": "2025-07-30T18:09:46.444Z",
"maxUsage": 1,
"orderItemUid": "text",
"discountReasonCode": "text"
}
200
Example response
{
"orderDiscountUid": "text",
"discountCode": "text",
"type": "PERCENTAGE",
"amount": 1,
"name": "text",
"origin": "LOYALTY",
"validTo": "2025-07-30T18:09:46.444Z",
"maxUsage": 1,
"productSkus": [
"text"
],
"orderItemUids": [
"text"
],
"externalTransactionId": "text",
"scope": "WHOLE_ORDER",
"discountReasonCode": "text",
"createdAt": "2025-07-30T18:09:46.444Z",
"createdBy": "text",
"lastModifiedAt": "2025-07-30T18:09:46.444Z",
"lastModifiedBy": "text",
"campaignUid": "text"
}
Delete order discount.
Authorizations
Path parameters
tenantUidstringRequiredPattern:
Reference to a tenant.
^[A-Za-z0-9-_]+
storeUidstringRequiredPattern:
Reference to a Store.
^[A-Za-z0-9-_]+
orderUidstringRequiredPattern:
Reference to an Order.
^[A-Za-z0-9-_]+
orderDiscountUidstringRequiredPattern:
Reference to an order discount.
^[A-Za-z0-9-_]+
Responses
204
No Content
delete
DELETE /v2/tenants/{tenantUid}/stores/{storeUid}/orders/{orderUid}/discounts/{orderDiscountUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
204
No Content
No content
Was this helpful?