API - Preauthorization
Preauthorization - Request
Generates a preauthorization for an user
Headers
Content-Type
application/json
Body :
string
merchantId
Merchant unique identifier
Required
string
terminalId
Unique merchant terminal identifier. If your merchant account has multiple terminals, you must specify the terminal ID to indicate which one to use. If you have only one terminal, you may omit this field—it will default to the only available terminal.
Optional
number
amount
Toal operation amount
Required
string
currency
Currency identifier code; by default = 978 . The following link contains the ISO 4217 currencies codes that are supported. Currencies
Required
string
language
Language identifier code; by default = es. The following link contains the ISO 639-1 language codes that are supported.
Required
string
tokenId
Identifier token for a previously tokenized card
Optional
string
userId
Internal identifier of an existing user
Optional
string
merchantOperationId
Optional field that you can use in order to identify operations in your system (is gonna be returned in the WebHook communication)
Optional
Full Request (Includes optional fields)
{
"merchantId": "124243",
"terminalId": "0000001",
"amount": 2,
"currency": "978",
"language": "1",
"tokenId": "324124214134241341235",
"userId": "user1"
}
Response
400 Bad Request: Datos inválidos (ej. amount ≤ 0, moneda inválida, etc.)
404 Not Found: Comercio no encontrado
500 Internal Server Error: No se pudo realizar la Preautorización
Preauthorization - Capture
POST /v1/wipay-payment-admin/preauthorization/authorization
POST /v1/wipay-payment-admin/preauthorization/authorizationExecutes the actual charge against a previously created pre‑authorization hold. Provide the preauthorizationId and desired amountToCapture to finalize the transaction (full or partial) and release any remaining funds.
Headers
Content-Type
application/json
Body
string
merchantId
Unique merchant identifier
Required
string
terminalId
Merchant terminal identifier
Optional
string
preauthorizationId
Previously generated preauthorization identifier
Required
number
amount
Total operation amount
Required
string
currency
Currency code identifier; by default = 978
Required
string
reference
Previously generated preauthorization reference
Required
string
userId
Internal identifier of an existing user
Optional
Full request (Including optional fields)
Response
Last updated