https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter8_1_1.shtml
curl -X 'POST' \
'https://localhost:44398/api/app/OrderPay/ProfitSharingOrders?ouId=3a068ae3-7291-84a1-1c86-ba286e62fead' \
-H 'accept: text/plain' \
-H 'Content-Type: application/json' \
-H 'RequestVerificationToken: CfDJ8DiekyxDR05FsUsdb2kGuUIUUZjIW8PLGlRrne_2s-OIPZxE9MLPDOGokj3B-uCrHKkw5aU20r-FRS8pB75HDQ0uGSEWCkwHCsrWZE528Nib5EgvVn6TalrgXGTuplP5i_up8-0r5ZXTgjnC1v1x2zGw4GlW_F8sO5EfC0PBQSQxlFSqazt6mECSmzq-jjEyGQ' \
-d '{
"sub_mchid": "1633939XXX",
"appid": "wx4cafcf7d39763XXX",
"transaction_id": "4200001674202211226444682259",
"out_order_no": "3a07b1e2f5528dd71159461cafaf6d37",
"receivers": [
{
"type": "MERCHANT_ID",
"account": "1634303XXX",
"amount": 1,
"description": "分"
}
],
"unfreeze_unsplit": true
}'
回复:
{
"sub_mchid": null,
"transaction_id": null,
"out_order_no": null,
"order_id": null,
"state": null,
"receivers": null,
"resultCode": {
"success": false,
"stateCode": "404",
"errorCode": "ORDER_NO_TEXIST;\nRESOURCE_NOT_EXISTS",
"errorMessage": "订单不存在;\n批次不存在",
"solution": "请检查订单是否发起过交易;\n请检查批次ID是否正确",
"additional": ""
},
"verifySignSuccess": null
}
订单号是认真核查过的,测试专门下的单。