Transfiya

Call the Payouts API to request withdrawal for your customer.


POST /v2/payout

Request

curl -v --location --request POST 'https://sandbox.smartfastpay.com/v2/payout' \
    --header 'Content-Type: application/json' \
    --header 'Authorization: Bearer <Access-Token>' \
    --data-raw '{
      "customer": {
        "id": "b48a0728-9ff4-47ee-8f1b-92d2d5813ddb",
        "name": "Richard Roe",
        "email": "richard@roe.com",
        "document": {
          "type": "CC",
          "number": "1073505526"
        },
        "phone": "+579889952105"
      },
      "country": "COL",
      "payment_method": "transfiya",
      "notification_url": "http://mysite.com/api/notification",
      "transfer": {
        "value": "+579889952105"
      },
      "transaction": {
        "id": "73e7036e-b835-4130-8db0-2f82cc859662",
        "currency": "COP",
        "amount": 2000
      }
    }'

Response

{
    "requestId": "de3af972e3cea7d6cd998bc4761f05f4\/15349144900800090226",
    "data": {
	"id": "2d6c4f53-8ec4-4cfc-82b7-df1bde11bf92",
	"status": "pending",
	"payment": {
	    "method": "transfiya"
	},
	"values": {
	    "source_total": "18.00000000",
	    "source_currency": "PEN",
	    "exchanged_total": "18.00",
	    "exchanged_currency": "PEN",
	    "exchange": "1.00",
	    "fee": "0.18000000"
	}
    }
}

Response details following the link: overview

Last updated