This endpoint provides information about the status of a credit authorization approval flow for an authorization identified by an id
supplied in the URL.
Endpoint
GET /authorization/{id}
Response
200 OK
- Credit Authorization Completed
This response is returned when the synchronous part of the credit authorization approval flow, including the ID validation process, has been completed.
Note: After approval, Avarda performs additional background processing. Order Management methods cannot be used until this processing is completed. Use this endpoint to find out about the state of this processing The
InBackOffice
field in the response indicates whether the processing is finished (see also Flow Details note).
Name | Data Type | Description |
---|---|---|
Status | String | Status of the authorization 0 = Credit approved 1 = Credit rejected by Avarda2 = Credit reservation cancelled due to ID validation timeout3 = Authorization failed due to internal error |
CreditLimit | Decimal | Approved credit limit - used only when Status =0 (Credit approved) |
InBackOffice | Boolean | Indicates whether the background processing is completed (see note above). |
ErrorCode | Int | Error code - used only when Status is not 0 (Credit approved) |
ErrorMessage | String | Error message - used only when Status is not 0 (Credit approved). Localized in language of the Customer passed in credit request (userLanguageCode ) |
AuthorizationID | String (GUID) | ID of the credit authorization |
Request | Object | A copy of original credit authorization request body |
List of errors
ErrorCode | Error Message (English) |
---|---|
1..7 | See Credit rejected list of error |
50 | User did not complete ID validation in time |
51 | User failed ID Validation with the identity provider |
52 | During ID validation the user authenticated with a SSN different than the one in the original credit request |
100 | Service timeout, please try later again |
101 | Service internal error, please try later or contact the support desk |
Example
202 Accepted
- Waiting for ID Validation Completion
This response is returned when the ID validation process has not yet been completed by the Customer.
Name | Data Type | Description |
---|---|---|
RedirectUrl | String | ID Validation provider link |
IdValidationStatus | String | State of ID Validation 0 = In progress 1 = Cancelled by Customer or ID provider error2 = Validated SSN does not match SSN in request |
AuthorizationID | String (GUID) | ID of the credit authorization |
Request | Object | A copy of original credit authorization request body |
Note: If
IdValidationStatus
is1
or2
, theRedirectUrl
link can be reused to retry the ID validation (see Detailed Flow).
Example
404 Not Found
- Invalid Authorization ID
This response is returned when no credit authorization exists for the specified ID.