Fetches the details of a payment-term by uuid - the AppZen generated unique identifier for this payment term.
For calling the API, you will need the uuid.
Request URI
GET https://api.appzen.com/dictionary-data-services/payment-term/{{uuid}}
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 |
Path Parameters
Name | Type | Description | Required |
---|---|---|---|
uuid |
String |
The unique identifier for an uploaded document. |
Yes |
Sample Request
curl -X GET "https://api.appzen.com/dictionary-data-services/payment-term/75823296-4af2-4475-aafd-461c60c284e7"
-H "accept: application/json"
-H "x-api-key: R7wsFxxxx"
-H "customer-id: 1004xxxx"
-H "customer-key: 15d1xxxx"
Sample Response
Success
{
"name": "NET 30",
"id": "8900012",
"active": true,
"code": "NET",
"date": "2020-11-01T11:01:00Z",
"discounts": [
{
"discount_days": 0,
"discount_percent": 0,
"discount_amount": 0
}
],
"num_days": 30,
"num_grace_days": 0,
"custom_json": {}
}
Failure
The request fails if you enter invalid credentials.
{
"timestamp": "2019-01-17T16:12:45.977+0000",
"status": 401,
"error": "Unauthorized",
"message": "Error code : 17e3338d - Unable to authenticate credentials"
}
Response Code
Response Code | Description |
200 | The request is successful. |
201 |
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. |
429 |
The request failed as the available quota/limit has been consumed. |
See Also
Comments
Article is closed for comments.