Skip to content

Escrow Transaction

This functionality will allow escrow accounts authorized by Payku to settle transactions.

Base URL: https://app.payku.cl/ (Default server) · https://des.payku.cl/ (Sandbox server)
POST/api/escrow

This method allows authorizing the settlement of one or more transactions using their identifier, so that they can be deposited in the client's wallet or bank account.

Request body

ParameterTypeDescription
transactions array of anys

Arrangement containing the identifier of each of the transactions to be authorized for settlement.

maximum 30 characters
Example: ["trx3b4d77b43acd9a720","trx3b4d77b43acd9a385"]
Ventana de terminal
curl -X POST \
https://BASE-URL/api/escrow \
-H 'Accept: application/json, text/plain, */*' \
-H 'Authorization: Bearer PUBLIC-TOKEN' \
-H 'Content-Type: application/json' \
-H 'Host: BASE-URL' \
-d '{
"transactions": ["trx3b4d77b43acd9a720","trx3b4d77b43acd9a385"]
}'

Responses

200
{
"transactions": [
{
"status": "liquidate",
"transaction_id": "trx3b4d77b43acd9a720",
"amount": 15000,
"availability_date": "2021-07-01",
"deposit_date": "2021-07-06"
},
{
"status": "pending",
"transaction_id": "trx3b4d77b43bdd9a540",
"amount": 20000,
"availability_date": "2021-07-25",
"deposit_date": "N/D"
}
]
}
Response fields
ParameterTypeDescription
transactions array of objects
Example: [{"status":"liquidate","transaction_id":"trx3b4d77b43acd9a720","amount":15000,"availability_date":"2021-07-01","deposit_date":"2021-07-06"},{"status":"pending","transaction_id":"trx3b4d77b43bdd9a540","amount":20000,"availability_date":"2021-07-25","deposit_date":"N/D"}]
status string

Transaction status:

  • not found
  • pending
  • liquidate
  • pending for deposit
  • paid
transaction_id string

Transaction identifier created by Payku.

amount integer

Total amount of traction.

availability_date string

Date of availability to authorize the settlement.

deposit_date string

Payment date of the settlement.