Fetches the Payment-terms and their uuids filtered by the search criteria specified.
The search is based on 'from-date' and 'end-date'.
Request URI
POST https://api.appzen.com/dictionary-data-services/payment-term/search
Header Parameters
Name | Type | Description | Required |
---|---|---|---|
x-api-key | String | The x-api-key provided to authorize the request. | Yes |
customer-id | String | The Customer ID provided to authorize the request. | Yes |
customer-key | String | The Customer Key provided to authorize the request. | Yes |
Body Parameters
Name | Type | Description | Required |
---|---|---|---|
from-last-appzen-update-time |
String |
The Start Date value. The Date should be in UTC format. |
Yes |
to-last-appzen-update-time |
String |
The End Date value. The Date should be in UTC format. Upto 7 days |
Yes |
limit |
Integer |
The maximum number of matched records to return. |
Yes |
Sample Request
curl -X POST "https://api.appzen.com/dictionary-data-services/payment-term/search"
-H "accept: application/json"
-H "x-api-key: R7wsFxxxx"
-H "customer-id: 1004xxxx"
-H "customer-key: 15d1xxxx"
-H "Content-Type: application/json"
-d "
{
"from-last-appzen-update-time": "2020-11-01T11:01:00Z",
"to-last-appzen-update-time": "2020-11-05T11:01:00Z", "limit": 0
}"
Sample Response
Success
[
{
"payment-term-id": "NET20-EPR-XID",
"appzen-uuid": "02e9c5ab-3973-4552-9ba0-d069439e92a5",
"is-active": true,
"last-appzen-update-time": "2022-12-09T08:24:13.192Z"
},
{
"payment-term-id": "NET30-DISC5",
"appzen-uuid": "01fb405a-78f6-4924-9531-6cf93ed328f4",
"is-active": true,
"last-appzen-update-time": "2022-12-09T08:37:29.526Z"
}
]
Failure
The request fails if you enter an invalid URL.
{
"timestamp": "2023-01-15T16:12:45.977+0000",
"status": 404,
"error": "Not Found",
"message": "Error code : 17e3338d - The resource you specified cannot be not found"
}
Response Code
Response Code | Description |
200 | The request is successful. |
400 |
The request failed due to a malformed request syntax. Check the requested URL, including the parameters. |
401 |
The request failed due to an authorization issue. For example, the Customer Key could be missing or invalid. |
403 |
The request failed due to a permission issue. The x-api key may not have permission to perform the request. |
404 |
The request failed as the resource is not found. Check the requested URL. |
500 |
The request failed due to an AppZen server issue. |
See Also
Comments
Article is closed for comments.