Bank Transfer

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",
        "phone": "+5930999000000",
        "document": {
          "type": "CC",
          "number": "1718726084"
        }
      },
      "country": "ECU",
      "payment_method": "bank_transfer",
      "notification_url": "http://mysite.com/api/notification",
      "bank_transfer": {
        "bank_code": "0010",
        "bank_account_number": "7884321419",
        "bank_account_type": "CHECKING"
      },
      "transaction": {
        "id": "73e7036e-b835-4130-8db0-2f82cc859662",
        "currency": "USD",
        "amount": 10.67
      }
    }'

Response

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

Response details following the link: overview

Last updated