OrderDiscount
OrderDiscount
List order discounts
Reference to a tenant.
^[A-Za-z0-9-_]+Reference to a Store.
^[A-Za-z0-9-_]+Reference to an Order.
^[A-Za-z0-9-_]+Example response
GET /v2/tenants/{tenantUid}/stores/{storeUid}/orders/{orderUid}/discounts HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Example response
{
"items": [
{
"orderDiscountUid": "text",
"discountCode": "text",
"type": "PERCENTAGE",
"amount": 1,
"name": "text",
"origin": "LOYALTY",
"validTo": "2025-10-30T21:07:15.750Z",
"maxUsage": 1,
"productSkus": [
"text"
],
"orderItemUids": [
"text"
],
"externalTransactionId": "text",
"scope": "WHOLE_ORDER",
"discountReasonCode": "text",
"discountReference": "text",
"createdAt": "2025-10-30T21:07:15.750Z",
"createdBy": "text",
"lastModifiedAt": "2025-10-30T21:07:15.750Z",
"lastModifiedBy": "text",
"campaignUid": "text"
}
]
}Add discounts to an order.
Reference to a tenant.
^[A-Za-z0-9-_]+Reference to a Store.
^[A-Za-z0-9-_]+Reference to an Order.
^[A-Za-z0-9-_]+^[A-Za-z0-9-_]+^[A-Za-z0-9-_]+^[A-Za-z0-9-_]+Example response
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: 284
{
"discountCode": "text",
"type": "PERCENTAGE",
"amount": 1,
"origin": "LOYALTY",
"name": "text",
"productSkus": [
"text"
],
"validTo": "2025-10-30T21:07:15.750Z",
"maxUsage": 1,
"orderItemUid": "text",
"discountReasonCode": "text",
"discountReference": "text",
"orderDiscountUid": "text",
"campaignUid": "text"
}Example response
{
"orderDiscountUid": "text",
"discountCode": "text",
"type": "PERCENTAGE",
"amount": 1,
"name": "text",
"origin": "LOYALTY",
"validTo": "2025-10-30T21:07:15.750Z",
"maxUsage": 1,
"productSkus": [
"text"
],
"orderItemUids": [
"text"
],
"externalTransactionId": "text",
"scope": "WHOLE_ORDER",
"discountReasonCode": "text",
"discountReference": "text",
"createdAt": "2025-10-30T21:07:15.750Z",
"createdBy": "text",
"lastModifiedAt": "2025-10-30T21:07:15.750Z",
"lastModifiedBy": "text",
"campaignUid": "text"
}Get order discount details
Get order discount details.
Reference to a tenant.
^[A-Za-z0-9-_]+Reference to a Store.
^[A-Za-z0-9-_]+Reference to an Order.
^[A-Za-z0-9-_]+Reference to an order discount.
^[A-Za-z0-9-_]+Example response
GET /v2/tenants/{tenantUid}/stores/{storeUid}/orders/{orderUid}/discounts/{orderDiscountUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Example response
{
"orderDiscountUid": "text",
"discountCode": "text",
"type": "PERCENTAGE",
"amount": 1,
"name": "text",
"origin": "LOYALTY",
"validTo": "2025-10-30T21:07:15.750Z",
"maxUsage": 1,
"productSkus": [
"text"
],
"orderItemUids": [
"text"
],
"externalTransactionId": "text",
"scope": "WHOLE_ORDER",
"discountReasonCode": "text",
"discountReference": "text",
"createdAt": "2025-10-30T21:07:15.750Z",
"createdBy": "text",
"lastModifiedAt": "2025-10-30T21:07:15.750Z",
"lastModifiedBy": "text",
"campaignUid": "text"
}Update order discount
Update order discount
Reference to a tenant.
^[A-Za-z0-9-_]+Reference to a Store.
^[A-Za-z0-9-_]+Reference to an Order.
^[A-Za-z0-9-_]+Reference to an order discount.
^[A-Za-z0-9-_]+^[A-Za-z0-9-_]*Example response
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: 237
{
"discountCode": "text",
"type": "PERCENTAGE",
"amount": 1,
"origin": "LOYALTY",
"name": "text",
"productSkus": [
"text"
],
"validTo": "2025-10-30T21:07:15.750Z",
"maxUsage": 1,
"orderItemUid": "text",
"discountReasonCode": "text",
"discountReference": "text"
}Example response
{
"orderDiscountUid": "text",
"discountCode": "text",
"type": "PERCENTAGE",
"amount": 1,
"name": "text",
"origin": "LOYALTY",
"validTo": "2025-10-30T21:07:15.750Z",
"maxUsage": 1,
"productSkus": [
"text"
],
"orderItemUids": [
"text"
],
"externalTransactionId": "text",
"scope": "WHOLE_ORDER",
"discountReasonCode": "text",
"discountReference": "text",
"createdAt": "2025-10-30T21:07:15.750Z",
"createdBy": "text",
"lastModifiedAt": "2025-10-30T21:07:15.750Z",
"lastModifiedBy": "text",
"campaignUid": "text"
}Delete order discount
Delete order discount.
Reference to a tenant.
^[A-Za-z0-9-_]+Reference to a Store.
^[A-Za-z0-9-_]+Reference to an Order.
^[A-Za-z0-9-_]+Reference to an order discount.
^[A-Za-z0-9-_]+No Content
No content
DELETE /v2/tenants/{tenantUid}/stores/{storeUid}/orders/{orderUid}/discounts/{orderDiscountUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No Content
No content
Delete all order discounts with matching discountCode
Delete all order discounts with matching discountCode
Reference to a tenant.
^[A-Za-z0-9-_]+Reference to a Store.
^[A-Za-z0-9-_]+Reference to an Order.
^[A-Za-z0-9-_]+Reference to a discount code
No Content
No content
DELETE /v2/tenants/{tenantUid}/stores/{storeUid}/orders/{orderUid}/discountCode/{discountCode} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No Content
No content
Last updated