Path parameters
-
merchant string Required
Merchant name to payment company, e.g. wechat.sh_smk
Query parameters
-
profit_order_no string Required
The settlement order no of the merchant, shall be unique within merchant system
-
transaction_id string Required
Payment system internal order number
-
payment_method string
Must be
wechatpay
oralipay
Values are
wechatpay
oralipay
.
GET /settlement/{merchant}
curl \
-X GET https://nomad.samarkand-global.cn/broker/v1/settlement/wechat.sh_smk?profit_order_no=string&transaction_id=string \
-H "app-api-key: $API_KEY"
Response example (200)
{
"code": 200,
"message": "success",
"outOrderNo": "string",
"transactionId": "transaction_id_123",
"orderId": "string",
"status": "FINISHED",
"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"
}
],
"finishDescription": "string",
"finishAmount": 88
}
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."
}