Purchase
Purchase
Lists all purchase orders.
Reference to a Store.
^[A-Za-z0-9-_]+
Reference to a tenant.
^[A-Za-z0-9-_]+
External reference to a purchaseOrderUid.
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}/stores/{storeUid}/purchase-orders HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Example response
{
"items": [
{
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"deliveryAddress": "text",
"deliveryCity": "text",
"deliveryCountryCode": "text",
"deliveryName": "text",
"deliveryPostalCode": "text",
"externalId": "text",
"items": [
{
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"expectedDeliveryDate": "2025-09-12",
"externalId": "text",
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"productUid": "text",
"productName": "text",
"productSerialNoRequired": "NO",
"productSku": "text",
"purchaseOrderItemUid": "text",
"quantityOrdered": 1,
"quantityReceived": 1,
"quantityReserved": 1,
"supplierSku": "text",
"unitPrice": 1,
"receivementItems": [
{
"receivementUid": "text",
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"externalId": "text",
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"product": {
"productUid": "text",
"name": "text",
"sku": "text"
},
"purchaseOrderItemUid": "text",
"quantity": 1,
"unitCost": 1,
"receivementItemUid": "text",
"serialnumber": "text",
"status": "text",
"note": "text",
"tenantUserUid": "text",
"tenantUserDisplayName": "text"
}
],
"discountAmount": 1,
"freightAmount": 1,
"unitCost": 1,
"totalLinePrice": 1,
"localCurrency": {
"unitPrice": 1,
"discountAmount": 1,
"freightAmount": 1,
"unitCost": 1,
"totalLinePrice": 1
},
"reservations": [
{
"orderUid": "text",
"orderItemUid": "text",
"orderNumber": "text",
"quantity": 1,
"reservationType": "NONE"
}
]
}
],
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"note": "text",
"purchaseNumber": "text",
"purchaseOrderUid": "text",
"status": "NEW",
"storeUid": "text",
"storeName": "text",
"supplierUid": "text",
"supplierName": "text",
"discountRate": 1,
"freight": 1,
"currency": {
"code": "text",
"exchangeRate": 1
}
}
],
"paging": {
"pageNumber": 1,
"pageSize": 1,
"totalCount": 1
}
}
Specify a currency
when the order is not in local currency.
The currency must exist in your foreign currencies.
If you leave exchangeRate
empty, the exchange rate that is on the foreign currency will be used.
Reference to a Store.
^[A-Za-z0-9-_]+
Reference to a tenant.
^[A-Za-z0-9-_]+
ENUM | Description |
---|---|
NEW | Created, but not sent to supplier yet. |
SENT_TO_SUPPLIER | Sent to supplier. |
CANCELLED_BY_SUPPLIER | The purchase order have been cancelled by the supplier. This status is only applicable for suppliers who are integrated with FlowRetail. |
IN_TRANSIT | The goods are in transit. This status is only applicable for suppliers who are integrated with FlowRetail. |
PARTIALLY_RECEIVED | Not all goods have been received yet. |
RECEIVED | All goods have been received. |
CLOSED | No longer able to process purchase order. |
CANCELLED_BY_SUPPLIER | Purchase was cancelled by supplier |
^[A-Za-z0-9-_]+
ISO 4217 code
^[A-Za-z0-9-_]+
Example response
POST /v2/tenants/{tenantUid}/stores/{storeUid}/purchase-orders HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 504
{
"deliveryAddress": "text",
"deliveryCity": "text",
"deliveryCountryCode": "text",
"deliveryName": "text",
"deliveryPostalCode": "text",
"externalId": "text",
"note": "text",
"status": "NEW",
"supplierUid": "text",
"discountRate": 1,
"freight": 1,
"currency": "text",
"exchangeRate": 1,
"purchaseOrderUid": "text",
"items": [
{
"expectedDeliveryDate": "2025-09-12",
"externalId": "text",
"productUid": "text",
"quantityOrdered": 1,
"supplierSku": "text",
"unitPrice": 1,
"purchaseOrderItemUid": "text"
}
],
"autoOrderProposal": {
"warehouseUid": "text"
}
}
Example response
{
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"deliveryAddress": "text",
"deliveryCity": "text",
"deliveryCountryCode": "text",
"deliveryName": "text",
"deliveryPostalCode": "text",
"externalId": "text",
"items": [
{
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"expectedDeliveryDate": "2025-09-12",
"externalId": "text",
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"productUid": "text",
"productName": "text",
"productSerialNoRequired": "NO",
"productSku": "text",
"purchaseOrderItemUid": "text",
"quantityOrdered": 1,
"quantityReceived": 1,
"quantityReserved": 1,
"supplierSku": "text",
"unitPrice": 1,
"receivementItems": [
{
"receivementUid": "text",
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"externalId": "text",
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"product": {
"productUid": "text",
"name": "text",
"sku": "text"
},
"purchaseOrderItemUid": "text",
"quantity": 1,
"unitCost": 1,
"receivementItemUid": "text",
"serialnumber": "text",
"status": "text",
"note": "text",
"tenantUserUid": "text",
"tenantUserDisplayName": "text"
}
],
"discountAmount": 1,
"freightAmount": 1,
"unitCost": 1,
"totalLinePrice": 1,
"localCurrency": {
"unitPrice": 1,
"discountAmount": 1,
"freightAmount": 1,
"unitCost": 1,
"totalLinePrice": 1
},
"reservations": [
{
"orderUid": "text",
"orderItemUid": "text",
"orderNumber": "text",
"quantity": 1,
"reservationType": "NONE"
}
]
}
],
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"note": "text",
"purchaseNumber": "text",
"purchaseOrderUid": "text",
"status": "NEW",
"storeUid": "text",
"storeName": "text",
"supplierUid": "text",
"supplierName": "text",
"discountRate": 1,
"freight": 1,
"currency": {
"code": "text",
"exchangeRate": 1
}
}
Get details for a purchase order.
Reference to a Store.
^[A-Za-z0-9-_]+
Reference to a PurchaseOrder.
^[A-Za-z0-9-_]+
Reference to a tenant.
^[A-Za-z0-9-_]+
Example response
GET /v2/tenants/{tenantUid}/stores/{storeUid}/purchase-orders/{purchaseOrderUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Example response
{
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"deliveryAddress": "text",
"deliveryCity": "text",
"deliveryCountryCode": "text",
"deliveryName": "text",
"deliveryPostalCode": "text",
"externalId": "text",
"items": [
{
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"expectedDeliveryDate": "2025-09-12",
"externalId": "text",
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"productUid": "text",
"productName": "text",
"productSerialNoRequired": "NO",
"productSku": "text",
"purchaseOrderItemUid": "text",
"quantityOrdered": 1,
"quantityReceived": 1,
"quantityReserved": 1,
"supplierSku": "text",
"unitPrice": 1,
"receivementItems": [
{
"receivementUid": "text",
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"externalId": "text",
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"product": {
"productUid": "text",
"name": "text",
"sku": "text"
},
"purchaseOrderItemUid": "text",
"quantity": 1,
"unitCost": 1,
"receivementItemUid": "text",
"serialnumber": "text",
"status": "text",
"note": "text",
"tenantUserUid": "text",
"tenantUserDisplayName": "text"
}
],
"discountAmount": 1,
"freightAmount": 1,
"unitCost": 1,
"totalLinePrice": 1,
"localCurrency": {
"unitPrice": 1,
"discountAmount": 1,
"freightAmount": 1,
"unitCost": 1,
"totalLinePrice": 1
},
"reservations": [
{
"orderUid": "text",
"orderItemUid": "text",
"orderNumber": "text",
"quantity": 1,
"reservationType": "NONE"
}
]
}
],
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"note": "text",
"purchaseNumber": "text",
"purchaseOrderUid": "text",
"status": "NEW",
"storeUid": "text",
"storeName": "text",
"supplierUid": "text",
"supplierName": "text",
"discountRate": 1,
"freight": 1,
"currency": {
"code": "text",
"exchangeRate": 1
}
}
Specify a currency
when the order is not in local currency.
The currency must exist in your foreign currencies.
If you leave exchangeRate
empty, the exchange rate that is on the foreign currency will be used.
Reference to a Store.
^[A-Za-z0-9-_]+
Reference to a PurchaseOrder.
^[A-Za-z0-9-_]+
Reference to a tenant.
^[A-Za-z0-9-_]+
ENUM | Description |
---|---|
NEW | Created, but not sent to supplier yet. |
SENT_TO_SUPPLIER | Sent to supplier. |
CANCELLED_BY_SUPPLIER | The purchase order have been cancelled by the supplier. This status is only applicable for suppliers who are integrated with FlowRetail. |
IN_TRANSIT | The goods are in transit. This status is only applicable for suppliers who are integrated with FlowRetail. |
PARTIALLY_RECEIVED | Not all goods have been received yet. |
RECEIVED | All goods have been received. |
CLOSED | No longer able to process purchase order. |
CANCELLED_BY_SUPPLIER | Purchase was cancelled by supplier |
^[A-Za-z0-9-_]+
ISO 4217 code
Example response
PUT /v2/tenants/{tenantUid}/stores/{storeUid}/purchase-orders/{purchaseOrderUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 324
{
"deliveryAddress": "text",
"deliveryCity": "text",
"deliveryCountryCode": "text",
"deliveryName": "text",
"deliveryPostalCode": "text",
"externalId": "text",
"note": "text",
"status": "NEW",
"supplierUid": "text",
"discountRate": 1,
"freight": 1,
"currency": "text",
"exchangeRate": 1,
"items": [
{
"purchaseOrderItemUid": "text",
"quantityReceived": 1
}
]
}
Example response
{
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"deliveryAddress": "text",
"deliveryCity": "text",
"deliveryCountryCode": "text",
"deliveryName": "text",
"deliveryPostalCode": "text",
"externalId": "text",
"items": [
{
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"expectedDeliveryDate": "2025-09-12",
"externalId": "text",
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"productUid": "text",
"productName": "text",
"productSerialNoRequired": "NO",
"productSku": "text",
"purchaseOrderItemUid": "text",
"quantityOrdered": 1,
"quantityReceived": 1,
"quantityReserved": 1,
"supplierSku": "text",
"unitPrice": 1,
"receivementItems": [
{
"receivementUid": "text",
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"externalId": "text",
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"product": {
"productUid": "text",
"name": "text",
"sku": "text"
},
"purchaseOrderItemUid": "text",
"quantity": 1,
"unitCost": 1,
"receivementItemUid": "text",
"serialnumber": "text",
"status": "text",
"note": "text",
"tenantUserUid": "text",
"tenantUserDisplayName": "text"
}
],
"discountAmount": 1,
"freightAmount": 1,
"unitCost": 1,
"totalLinePrice": 1,
"localCurrency": {
"unitPrice": 1,
"discountAmount": 1,
"freightAmount": 1,
"unitCost": 1,
"totalLinePrice": 1
},
"reservations": [
{
"orderUid": "text",
"orderItemUid": "text",
"orderNumber": "text",
"quantity": 1,
"reservationType": "NONE"
}
]
}
],
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"note": "text",
"purchaseNumber": "text",
"purchaseOrderUid": "text",
"status": "NEW",
"storeUid": "text",
"storeName": "text",
"supplierUid": "text",
"supplierName": "text",
"discountRate": 1,
"freight": 1,
"currency": {
"code": "text",
"exchangeRate": 1
}
}
Deletes a purchase order.
Reference to a Store.
^[A-Za-z0-9-_]+
Reference to a PurchaseOrder.
^[A-Za-z0-9-_]+
Reference to a tenant.
^[A-Za-z0-9-_]+
No Content
No content
DELETE /v2/tenants/{tenantUid}/stores/{storeUid}/purchase-orders/{purchaseOrderUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No Content
No content
Lists all items on a purchase order.
Reference to a Store.
^[A-Za-z0-9-_]+
Reference to a PurchaseOrder.
^[A-Za-z0-9-_]+
Reference to a tenant.
^[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 |
Example response
GET /v2/tenants/{tenantUid}/stores/{storeUid}/purchase-orders/{purchaseOrderUid}/purchase-order-items HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Example response
{
"items": [
{
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"expectedDeliveryDate": "2025-09-12",
"externalId": "text",
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"productUid": "text",
"productName": "text",
"productSerialNoRequired": "NO",
"productSku": "text",
"purchaseOrderItemUid": "text",
"quantityOrdered": 1,
"quantityReceived": 1,
"quantityReserved": 1,
"supplierSku": "text",
"unitPrice": 1,
"receivementItems": [
{
"receivementUid": "text",
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"externalId": "text",
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"product": {
"productUid": "text",
"name": "text",
"sku": "text"
},
"purchaseOrderItemUid": "text",
"quantity": 1,
"unitCost": 1,
"receivementItemUid": "text",
"serialnumber": "text",
"status": "text",
"note": "text",
"tenantUserUid": "text",
"tenantUserDisplayName": "text"
}
],
"discountAmount": 1,
"freightAmount": 1,
"unitCost": 1,
"totalLinePrice": 1,
"localCurrency": {
"unitPrice": 1,
"discountAmount": 1,
"freightAmount": 1,
"unitCost": 1,
"totalLinePrice": 1
},
"reservations": [
{
"orderUid": "text",
"orderItemUid": "text",
"orderNumber": "text",
"quantity": 1,
"reservationType": "NONE"
}
]
}
],
"paging": {
"pageNumber": 1,
"pageSize": 1,
"totalCount": 1
}
}
Adds an item to a purchase order.
Reference to a Store.
^[A-Za-z0-9-_]+
Reference to a PurchaseOrder.
^[A-Za-z0-9-_]+
Reference to a tenant.
^[A-Za-z0-9-_]+
Example response
POST /v2/tenants/{tenantUid}/stores/{storeUid}/purchase-orders/{purchaseOrderUid}/purchase-order-items HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 162
{
"expectedDeliveryDate": "2025-09-12",
"externalId": "text",
"productUid": "text",
"quantityOrdered": 1,
"supplierSku": "text",
"unitPrice": 1,
"purchaseOrderItemUid": "text"
}
Example response
{
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"deliveryAddress": "text",
"deliveryCity": "text",
"deliveryCountryCode": "text",
"deliveryName": "text",
"deliveryPostalCode": "text",
"externalId": "text",
"items": [
{
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"expectedDeliveryDate": "2025-09-12",
"externalId": "text",
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"productUid": "text",
"productName": "text",
"productSerialNoRequired": "NO",
"productSku": "text",
"purchaseOrderItemUid": "text",
"quantityOrdered": 1,
"quantityReceived": 1,
"quantityReserved": 1,
"supplierSku": "text",
"unitPrice": 1,
"receivementItems": [
{
"receivementUid": "text",
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"externalId": "text",
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"product": {
"productUid": "text",
"name": "text",
"sku": "text"
},
"purchaseOrderItemUid": "text",
"quantity": 1,
"unitCost": 1,
"receivementItemUid": "text",
"serialnumber": "text",
"status": "text",
"note": "text",
"tenantUserUid": "text",
"tenantUserDisplayName": "text"
}
],
"discountAmount": 1,
"freightAmount": 1,
"unitCost": 1,
"totalLinePrice": 1,
"localCurrency": {
"unitPrice": 1,
"discountAmount": 1,
"freightAmount": 1,
"unitCost": 1,
"totalLinePrice": 1
},
"reservations": [
{
"orderUid": "text",
"orderItemUid": "text",
"orderNumber": "text",
"quantity": 1,
"reservationType": "NONE"
}
]
}
],
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"note": "text",
"purchaseNumber": "text",
"purchaseOrderUid": "text",
"status": "NEW",
"storeUid": "text",
"storeName": "text",
"supplierUid": "text",
"supplierName": "text",
"discountRate": 1,
"freight": 1,
"currency": {
"code": "text",
"exchangeRate": 1
}
}
Get details for an item on a purchase order.
Reference to a Store.
^[A-Za-z0-9-_]+
Reference to a PurchaseOrder.
^[A-Za-z0-9-_]+
Reference to an item on a purchase order
^[A-Za-z0-9-_]+
Reference to a tenant.
^[A-Za-z0-9-_]+
Example response
GET /v2/tenants/{tenantUid}/stores/{storeUid}/purchase-orders/{purchaseOrderUid}/purchase-order-items/{purchaseOrderItemUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Example response
{
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"expectedDeliveryDate": "2025-09-12",
"externalId": "text",
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"productUid": "text",
"productName": "text",
"productSerialNoRequired": "NO",
"productSku": "text",
"purchaseOrderItemUid": "text",
"quantityOrdered": 1,
"quantityReceived": 1,
"quantityReserved": 1,
"supplierSku": "text",
"unitPrice": 1,
"receivementItems": [
{
"receivementUid": "text",
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"externalId": "text",
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"product": {
"productUid": "text",
"name": "text",
"sku": "text"
},
"purchaseOrderItemUid": "text",
"quantity": 1,
"unitCost": 1,
"receivementItemUid": "text",
"serialnumber": "text",
"status": "text",
"note": "text",
"tenantUserUid": "text",
"tenantUserDisplayName": "text"
}
],
"discountAmount": 1,
"freightAmount": 1,
"unitCost": 1,
"totalLinePrice": 1,
"localCurrency": {
"unitPrice": 1,
"discountAmount": 1,
"freightAmount": 1,
"unitCost": 1,
"totalLinePrice": 1
},
"reservations": [
{
"orderUid": "text",
"orderItemUid": "text",
"orderNumber": "text",
"quantity": 1,
"reservationType": "NONE"
}
]
}
Update details for an item on a purchase order.
Reference to a Store.
^[A-Za-z0-9-_]+
Reference to a PurchaseOrder.
^[A-Za-z0-9-_]+
Reference to an item on a purchase order
^[A-Za-z0-9-_]+
Reference to a tenant.
^[A-Za-z0-9-_]+
External reference to purchase order line
^[A-Za-z0-9-_]+
unitPrice is in purchase order currency
Example response
PUT /v2/tenants/{tenantUid}/stores/{storeUid}/purchase-orders/{purchaseOrderUid}/purchase-order-items/{purchaseOrderItemUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 132
{
"expectedDeliveryDate": "2025-09-12",
"externalId": "text",
"productUid": "text",
"quantityOrdered": 1,
"supplierSku": "text",
"unitPrice": 1
}
Example response
{
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"deliveryAddress": "text",
"deliveryCity": "text",
"deliveryCountryCode": "text",
"deliveryName": "text",
"deliveryPostalCode": "text",
"externalId": "text",
"items": [
{
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"expectedDeliveryDate": "2025-09-12",
"externalId": "text",
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"productUid": "text",
"productName": "text",
"productSerialNoRequired": "NO",
"productSku": "text",
"purchaseOrderItemUid": "text",
"quantityOrdered": 1,
"quantityReceived": 1,
"quantityReserved": 1,
"supplierSku": "text",
"unitPrice": 1,
"receivementItems": [
{
"receivementUid": "text",
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"externalId": "text",
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"product": {
"productUid": "text",
"name": "text",
"sku": "text"
},
"purchaseOrderItemUid": "text",
"quantity": 1,
"unitCost": 1,
"receivementItemUid": "text",
"serialnumber": "text",
"status": "text",
"note": "text",
"tenantUserUid": "text",
"tenantUserDisplayName": "text"
}
],
"discountAmount": 1,
"freightAmount": 1,
"unitCost": 1,
"totalLinePrice": 1,
"localCurrency": {
"unitPrice": 1,
"discountAmount": 1,
"freightAmount": 1,
"unitCost": 1,
"totalLinePrice": 1
},
"reservations": [
{
"orderUid": "text",
"orderItemUid": "text",
"orderNumber": "text",
"quantity": 1,
"reservationType": "NONE"
}
]
}
],
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"note": "text",
"purchaseNumber": "text",
"purchaseOrderUid": "text",
"status": "NEW",
"storeUid": "text",
"storeName": "text",
"supplierUid": "text",
"supplierName": "text",
"discountRate": 1,
"freight": 1,
"currency": {
"code": "text",
"exchangeRate": 1
}
}
Removes an item from a purchase order.
Reference to a Store.
^[A-Za-z0-9-_]+
Reference to a PurchaseOrder.
^[A-Za-z0-9-_]+
Reference to an item on a purchase order
^[A-Za-z0-9-_]+
Reference to a tenant.
^[A-Za-z0-9-_]+
Example response
DELETE /v2/tenants/{tenantUid}/stores/{storeUid}/purchase-orders/{purchaseOrderUid}/purchase-order-items/{purchaseOrderItemUid} HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Example response
{
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"deliveryAddress": "text",
"deliveryCity": "text",
"deliveryCountryCode": "text",
"deliveryName": "text",
"deliveryPostalCode": "text",
"externalId": "text",
"items": [
{
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"expectedDeliveryDate": "2025-09-12",
"externalId": "text",
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"productUid": "text",
"productName": "text",
"productSerialNoRequired": "NO",
"productSku": "text",
"purchaseOrderItemUid": "text",
"quantityOrdered": 1,
"quantityReceived": 1,
"quantityReserved": 1,
"supplierSku": "text",
"unitPrice": 1,
"receivementItems": [
{
"receivementUid": "text",
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"externalId": "text",
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"product": {
"productUid": "text",
"name": "text",
"sku": "text"
},
"purchaseOrderItemUid": "text",
"quantity": 1,
"unitCost": 1,
"receivementItemUid": "text",
"serialnumber": "text",
"status": "text",
"note": "text",
"tenantUserUid": "text",
"tenantUserDisplayName": "text"
}
],
"discountAmount": 1,
"freightAmount": 1,
"unitCost": 1,
"totalLinePrice": 1,
"localCurrency": {
"unitPrice": 1,
"discountAmount": 1,
"freightAmount": 1,
"unitCost": 1,
"totalLinePrice": 1
},
"reservations": [
{
"orderUid": "text",
"orderItemUid": "text",
"orderNumber": "text",
"quantity": 1,
"reservationType": "NONE"
}
]
}
],
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"note": "text",
"purchaseNumber": "text",
"purchaseOrderUid": "text",
"status": "NEW",
"storeUid": "text",
"storeName": "text",
"supplierUid": "text",
"supplierName": "text",
"discountRate": 1,
"freight": 1,
"currency": {
"code": "text",
"exchangeRate": 1
}
}
Send receipt as PDF, print on printer or get as PDF
Reference to a Store.
^[A-Za-z0-9-_]+
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a PurchaseOrder.
^[A-Za-z0-9-_]+
true
Based on the Accept header the response will be base64 json encoded or a raw file. application/octet-stream will return a binary file application/json will return a json with the file content base64 encoded.
Created
Bad Request
POST /v2/tenants/{tenantUid}/stores/{storeUid}/purchase-orders/{purchaseOrderUid}/receipt HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 161
{
"email": "text",
"recepients": [
"text"
],
"subject": "text",
"body": "text",
"includePDF": true,
"attachments": [
{
"content": "text",
"contentType": "text",
"filename": "text"
}
]
}
{
"content": "text",
"contentType": "text",
"filename": "text"
}
Lists all supplier products for a productUid. If the product has been linked to a tenant productUid then additional information will be added.
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a Product.
^[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 |
Example response
GET /v2/tenants/{tenantUid}/products/{productUid}/suppliers HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Example response
{
"items": [
{
"createdAt": "2025-09-12T21:39:25.906Z",
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"productUid": "text",
"supplierUid": "text",
"purchasePrice": 1,
"supplierProductUid": "text",
"supplierSku": "text"
}
],
"paging": {
"pageNumber": 1,
"pageSize": 1,
"totalCount": 1
}
}
Search for purchase orders
Reference to a tenant.
^[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 |
Search for purchase orders in all stores on tenant.
An empty string will be ignored, and handeled as if the key did not exist in the payload.
Fuzzy search means that it will try to find words that contains the query string that is supplied. The search is case-insensitive. Example: If you search for "Ol" you will get "Olsen", "Olstad", "Bolset", "Ormebol", [email protected], etc ..
Reference to a list of storeUids
Reference to a list of organizationUids
^[A-Za-z0-9-_]+
Example response
POST /v2/tenants/{tenantUid}/purchase-orders/search HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 215
{
"fromDateTime": "2025-09-12T21:39:25.906Z",
"toDateTime": "2025-09-12T21:39:25.906Z",
"orderStatuses": [
"NEW"
],
"storeUids": [
"text"
],
"organizationUids": [
"text"
],
"supplierUid": "text",
"query": "text",
"productUids": [
"text"
]
}
Example response
{
"items": [
{
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"deliveryAddress": "text",
"deliveryCity": "text",
"deliveryCountryCode": "text",
"deliveryName": "text",
"deliveryPostalCode": "text",
"externalId": "text",
"items": [
{
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"expectedDeliveryDate": "2025-09-12",
"externalId": "text",
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"productUid": "text",
"productName": "text",
"productSerialNoRequired": "NO",
"productSku": "text",
"purchaseOrderItemUid": "text",
"quantityOrdered": 1,
"quantityReceived": 1,
"quantityReserved": 1,
"supplierSku": "text",
"unitPrice": 1,
"receivementItems": [
{
"receivementUid": "text",
"createdAt": "2025-09-12T21:39:25.906Z",
"createdBy": "text",
"externalId": "text",
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"product": {
"productUid": "text",
"name": "text",
"sku": "text"
},
"purchaseOrderItemUid": "text",
"quantity": 1,
"unitCost": 1,
"receivementItemUid": "text",
"serialnumber": "text",
"status": "text",
"note": "text",
"tenantUserUid": "text",
"tenantUserDisplayName": "text"
}
],
"discountAmount": 1,
"freightAmount": 1,
"unitCost": 1,
"totalLinePrice": 1,
"localCurrency": {
"unitPrice": 1,
"discountAmount": 1,
"freightAmount": 1,
"unitCost": 1,
"totalLinePrice": 1
},
"reservations": [
{
"orderUid": "text",
"orderItemUid": "text",
"orderNumber": "text",
"quantity": 1,
"reservationType": "NONE"
}
]
}
],
"lastModifiedAt": "2025-09-12T21:39:25.906Z",
"lastModifiedBy": "text",
"note": "text",
"purchaseNumber": "text",
"purchaseOrderUid": "text",
"status": "NEW",
"storeUid": "text",
"storeName": "text",
"supplierUid": "text",
"supplierName": "text",
"discountRate": 1,
"freight": 1,
"currency": {
"code": "text",
"exchangeRate": 1
}
}
],
"paging": {
"pageNumber": 1,
"pageSize": 1,
"totalCount": 1
}
}
List of products from orders where order item reservation type is REQUEST_PURCHASEORDER
.
Optionally filter on organisation, store, supplier, and order state.
Reference to a tenant.
^[A-Za-z0-9-_]+
Reference to a specific page in a result set.
The number of items per page in a result set.
Example response
POST /v2/tenants/{tenantUid}/purchase-orders/requests HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 97
{
"organizationUids": [
"text"
],
"storeUids": [
"text"
],
"supplierUids": [
"text"
],
"orderStates": [
"OPEN"
]
}
Example response
{
"items": [
{
"productUid": "text",
"sku": "text",
"productName": "text",
"totalQuantityOrdered": 1,
"oldestOrderCreatedAt": "2025-09-12T21:39:25.906Z",
"suppliers": [
{
"supplierUid": "text",
"name": "text"
}
],
"orders": [
{
"orderUid": "text",
"orderNumber": "text",
"orderState": "OPEN",
"settleState": "NOT_STARTED",
"storeUid": "text",
"storeName": "text",
"items": [
{
"orderItemUid": "text",
"quantityOrdered": 1
}
],
"createdAt": "2025-09-12T21:39:25.906Z"
}
]
}
],
"paging": {
"pageNumber": 1,
"pageSize": 1,
"totalCount": 1
}
}
Was this helpful?