GetStatus/authorization/{id}
GET /authorization/{id}
Returns information about a single authorization identified by a ID.
Input Parameters
Name | Data Type | Default value | Description |
---|---|---|---|
ID | String | None. Must be specified | ID acquired from direct-invoice, invoice, loan or part-payment |
Output parameters
The method returns an object that differs if the purchase was loan, invoice, direct payment or card payment.
Name | Data Type | Description |
---|---|---|
AuthorizationID | String | Id identifying the specific authorization. |
Status | String | Status of the authorization 0 = Approved 1 = Rejected 2 = Canceled 3 = Failed |
InBackoffice | Boolean | Authorization has been processed and requests to backoffice api order, cancel and return are allowed. |
ErrorCode | int | Error code |
ErrorMessage | String | Error message |
Http 200 Authorization completed
{
"authorizationId": "string",
"status": 0,
"creditLimit": 0,
"inBackOffice": true,
"errorCode": 0,
"errorMessage": "string"
}
Http 202 Waiting for Strong auth
{
"authorizationId": "string",
"redirectUrl": "string"
}
Http 404 Authorization does not exists.
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"extensions": {}
}