You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 2
Next »
This method returns the rejection reasons that can be used while rejecting a draft invoice cancellation, as defined through the active financial transactions definition. Multiple rejection reasons are returned by each call
Resource URL
Parameters
Name | Type | Description |
token | String | The token retrieved from the login method |
fields_set (optional) | List of Strings, comma separated | A list of fields that should be included in the results. If not specified then all the available fields will be returned |
Response Data
Name | Type | Description |
---|
default | Boolean | Determines if the rejection reason is the default rejection reason or not |
rejection_reason | Rejection Reason Object | The supported rejection reason |
Referred Objects Response Data
rejection_reason response data object
Name | Type | Description |
---|
Id | String | The ID of the retrieved financial transaction rejection reason |
name | String | The Name of the retrieved financial transaction rejection reason |
alternative_code | String | The Alternative code of the retrieved financial transaction rejection reason |
description | String | The Description of the retrieved financial transaction rejection reason |
Examples
Example 1
HTTP Method: GET
Request:
Response:
{
"status":
{
"message": "",
"description": "",
"code": "OK"
},
"data":
[
{
"default": false,
"rejection_reason":
{
"id": "CE833230AAD6D276E30DEA53F166CB8F",
"name": "Reject Due to Business Request",
"description": "Reject Due to Business Request",
"alternative_code": "RDTBR"
}
},
{
"default": true,
"rejection_reason":
{
"id": "86082D82A5C8D93D048ED95161C554A7",
"name": "Reject Due to Error",
"description": "Reject Due to Error",
"alternative_code": "RDTE"
}
},
{
"default": false,
"rejection_reason":
{
"id": "B5407A536ACD49B58192D4C19325D2CA",
"name": "Rejection Reason Modal 1",
"description": null,
"alternative_code": "RRM1"
}
}
]
}