Path parameters
-
merchant string Required
Merchant name to payment company, e.g. wechat.sh_smk
Body
-
type string
Receiver type of profit sharing. MERCHANT_ID: merchants, PERSONAL_OPENID: personal. PERSONAL_OPENID is not available
Values are
MERCHANT_ID
orPERSONAL_OPENID
. -
account string
The receiver account.
-
name string
The receiver name.
-
relationType string
Relationship between sub-merchant and recipient.
Values are
SUPPLIER
,DISTRIBUTOR
,SERVICE_PROVIDER
,PLATFORM
, orOTHERS
. -
encryptedName string
Ciphertext of individual name(verify if value is passed)
-
description string
The Settlement receiver description.
-
paymentMethod string
Payment method, must be wechatpay or alipay
Values are
wechatpay
oralipay
.
POST /settlement/receiver/{merchant}
curl \
-X POST https://nomad.samarkand-global.cn/broker/v1/settlement/receiver/wechat.sh_smk \
-H "app-api-key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"type":"MERCHANT_ID","account":"1900000109","name":"张三","relationType":"OTHERS","encryptedName":"hu89ohu89ohu89o","description":"网络公司","paymentMethod":"wechatpay"}'
Request example
{
"type": "MERCHANT_ID",
"account": "1900000109",
"name": "张三",
"relationType": "OTHERS",
"encryptedName": "hu89ohu89ohu89o",
"description": "网络公司",
"paymentMethod": "wechatpay"
}
Response example (200)
{
"code": 200,
"message": "success",
"type": "MERCHANT_ID",
"account": "1900000109",
"receivers": [
{
"type": "MERCHANT_ID",
"receiverAccount": "1900000109",
"name": "1900000109",
"amount": 12,
"paymentMethod": "wechatpay",
"description": "分帐1900000110",
"receiverMchid": "Orange",
"result": "SUCCESS",
"finishTime": "2015-05-20T13:29:35.120+08:00",
"failReason": "NO_RELATION",
"detailId": "3601111111111111111111"
}
]
}
Response example (400)
{
"code": 200,
"message": "success"
}
Response example (401)
{
"code": 200,
"message": "success"
}
Response example (500)
{
"code": 200,
"message": "success",
"errors": "Something wrong when making the service."
}