Create Authorization Hold
POST/authorization-holds
(In Development)
Authorization holds API allows balance blocking for transfer operations.
This allows for ensuring balance is available when a transfer is ordered and avoids balance not enough
failures.
Create a new authorization hold, to reserve balance for transfer of funds.
If expiresOn
is not defined the authorization hold blocks funds indefinitely.
Request
- application/json
Body
required
Customer Id.
Amount to block.
Possible values: >= 3 characters
and <= 3 characters
Currency alphabetic code as specified by ISO 4217
Represents RFC 3339, section 5.6 date-time.
Represents RFC 3339, section 5.6 date-time.
Possible values: [ACTIVE
, EXPIRED
, USED
, RELEASED
]
Status of the authorization hold.
Responses
- 201
- 400
Created
- application/json
- Schema
- Example (from schema)
- CREATE_AUTHORISATION_HOLD_RESPONSE
Schema
Authorization hold id.
Customer Id.
Customer account id.
Amount to block.
Possible values: >= 3 characters
and <= 3 characters
Currency alphabetic code as specified by ISO 4217
Represents RFC 3339, section 5.6 date-time.
Represents RFC 3339, section 5.6 date-time.
Possible values: [ACTIVE
, EXPIRED
, USED
, RELEASED
]
Status of the authorization hold.
{
"id": "string",
"customerId": "5435323362",
"accountId": "string",
"amount": 0,
"currencyCode": "EUR",
"createdOn": "2021-07-15T17:54:12Z",
"expiresOn": "2021-07-15T17:54:12Z",
"status": "ACTIVE"
}
{
"id": "5983745394",
"customerId": "5435323362",
"accountId": "5014567344",
"amount": 10000,
"currencyCode": "GBP",
"createdOn": "2021-07-15T17:54:12Z",
"expiresOn": "2021-08-15T17:54:12Z",
"status": "ACTIVE"
}
Unable to process request due to validation or other errors.
- application/json
- Schema
- Example (from schema)
- CURRENCY_CODE_DOES_NOT_MATCH_TO_ACCOUNT_CURRENCY
Schema
Array [
]
error
object
Represents details of an error.
The error code.
The description of the error.
Details for the errors of any parameter value.
fieldErrors
object[]
List of field errors associated with the main error.
Identifies the JSON request field.
The problem associated with the field.
{
"error": {
"code": "string",
"message": "string",
"details": [
"string"
],
"fieldErrors": [
{
"field": "string",
"error": "string"
}
]
}
}
{
"code": "CURRENCY_CODE_DOES_NOT_MATCH_TO_ACCOUNT_CURRENCY",
"message": "Requested currency code does not match the currency of the account",
"details": [
"Requested currency code does not match the currency of the account"
],
"fieldErrors": [
{
"field": "currencyCode",
"error": "Requested currency code does not match the currency of the account"
}
]
}