Authorization API


GET /authorization/{id}

Returns information about a single authorization identified by a ID.

Input Parameters

NameData TypeDefault valueDescription
IDStringNone. Must be specifiedID 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.

NameData TypeDescription
AuthorizationIDStringId identifying the specific authorization.
StatusStringStatus of the authorization
0 = Approved
1 = Rejected
2 = Canceled
3 = Failed
InBackofficeBooleanAuthorization has been processed and requests to backoffice api order, cancel and return are allowed.
ErrorCodeintError code
ErrorMessageStringError 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": {}