SOA
SOA
List all SOAs.
Reference to a tenant.
^[A-Za-z0-9-_]+Reference to the name of a SOA.
External reference to a SOA.
Reference to a specific page in a result set.
The number of items per page in a result set.
Defines which field the resource list is sorted by.
| ENUM | Description |
|---|---|
| ASC | Sort in ascending order |
| DESC | Sort in descending order |
Example response
GET /v2/tenants/{tenantUid}/soas HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Example response
{
"items": [
{
"name": "text",
"externalId": "text",
"soaUid": "text",
"createdAt": "2025-10-30T20:45:04.441Z",
"createdBy": "text",
"lastModifiedAt": "2025-10-30T20:45:04.441Z",
"lastModifiedBy": "text"
}
],
"paging": {
"pageNumber": 1,
"pageSize": 1,
"totalCount": 1
}
}Create a new SOA.
Reference to a tenant.
^[A-Za-z0-9-_]+Example response
POST /v2/tenants/{tenantUid}/soas HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 51
{
"externalId": "text",
"name": "text",
"soaUid": "text"
}Example response
{
"name": "text",
"externalId": "text",
"soaUid": "text",
"createdAt": "2025-10-30T20:45:04.441Z",
"createdBy": "text",
"lastModifiedAt": "2025-10-30T20:45:04.441Z",
"lastModifiedBy": "text"
}Creates amounts on a SOA.
Items in:
create : will be created.
update : will be updated.
delete: will be deleted.
upsert: will create or update if needed.
The response http status is either:
200: all items in request was processed successfully,
207: one or more item was processed with an error.
Reference to a tenant.
^[A-Za-z0-9-_]+Response for SOAAmountBatchRequest. 200: All items in request was processed with no errors 207: One or more items in request returned an error
Response for SOAAmountBatchRequest. 200: All items in request was processed with no errors 207: One or more items in request returned an error
POST /v2/tenants/{tenantUid}/soas/batch HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 183
{
"upsert": [
{
"storeUid": "text",
"productUid": "text",
"amount": 1,
"fromDateTime": "2025-10-30T20:45:04.441Z",
"toDateTime": "2025-10-30T20:45:04.441Z",
"soaAmountUid": "text",
"soaUid": "text"
}
]
}{
"upsert": {
"errors": [
{
"errorCode": "text",
"message": "text",
"productUid": "text",
"storeUid": "text",
"soaUid": "text",
"soaAmountUid": "text"
}
],
"success": 1
}
}Get SOA details.
Reference to a tenant.
^[A-Za-z0-9-_]+Reference to a SOA.
^[A-Za-z0-9-_]+Example response
GET /v2/tenants/{tenantUid}/soas/{soaUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Example response
{
"name": "text",
"externalId": "text",
"soaUid": "text",
"createdAt": "2025-10-30T20:45:04.441Z",
"createdBy": "text",
"lastModifiedAt": "2025-10-30T20:45:04.441Z",
"lastModifiedBy": "text"
}Update SO details.
Reference to a tenant.
^[A-Za-z0-9-_]+Reference to a SOA.
^[A-Za-z0-9-_]+Example response
PUT /v2/tenants/{tenantUid}/soas/{soaUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 35
{
"externalId": "text",
"name": "text"
}Example response
{
"name": "text",
"externalId": "text",
"soaUid": "text",
"createdAt": "2025-10-30T20:45:04.441Z",
"createdBy": "text",
"lastModifiedAt": "2025-10-30T20:45:04.441Z",
"lastModifiedBy": "text"
}Deletes a SOA and all associated amounts.
Reference to a tenant.
^[A-Za-z0-9-_]+Reference to a SOA.
^[A-Za-z0-9-_]+No Content
No content
DELETE /v2/tenants/{tenantUid}/soas/{soaUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No Content
No content
List SOA Amounts associated with a SOA
Reference to a tenant.
^[A-Za-z0-9-_]+Reference to a SOA.
^[A-Za-z0-9-_]+Reference to a specific page in a result set.
The number of items per page in a result set.
Defines which field the resource list is sorted by.
| ENUM | Description |
|---|---|
| ASC | Sort in ascending order |
| DESC | Sort in descending order |
List of SOA Amounts
GET /v2/tenants/{tenantUid}/soas/{soaUid}/amounts HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
List of SOA Amounts
{
"items": [
{
"soaUid": "text",
"storeUid": "text",
"productUid": "text",
"soaAmountUid": "text",
"amount": 1,
"fromDateTime": "2025-10-30T20:45:04.441Z",
"toDateTime": "2025-10-30T20:45:04.441Z",
"createdAt": "2025-10-30T20:45:04.441Z",
"createdBy": "text",
"lastModifiedAt": "2025-10-30T20:45:04.441Z",
"lastModifiedBy": "text"
}
],
"paging": {
"pageNumber": 1,
"pageSize": 1,
"totalCount": 1
}
}Create a SOA amount.
Reference to a tenant.
^[A-Za-z0-9-_]+Reference to a SOA.
^[A-Za-z0-9-_]+^[A-Za-z0-9-_]+^[A-Za-z0-9-_]+^[A-Za-z0-9-_]+Example response
POST /v2/tenants/{tenantUid}/soas/{soaUid}/amounts HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 154
{
"storeUid": "text",
"productUid": "text",
"amount": 1,
"fromDateTime": "2025-10-30T20:45:04.441Z",
"toDateTime": "2025-10-30T20:45:04.441Z",
"soaAmountUid": "text"
}Example response
{
"soaUid": "text",
"storeUid": "text",
"productUid": "text",
"soaAmountUid": "text",
"amount": 1,
"fromDateTime": "2025-10-30T20:45:04.441Z",
"toDateTime": "2025-10-30T20:45:04.441Z",
"createdAt": "2025-10-30T20:45:04.441Z",
"createdBy": "text",
"lastModifiedAt": "2025-10-30T20:45:04.441Z",
"lastModifiedBy": "text"
}Get a SOA amount.
Reference to a tenant.
^[A-Za-z0-9-_]+Reference to a SOA.
^[A-Za-z0-9-_]+Reference to a SOA amount.
^[A-Za-z0-9-_]+Example response
GET /v2/tenants/{tenantUid}/soas/{soaUid}/amounts/{soaAmountUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Example response
{
"soaUid": "text",
"storeUid": "text",
"productUid": "text",
"soaAmountUid": "text",
"amount": 1,
"fromDateTime": "2025-10-30T20:45:04.441Z",
"toDateTime": "2025-10-30T20:45:04.441Z",
"createdAt": "2025-10-30T20:45:04.441Z",
"createdBy": "text",
"lastModifiedAt": "2025-10-30T20:45:04.441Z",
"lastModifiedBy": "text"
}Update SOA amount details
Reference to a tenant.
^[A-Za-z0-9-_]+Reference to a SOA.
^[A-Za-z0-9-_]+Reference to a SOA amount.
^[A-Za-z0-9-_]+^[A-Za-z0-9-_]+^[A-Za-z0-9-_]+Example response
PUT /v2/tenants/{tenantUid}/soas/{soaUid}/amounts/{soaAmountUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 132
{
"storeUid": "text",
"productUid": "text",
"amount": 1,
"fromDateTime": "2025-10-30T20:45:04.441Z",
"toDateTime": "2025-10-30T20:45:04.441Z"
}Example response
{
"soaUid": "text",
"storeUid": "text",
"productUid": "text",
"soaAmountUid": "text",
"amount": 1,
"fromDateTime": "2025-10-30T20:45:04.441Z",
"toDateTime": "2025-10-30T20:45:04.441Z",
"createdAt": "2025-10-30T20:45:04.441Z",
"createdBy": "text",
"lastModifiedAt": "2025-10-30T20:45:04.441Z",
"lastModifiedBy": "text"
}Delete a SOA amount
Reference to a tenant.
^[A-Za-z0-9-_]+Reference to a SOA.
^[A-Za-z0-9-_]+Reference to a SOA amount.
^[A-Za-z0-9-_]+No Content
No content
DELETE /v2/tenants/{tenantUid}/soas/{soaUid}/amounts/{soaAmountUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No Content
No content
Last updated