Payouts
Create Payout Examples
NGN to CNY Bank Transfer (Customer)

CNY Payout – BANK TRANSFER (CUSTOMER)

This guide explains how to initiate CNY payouts to customer accounts via bank transfer using the meCash API. Requests must be sent as multipart/form-data with a stringified JSON payload under the transaction field.


Endpoint

POST {{baseURL}}/v1/payout


Header

HeaderValueRequired
x-api-keyYOUR_API_KEY✅ Yes

Example Request (Customer Bank Transfer)

curl --location 'https://{{baseURL}}/v1/payout' \
--header 'x-api-key: YOUR_API_KEY_HERE' \
--form 'transaction="{
  \"recipient\": {
    \"name\": \"SILI\",
    \"firstName\": \"feng\",
    \"idType\": \"ID_CARD\",
    \"idNumber\": \"331081199609218031\",
    \"mobileNumber\": \"+123 456789\",
    \"relationship\": \"EMPLOYEE\",
    \"type\": \"CUSTOMER\",
    \"invoiceNo\": \"\",
    \"account\": {
      \"name\": \"北京华海潮商贸有限责任公司\",
      \"accountNumber\": \"6222040000030016\",
      \"type\": \"INDIVIDUAL\"
    },
    \"paymentChannel\": \"BANK_TRANSFER\",
    \"currency\": \"CNY\",
    \"country\": \"CN\",
    \"stored\": false
  },
  \"quoteId\": \"{{quoteIdCny}}\",
  \"transactionPin\": \"123456\",
  \"remark\": \"Testing\",
  \"reason\": \"Gift\"
"}'

Request Breakdown


Headers

HeaderValue ExampleDescription
x-api-keyAPI_KEYAPI authentication key

Form Data Parameters

ParameterTypeDescription
transactionJSONStringified JSON transaction payload

Transaction Object

FieldTypeDescription
quoteIdStringQuote ID from FX pricing
transactionPinString6-digit security PIN
remarkStringInternal reference note
reasonStringTransaction purpose

Recipient Object (Business)

FieldTypeDescription
nameStringLegal business name
firstNameStringContact first name
idTypeStringID type (ID_CARD)
idNumberStringGovernment-issued ID
mobileNumberStringContact number with country code
relationshipStringRecipient relationship (EMPLOYEE)
typeStringEntity type (BUSINESS)
invoiceNoStringBusiness invoice reference (optional)
paymentChannelStringPayment method (BANK_TRANSFER)
currencyStringTransaction currency (CNY)
countryStringCountry code (CN)
storedBooleanSave recipient details

Account Object

FieldTypeDescription
nameStringAccount holder name
accountNumberStringCorporate bank account number
typeStringAccount type (INDIVIDUAL)

Success Response (200 OK)

Returns a JSON response confirming the transaction was processed successfully.

{
  "message": "Payout initiated successfully",
  "status": "success",
  "data": {
    "transactionId": "txn_1234567890abcdef",
    "quoteId": "qte_0987654321fedcba",
    "status": "PENDING",
    "created": "2025-05-20T12:00:00.000Z"
  }
}

Error Handling

Status CodeMeaningExample ResponseHow to Handle
400Invalid Bank DetailsInvalid sort code for bankVerify bank routing information
400ID Validation FailedInvalid business registration IDCheck government-issued ID
400Invalid Transaction PINInvalid transaction authorizationVerify 6-digit PIN
400Business Info MismatchAccount name mismatch with registrationEnsure names match official records