---
url: "https://pay.weixin.qq.com/doc/v3/partner/4012690944-curl.md"
title: "添加分账接收方-请求示例-curl"
doc_id: 4012690944
example_lang: "curl"
---

## curl


> POST

```
curl -X POST \
  https://api.mch.weixin.qq.com/v3/profitsharing/receivers/add \
  -H "Authorization: WECHATPAY2-SHA256-RSA2048 mchid=\"1900000001\",..." \
  -H "Accept: application/json" \
  -H "Wechatpay-Serial: 5157F09EFDC096DE15EBE81A47057A7232F1B8E1"  \
  -H "Content-Type: application/json" \
  -d '{
    "sub_mchid" : "1900000109",
    "appid" : "wx8888888888888888",
    "sub_appid" : "wx8888888888888889",
    "type" : "MERCHANT_ID",
    "account" : "86693852",
    "name" : "hu89ohu89ohu89o",
    "relation_type" : "SERVICE_PROVIDER",
    "custom_relation" : "代理商"
  }'

```
