CNY Payout(new encryption)
Last updated
Last updated
Summary
Unlock seamless cross-border payments with the Payout API for CNY, enabling businesses/customers to send funds to recipients in China efficiently.
Generate bearer token
Create a quotation
Get bank codes (BANK_ACCOUNT and BANK_CARD only)
Upload Attachment (B2B only)
Initiate a transfer
Listen for status
Before you begin!
Find your keys on the Klasha Dashboard → Settings → Generate API Keys (here)
Payout quotation is created based on the category. Here is the list of categories
B2B
BANK_ACCOUNT
Not applicable
C2C
BANK_ACCOUNT
Not applicable
C2C
BANK_CARD
UNIONPAY
C2C
WALLET
ALIPAY
C2C
WALLET
WECHATPAY
POST
{{env_url}}/wallet/merchant/quotation
You would need to pass, as a header the x-auth-token. This can be obtained from your merchant dashboard → Settings → Generate API keys → Merchant public key.
Content-Type
application/json
Authorization
Bearer <token here>
x-auth-token
MERCHANT PUBLIC KEY
Request body (encrypted):
GET
{{env_url}}/
wallet/merchant/bank/transfer/request/banks/CNY
GET
{{env_url}}/
wallet/merchant/bank/transfer/request/banks/CNY?type=bank_card
Content-Type
application/json
Authorization
Bearer <token here>
Supported Attachment Types
COMMERCIAL_DOCUMENTS
LOGISTICS_DOCUMENTS
LOGISTICS_COMMUNICATION_DOCUMENTS
CONTRACT_DOCUMENTS
ORDER_DOCUMENTS
CUSTOMS_DECLARATION
OTHERS
Make a POST call to upload file
POST
{{env_url}}/
wallet/merchant/file
You would need to pass, as a header the x-auth-token. This can be obtained from your merchant dashboard → Settings → Generate API keys → Merchant public key.
Context-Type
multipart/form-data
Authorization
Bearer <token here>
x-auth-token
MERCHANT PUBLIC TOKEN
Form request:
POST
{{env_url}}/
/wallet/merchant/bank/transfer/request/v2
You would need to pass, as a header the x-auth-token. This can be obtained from your merchant dashboard → Settings → Generate API keys → Merchant public key.
Content-Type
application/json
x-auth-token
MERCHANT PUBLIC KEY
Authorization
Bearer <token here>
Values
Description
ID_CARD
national id card
UNIFIED_SOCIAL_CREDIT_ID
unified social credit id of China registered company
PASSPORT
passport
BUSINESS_REGISTRATION_CERT
business registration certificate
ACCOUNT ID
Values
Description
MOBILE
ALIPAY and WECHATPAY
ALIPAY only
SELF
SPOUSE
PARENTS
SONS_AND_DAUGHTERS
BROTHERS_AND_SISTERS
GRANDPARENTS
GRANDPARENTS_IN_LAW
GRANDCHILDREN
MATERNAL_GRANDCHILDREN
INDIVIDUAL
COMPANY
GOODS
Values
Description
GOODS_PURCHASE
B2B
SALARY
C2C
FAMILY_SUPPORT
C2C
TRAVEL
C2C
INSURANCE
C2C
INVESTMENT
C2C
SERVICE_CHARGES
C2C
PATENT_ROYALTY
C2C
OTHER
C2C
Request body (encrypted):
Fields specification: C2C, BANK_CARD
Field
Description
receiverFirstName
Receiver first name
receiverLastName
Receiver last name
senderFirstName
Sender first name
senderLastName
Sender last name
senderNationality
Sender nationality
senderIdType
Sender ID type. Please refer to the supported ID type list
senderIdNumber
Sender ID number
senderAddress
Sender’s address. Refer to the address object
bankName
Name of the bank
bankCode
Bank ID
creditAccountCountry
Bank’s country
cardNumber
Card number
cardHolderName
Name on card
quotationId
Quotation ID obtained after creating a quotation
purpose
Reason for the payout. Please refer to the supported purpose list
requestId
It’s a unique transaction reference will be used to uniquely identify a transfer
Fields specification: C2C, BANK_ACCOUNT
Field
Description
receiverFirstName
Receiver first name
receiverLastName
Receiver last name
receiverMobileNumber
Receiver mobile number. Format: +86 18612345678
receiverEmail
Receiver email
receiverRelationship
Relationship with the receiver
receiverIdType
Receiver ID type. Please refer to the supported ID type list
receiverIdNumber
Receiver ID number
senderFirstName
Sender first name
senderLastName
Sender last name
senderNationality
Sender nationality
senderIdType
Sender ID type. Please refer to the supported ID type list
senderIdNumber
Sender ID number
senderAddress
Sender address. Refer to the address object
bankName
Name of the bank
bankCode
Bank ID
creditAccountCountry
Credit account bank’s country
accountNumber
Credit account number
accountName
Credit account name
accountType
Credit account type. Please refer to the supported account type list
quotationId
Quotation ID obtained after creating a quotation
purpose
Reason for the payout. Please refer to the supported purpose list
requestId
It’s a unique transaction reference will be used to uniquely identify a transfer
Fields specification: C2C, WALLET (ALIPAY, WECHATPAY)
Field Name
Description
receiverFirstName
Receiver first name
receiverLastName
Receiver last name
receiverRelationship
Relationship with the receiver
senderFirstName
Sender first name
senderLastName
Sender last name
senderBirthDate
Sender date of birth
senderNationality
Sender nationality
senderIdType
Sender ID type. Please refer to the supported ID type list
senderIdNumber
Sender ID number
senderAddress
Sender address. Refer to the address object
creditAccountCountry
Credit account bank’s country
accountNumber
Credit account number - this is either an email or mobile number for ALIPAY or a mobile number for WECHAT PAY. The login account ID to WeChat or Alipay account.
accountId
The account ID type of either the WeChat or Alipay account. Please refer to the supported account ID type.
quotationId
Quotation ID obtained after creating a quotation
purpose
Reason for the payout. Please refer to the supported purpose list
requestId
It’s a unique transaction reference will be used to uniquely identify a transfer
Fields specification: B2B, BANK_ACCOUNT
Field
Description
receiverFirstName
Receiver first name
receiverLastName
Receiver last name
receiverBusinessMobileNumber
Receiver mobile number. Format: +86 18612345678
receiverEmail
Receiver email
receiverBusinessIdType
Receiver ID type. Please refer to the supported ID type list
receiverBusinessIdNumber
Receiver ID number
receiverBusinessRegisteredName
Receiver business name. Chinese characters are required if it's in China
receiverBusinessAddress
Receiver business address
senderFirstName
Sender first name
senderLastName
Sender last name
senderBusinessAddress
Sender business address. Refer to the address object
senderBusinessRegisteredName
Sender business name
bankName
Name of the bank
bankCode
Bank ID
creditAccountCountry
Credit account bank’s country
accountNumber
Credit account number
accountName
Credit account name
accountType
Credit account type. Please refer to the supported account type list
quotationId
Klasha quotation ID
purpose
Reason for the payout. Please refer to the supported purpose list
requestId
It’s a unique transaction reference will be used to uniquely identify a transfer
document
See: Document
Fields specification: Document
Field
Description
totalAmount
Total amount
orderNumber
Order number
orderTime
Order time
orderCurrency
Order currency
logistics
See: Logistics
tradeType
Please refer to the supported TradeType
products
List<Product>
Product
attachments
List<Attachment>
See: Attachment
Fields specification: Product
Field
Description
name
Product name
quantity
Quantity
Fields specification: Attachment
Field
Description
fileId
Klasha file ID
Fields specification: Logistics
Field
Description
company
Logistics company
orderNo
Logistics order number
Fields specification: Address
Field
Description
city
City
streetAddress
Street address
countryCode
Country code
postcode
Postcode
state
Province or state
When a transfer is initiated, it could take a few seconds or minutes to be processed. This is why we recommend relying on webhooks for verification as opposed to polling.
Once a transfer is processed, we send the final status of the transfer as a POST request to your webhook URL
The possible statuses are listed and described in the following table:
successful
This is sent when the transfer is successful
failed
This is sent when the transfer fails
pending
This transfer is still in progress. Please wait for either success or failed.
Make a call to fetch status of initiated payouts.