# Create Corporation

### **Request** URL <a href="#payin-by-creditcard" id="payin-by-creditcard"></a>

`POST` `/remittance/merchant/create-corporation`

### **Request Body**

&#x20;**Refer to :** [**common**](https://docs.pagsmile.com/remittance-api/common)

&#x20;**Biz\_data**&#x20;

<table><thead><tr><th width="325">Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td>mobile</td><td>string(16)</td><td><p>The whole mobile phone number.</p><p>Need to add an international area code</p></td></tr><tr><td>email<mark style="color:red;">*</mark></td><td>string(80)</td><td>Email</td></tr><tr><td>business_category<mark style="color:red;">*</mark></td><td>Integer</td><td>Business Category Refer to <a href="../../data/dictionary-item/business-category">Business Category</a></td></tr><tr><td>website_url<mark style="color:red;">*</mark></td><td>string(128)</td><td>Website Url</td></tr><tr><td>corporation.registration_name<mark style="color:red;">*</mark></td><td>string(100)</td><td><p>Registration Name</p><p>Format:<a href="../../data/dictionary-item/charsets">CHARSETS_7</a></p></td></tr><tr><td>corporation.registration_code<mark style="color:red;">*</mark></td><td>string(32)</td><td>Registration Code</td></tr><tr><td>corporation.business_scope<mark style="color:red;">*</mark></td><td>string(300)</td><td>Business Description</td></tr><tr><td>corporation.registration_country<mark style="color:red;">*</mark></td><td>string(2)</td><td>Registration Country</td></tr><tr><td>corporation.registration_address.line<mark style="color:red;">*</mark></td><td>string(128)</td><td><p>The first line of the address.</p><p>Format:<a href="../../data/dictionary-item/charsets">CHARSETS_4</a></p></td></tr><tr><td>corporation.registration_address.line2</td><td>string(128)</td><td><p>The second line of the address.</p><p>Format:<a href="../../data/dictionary-item/charsets">CHARSETS_4</a></p></td></tr><tr><td>corporation.registration_address.postal_code</td><td>string(4-8)</td><td>The address zip code, or postal code</td></tr><tr><td>corporation.registration_address.city_name<mark style="color:red;">*</mark></td><td>string(4-80)</td><td><p>The address city</p><p>Format:<a href="../../data/dictionary-item/charsets">CHARSETS_6</a></p></td></tr><tr><td>corporation.registration_address.state</td><td>string(4-48)</td><td><p>The address state</p><p>Format:<a href="../../data/dictionary-item/charsets">CHARSETS_6</a></p></td></tr><tr><td>corporation.registration_address.country_code<mark style="color:red;">*</mark></td><td>string(2)</td><td><p>Country code,</p><p>refer to <a href="https://docs.pagsmile.com/issuing-card-api/data/dictionary-item/countrycode">CountryCode</a></p></td></tr><tr><td>director.first_name<mark style="color:red;">*</mark></td><td>string(50)</td><td><p>Director</p><p>First name</p></td></tr><tr><td>director.last_name<mark style="color:red;">*</mark></td><td>string(50)</td><td><p>Director</p><p>Last name</p></td></tr><tr><td>director.id_type<mark style="color:red;">*</mark></td><td>integer</td><td><p>Director</p><p><a href="../../data/dictionary-item/id-type">ID Type</a></p></td></tr><tr><td>director.id_no<mark style="color:red;">*</mark></td><td>string(6-20)</td><td><p>Director</p><p>ID Number</p></td></tr><tr><td>director.nationality<mark style="color:red;">*</mark></td><td>string(2)</td><td>Director, nationality </td></tr><tr><td>director.is_pep<mark style="color:red;">*</mark></td><td>Boolean</td><td><p>Director</p><p>Does the Director have any connection to a PEP (Politically ExposedPerson)</p></td></tr><tr><td>director.address.line<mark style="color:red;">*</mark></td><td>string(128)</td><td><p>Director</p><p>The first line of the address.</p><p>Format:<a href="../../data/dictionary-item/charsets">CHARSETS_4</a></p></td></tr><tr><td>director.address.line2</td><td>string(128)</td><td><p>Director</p><p>The second line of the address.</p><p>Format:<a href="../../data/dictionary-item/charsets">CHARSETS_4</a></p></td></tr><tr><td>director.address.postal_code</td><td>string(4-8)</td><td><p>Director</p><p>The address zip code, or postal code</p></td></tr><tr><td>director.address.city_name<mark style="color:red;">*</mark></td><td>string(4-80)</td><td><p>Director</p><p>The address city</p><p>Format:<a href="../../data/dictionary-item/charsets">CHARSETS_6</a></p></td></tr><tr><td>director.address.state</td><td>string(4-48)</td><td><p>Director</p><p>The address state</p><p>Format:<a href="../../data/dictionary-item/charsets">CHARSETS_6</a></p></td></tr><tr><td>director.address.country_code<mark style="color:red;">*</mark></td><td>string(2)</td><td><p>Director</p><p>Country code,</p><p>Refer to <a href="https://docs.pagsmile.com/issuing-card-api/data/dictionary-item/countrycode">CountryCode</a></p></td></tr><tr><td>shareholders[0].first_name<mark style="color:red;">*</mark></td><td>string(50)</td><td><p>UBO</p><p>First name</p></td></tr><tr><td>shareholders[0].last_name<mark style="color:red;">*</mark></td><td>string(50)</td><td><p>UBO</p><p>Last name</p></td></tr><tr><td>shareholders[0].id_type<mark style="color:red;">*</mark></td><td>integer</td><td><p>UBO</p><p><a href="../../data/dictionary-item/id-type">ID Type</a></p></td></tr><tr><td>shareholders[0].id_no<mark style="color:red;">*</mark></td><td>string(6-20)</td><td><p>UBO</p><p>ID Number</p></td></tr><tr><td>shareholders[0].nationality<mark style="color:red;">*</mark></td><td>string(2)</td><td><p>UBO</p><p>Nationality</p></td></tr><tr><td>shareholders[0].is_pep<mark style="color:red;">*</mark></td><td>Boolean</td><td><p>UBO</p><p>Does the Director have any connection to a PEP (Politically ExposedPerson)</p></td></tr><tr><td>shareholders[0].address.line<mark style="color:red;">*</mark></td><td>string(128)</td><td><p>UBO</p><p>The first line of the address.</p></td></tr><tr><td>shareholders[0].address.line2</td><td>string(128)</td><td><p>UBO</p><p>The second line of the address.</p></td></tr><tr><td>shareholders[0].address.postal_code</td><td>string(4-8)</td><td><p>UBO</p><p>The address zip code, or postal code</p></td></tr><tr><td>shareholders[0].address.city_name<mark style="color:red;">*</mark></td><td>string(4-80)</td><td><p>UBO</p><p>The address city</p></td></tr><tr><td>shareholders[0].address.state</td><td>string(4-48)</td><td><p>UBO</p><p>The address state</p></td></tr><tr><td>shareholders[0].address.country_code<mark style="color:red;">*</mark></td><td>string(2)</td><td><p>UBO</p><p>Country code,</p><p>Refer to <a href="https://docs.pagsmile.com/issuing-card-api/data/dictionary-item/countrycode">CountryCode</a></p></td></tr></tbody></table>

