Payout Source of Fund (SoF) List

This API is for merchant to make inquiry of available source of fund (SoF) profiles tied to a specific merchant ID.

👍

HTTPS POST / Server-to-Server

SOF List requests and responses are encrypted using JWT with HS256 algorithm (HMAC with SHA-256) using Merchant’s Secret Key.

Merchants must know how to prepare requests and process responses using JWT Token.

https://sandbox-pgw.2c2p.com/payouts/api/v1.1/merchants/source-of-fund  
https://pgw.2c2p.com/payouts/api/v1.1/merchants/source-of-fund
https://pgw-id.2c2p.com/payouts/api/v1.1/merchants/source-of-fund

📘

API Parameter

SOF List Parameter
SOF List Response

Prepare Request

  1. Prepare payload data.
  2. Encrypt payload data with JWT - HS256 algorithm using merchant secret key.
{
  "merchantID": "702702000000001"  
}

{
	"payload": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtZXJjaGFudElEIjoiNzAyNzAyMDAwMDAwMDAxIn0.utqGCuIguhJdW49bgKDqWN3QdyvGje0ixix8oNkTbVw"
}
  1. Send request to beneficiary registration API.
curl --location --request POST 'https://sandbox-pgw.2c2p.com/payouts/api/v1.1/merchants/source-of-fund' \
--header 'Content-Type: application/json' \
--data-raw '{
	"payload": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtZXJjaGFudElEIjoiNzAyNzAyMDAwMDAwMDAxIn0.utqGCuIguhJdW49bgKDqWN3QdyvGje0ixix8oNkTbVw"
}'

Receive Response

  1. Receiving encrypted SOF Profile data immediately.
  2. Decrypt payload data with JWT - HS256 algorithm using merchant secret key.
{
    "SofProfiles":[
        {
            "code": "GIP-TH-001",
            "name": "GIP-001",
            "currency": "THB",
            "country": "TH"
        },
        {
            "code": "GIP-TH-002",
            "name": "GIP-002",
            "currency": "THB",
            "country": "TH"
        }
    ],
    "respCode": "8100",
    "respDesc": "Success – Payout disbursement success" 
}

{
	"payload": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJTb2ZQcm9maWxlcyI6W3siY29kZSI6IkdJUC1USC0wMDEiLCJuYW1lIjoiR0lQLTAwMSIsImN1cnJlbmN5IjoiVEhCIiwiY291bnRyeSI6IlRIIn0seyJjb2RlIjoiR0lQLVRILTAwMiIsIm5hbWUiOiJHSVAtMDAyIiwiY3VycmVuY3kiOiJUSEIiLCJjb3VudHJ5IjoiVEgifV0sInJlc3BDb2RlIjoiODEwMCIsInJlc3BEZXNjIjoiU3VjY2VzcyDigJMgUGF5b3V0IGRpc2J1cnNlbWVudCBzdWNjZXNzIn0.8vw0Bx-ZNcfH5lJJYB8ZEFh2V21nrFpJvd08FnRQAGA"
}