Overview
You can retrieve a list of receipts or the details of a single receipt from the RECEIPT_MASTER table.
You are also able to pass the same information retrieved as a way to create new receipt records. You will be required to adhere to existing logic from our base system (including validation or making sure required fields are filled in) and if an error occurs, the error returned will include information about how to rectify this issue. Any field available in DirectLine for this table can be made available to this endpoint. Please contact your account manager to discuss your specific requirements.
The list of fields returned is a subset of all fields returned. To get a list of all fields returned you can use the link: {{baseUrl}}/{{client_name}}/{{database}}/receipt/@LABELS.
Fields are truncated to 1000 characters by default.
Detailed information of the fields returned including field types can be obtained using the link: {{baseUrl}}/{{client_name}}/{{database}}/receipt/@SCHEMA
You can filter the returned results by available criteria as well. An example would be to use a link such as: {{baseUrl}}/{{client_name}}/{{database}}/receipt?PURCHASE_ORDER=10001 where the data returned will only include values where the Purchaser Order is ‘10001’. To get a full list of filterable fields you can use the link: {{baseUrl}}/{{client_name}}/{{database}}/receipt/@CRITERIA
Additional filtering can be done by using filter modifiers on the value passed.
These modifiers include:
[] for containing
!! for not equal
>> for greater than
<< for less than
<> for between.
Use each of these by adding them to the front of any value such as: TYPE=[]PM to select results where the TYPE contains PM.
You can send muliple values using comma(,) as delimiter Version 1.06
Between is useful for dates where you would use DATE=<>2020-01-01,2020-12-31 for results between 2020-01-01 and 2020-12-31. Between is inclusive so the results will include records when the date is 2020-01-01 and 2020-12-31. Your system’s date format may be different than the examples here as it is a setting in DirectLine. The @SCHEMA example (above) will show the date format being used for any date validated field for the endpoint being viewed.
LIMIT: The maximum number of records returned per request. The default for this field is 1000.
Response has the following additional fields:
-
has_more: Is true if there are additional records that have not been returned yet. An additional call can retrieve them.
-
cursor: Pass the cursor as a parameter into next call to obtain additional record requests else is empty.
-
next_page: A Link for the next request else is empty.