{% hint style="info" %}

{% endhint %}

### Response <a href="#example" id="example"></a>

{% tabs %}
{% tab title="200:submit successfully" %}

```
{
    "code": "10000",
    "msg": "Success",
    "data":{
        "merchant_id": 100398，
        "status":1
        
    },
    "random_key":"abssdddd2wdw==",
    "sign_type": "RSA",
    "app_id": "2017051914172236111"
}
```

{% endtab %}

{% tab title="400: invalid-signature" %}

```
{
    "code": "40002",
    "msg": "Business Failed",
    "sub_code": "invalid-signature",
    "sub_msg": "invalid signature"
}
```

{% endtab %}
{% endtabs %}

| Name                                           | Type    | Description                                                      |
| ---------------------------------------------- | ------- | ---------------------------------------------------------------- |
| merchant\_id<mark style="color:red;">\*</mark> | long    | Merchant ID                                                      |
| status<mark style="color:red;">\*</mark>       | integer | <p>Status :0-initial 1-enabled 2-disabled </p><p>Default : 1</p> |

### Example <a href="#example" id="example"></a>

```

curl --location --request POST 'https://rem-api-sandbox.pagsmile.com/remittance/merchant/create-corporation' \
--header 'Content-Type: application/json' \
--data-raw '
{
    "partner_id": "000000000000001",
    "app_id": "162051914172236138",
    "timestamp": "2011-09-23 04:24:03",
    "format": "JSON",
    "version": "2.0",
    "random_key": "jJT3+PR9CSowcR2QOK5OzMjVmTSjGoectzYbO8lENHnboElE",
    "request_id": "F6bEd39c-EecF-C1a2-AFcb-bA9BAeC8",
    "sign_type": "RSA",
    "biz_data":"3+PR9CSowtzYbO8lENHncR2QOK5OzMjJT3+PR9CSowcR2QOK5OzMjVmTSjGoectzYbO8lENHnboElE"
}'
```

```
```

Note: **162\*\*\*\*\*\*\*\*\*\*\*\*38**  is pagsmile's test app id for sandbox

Please use your own **app\_id** when testing.
