Payouts (Colombia)
Call the Payouts API to request withdrawal for your customer.
POST /v1/payout
Request
curl -v --location --request POST 'https://sandbox.smartfastpay.com/v1/payout' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <Access-Token>' \
--data-raw '{
"customer_id": "d9e9557e-11a5-49df-b51b-d513a7f5b348",
"name": "Jane Doe",
"email": "richard@roe.com",
"document": "86423835004",
"amount": 15000,
"currency": "COP",
"country": "COL",
"phone": "573051000002",
"callback": "http://mysite.com/api/notification",
"transaction": {
"id": "22dd9e47-97c7-4982-af50-3d3e0782d054"
}
}'
Parameters details
Response
{
"requestId": "a2435636-5f69-447d-8e22-8382f62ef7dd",
"data": {
"id": "f569c39c-71c2-44a2-8f95-d5840886bbe3",
"status": "pending",
"values": {
"total": "15000.00",
"subtotal": "15000.00",
"exchange": "1.00",
"fee": 0
}
}
}
Response details
GET /v1/payout/{id}
Request
curl -v --location --request GET 'https://sandbox.smartfastpay.com/v1/payout/{id}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <Access-Token>' \'
Response
{
"requestId": "a2435636-5f69-447d-8e22-8382f62ef7dd",
"data": {
"id": "f569c39c-71c2-44a2-8f95-d5840886bbe3",
"customer_id": "d9e9557e-11a5-49df-b51b-d513a7f5b348",
"transaction_id": "22dd9e47-97c7-4982-af50-3d3e0782d054",
"amount": "98000.00",
"currency": "COL",
"status": "pending",
"created_at": "2021-11-11T19:08:20.000000Z",
"updated_at": "2021-11-11T19:08:20.000000Z"
}
}
Response details
GET /v1/payouts
Request
# Without parameters
curl -v --location --request GET 'https://sandbox.smartfastpay.com/v1/payouts' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <Access-Token>' \'
# With parameters
curl -v --location --request GET 'https://sandbox.smartfastpay.com/v1/payouts?limit=1&order=id,desc' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <Access-Token>' \'
Parameters details
Response
{
"requestId": "a2435636-5f69-447d-8e22-8382f62ef7dd",
"data": [
{
"id": "897c9e20-1262-4679-a850-403d37b2a727",
"customer_id": "d9e9557e-11a5-49df-b51b-d513a7f5b348",
"transaction_id": "22dd9e47-97c7-4982-af50-3d3e0782d054",
"amount": "98000.00",
"currency": "COL",
"status": "pending",
"created_at": "2021-11-11T19:08:20.000000Z",
"updated_at": "2021-11-11T19:08:20.000000Z"
},
{
"id": "f569c39c-71c2-44a2-8f95-d5840886bbe3",
"customer_id": "58f0c005-3b7d-4c75-81f3-93b9a6fee864",
"transaction_id": "b08e3897-6505-4bb4-81a5-6e3a1d29e277",
"amount": "30000.00",
"currency": "COL",
"status": "pending",
"created_at": "2021-11-11T19:08:20.000000Z",
"updated_at": "2021-11-11T19:08:20.000000Z"
}
]
}
Response details
Last updated