Expiry
This page is outdated. Please go to our new documentation under https://docs.fulfillmenttools.com/documentation.
The Expiry feature ensures seamless management of orders by automatically canceling them if they're not collected within a specified timeframe. This empowers our customers to free up reserved items and streamline their processes effectively.
How it works When an order is placed, a specified fulfillment time is set. If the purchase isn't collected within this timeframe, the expiry feature kicks in, automatically canceling the order and releasing the reserved items.
To activate this feature, the "provisioningTime" value must be passed through the order into the platform. Alternatively, an expiry entity can be created via our API.
Configuration
Configure the expiry feature by defining a buffer time which is added to the provisioning time to determine the expiry time.
Read Current Configuration:
This part of the API is in Beta status. For details please check the api-release-life-cycle documentation.
config found.
Your user is not allowed to operate against this API instance
Your user, although recognized, is not authorized to use this endpoint
Entity not found
GET /api/configurations/expiry HTTP/1.1
Host: your-tenant-name.api.fulfillmenttools.com
Authorization: Bearer JWT
Accept: */*
{
"provisioningTimeOffsetInMinutes": 1,
"created": "2020-02-03T08:45:51.525Z",
"lastModified": "2020-02-03T09:45:51.525Z",
"version": 42
}
Update Existing or Create New Configuration:
This part of the API is in Beta status. For details please check the api-release-life-cycle documentation.
ExpiryConfiguration
The configuration was successfully updated.
The configuration was successfully created.
Invalid input. See response for details
Your user is not allowed to operate against this API instance
Your user, although recognized, is not authorized to use this endpoint
Entity version conflict
PUT /api/configurations/expiry HTTP/1.1
Host: your-tenant-name.api.fulfillmenttools.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 129
{
"provisioningTimeOffsetInMinutes": 1,
"created": "2020-02-03T08:45:51.525Z",
"lastModified": "2020-02-03T09:45:51.525Z",
"version": 42
}
{
"provisioningTimeOffsetInMinutes": 1,
"created": "2020-02-03T08:45:51.525Z",
"lastModified": "2020-02-03T09:45:51.525Z",
"version": 42
}
Expiry Entity
An expiry entity contains all the necessary information to manage the expiration process efficiently. It's closely linked to the order and the process. Once created, the expiry entity is regularly checked, and if the expiry time is reached, the associated process expires.
Read Existing Expiry Entities:
This part of the API is in Beta status. For details please check the api-release-life-cycle documentation.
ExpiryEntityStatus
ProcessRef to filter the results
StartDate to filter the results. Expiry Date of results is after or equals the given value
2020-02-03T08:45:51.525Z
EndDate to filter the results. Expiry Date of results is before or equals the given value
entity to start after
number of entities to show
25
found entities in the result.
Your user is not allowed to operate against this API instance
Your user, although recognized, is not authorized to use this endpoint
GET /api/expiries HTTP/1.1
Host: your-tenant-name.api.fulfillmenttools.com
Authorization: Bearer JWT
Accept: */*
[]
Read Specific Entity:
This part of the API is in Beta status. For details please check the api-release-life-cycle documentation.
id for the searched entity
found entity in the result.
Your user is not allowed to operate against this API instance
Your user, although recognized, is not authorized to use this endpoint
GET /api/expiries/{expiryId} HTTP/1.1
Host: your-tenant-name.api.fulfillmenttools.com
Authorization: Bearer JWT
Accept: */*
{
"id": "611c860f-3f00-4b01-9f4c-64cdee38a30e",
"version": 42,
"processVersion": 42,
"created": "2020-02-03T08:45:51.525Z",
"lastModified": "2020-02-03T09:45:51.525Z",
"processRef": "c4e5fb70-a893-4ffa-b7b0-e042cda6fb9f",
"provisioningTime": "2020-02-03T08:45:51.525Z",
"expiryTime": "2020-02-03T08:45:51.525Z",
"status": "ACTIVE"
}
Create New Entity:
This part of the API is in Beta status. For details please check the api-release-life-cycle documentation.
ExpiryEntityForCreation
Reference to the Process for which this expiry entity will be created
c4e5fb70-a893-4ffa-b7b0-e042cda6fb9f
Planned time where this entity should be provided or handed over to the customer
2020-02-03T08:45:51.525Z
ExpiryEntityStatus
created entity in the result.
Your user is not allowed to operate against this API instance
Your user, although recognized, is not authorized to use this endpoint
POST /api/expiries HTTP/1.1
Host: your-tenant-name.api.fulfillmenttools.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 117
{
"processRef": "c4e5fb70-a893-4ffa-b7b0-e042cda6fb9f",
"provisioningTime": "2020-02-03T08:45:51.525Z",
"status": "ACTIVE"
}
{
"id": "611c860f-3f00-4b01-9f4c-64cdee38a30e",
"version": 42,
"processVersion": 42,
"created": "2020-02-03T08:45:51.525Z",
"lastModified": "2020-02-03T09:45:51.525Z",
"processRef": "c4e5fb70-a893-4ffa-b7b0-e042cda6fb9f",
"provisioningTime": "2020-02-03T08:45:51.525Z",
"expiryTime": "2020-02-03T08:45:51.525Z",
"status": "ACTIVE"
}
Note: There can only be one expiry entity for each process
Update Existing Entity:
This part of the API is in Beta status. For details please check the api-release-life-cycle documentation.
id of the entity to be changed
ExpiryEntityForUpdate
version of the entity you want to alter
Planned time where this entity should be provided or handed over to the customer
2020-02-03T08:45:51.525Z
ExpiryEntityStatus
changed entity in the result.
Your user is not allowed to operate against this API instance
Your user, although recognized, is not authorized to use this endpoint
PATCH /api/expiries/{expiryId} HTTP/1.1
Host: your-tenant-name.api.fulfillmenttools.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 77
{
"version": 1,
"provisioningTime": "2020-02-03T08:45:51.525Z",
"status": "ACTIVE"
}
{
"id": "611c860f-3f00-4b01-9f4c-64cdee38a30e",
"version": 42,
"processVersion": 42,
"created": "2020-02-03T08:45:51.525Z",
"lastModified": "2020-02-03T09:45:51.525Z",
"processRef": "c4e5fb70-a893-4ffa-b7b0-e042cda6fb9f",
"provisioningTime": "2020-02-03T08:45:51.525Z",
"expiryTime": "2020-02-03T08:45:51.525Z",
"status": "ACTIVE"
}
Note: If updated, the expiry time will be recalculated based on the new information.
This comprehensive expiry feature ensures efficient order management and seamless process automation for our customers.
Last updated
Was this helpful?