Payout Callback (Operator)

After the operator sends payout requests, the provider will process it. Once the provider gets the transaction status (success or failed), the provider will call this API to forward the transaction status.

Provider will send the parameter on key format, then operator need to decrypt it using encrypt/decrypt, you need to decrypt with api_key and api_secret.

Besides the key, we also send the transaction code in the transaction_code parameter and the transaction number in the transaction_no parameter that is not encrypted.

cURL
curl --request POST \
--url https://staging.s88pay.net/api/v1/transaction/resend-callback/SKU20210909025705 \
--header 'Content-Type: application/json' \
--data '{
"key": "<string>",
"transaction_code": "<string>",
"transaction_no": "<string>"
}'

Parameters

  • Name
    transaction_no
    Type
    string
    Description
    The transaction code recorded by the provider.
  • Name
    transaction_code
    Type
    string
    Description
    The transaction code sent by the operator on payout request.
  • Name
    transaction_status
    Type
    integer
    Description
    The status of the payout transaction.
  • Name
    transaction_amount
    Type
    double
    Description
    The amount of of the transaction.
  • Name
    transaction_fee
    Type
    double
    Description
    The amount of fee transaction.
  • Name
    currency_code
    Type
    string
    Description
    Currency Code, please refer to currency list.
  • Name
    transaction_ref
    Type
    double
    Description
    Transaction reference of payout request.

After decrypting the parameters, you will find that the response object are:

{
"transaction_no": "WD-987XXXXX",
"transaction_code": "WD8765XXXX",
"transaction_status": 2,
"transaction_amount": "3000.00",
"transaction_fee": "10.00",
"currency_code": "BDT",
"transaction_ref": ""
}