# Create Business Lite API

{% hint style="info" %}
Unlike the [Business Registration API](https://developers.doku.com/partnership/partner-api/business-registration-api) where Partners can create a full business, this **Create Business Lite API** allows Partners to create a business by inviting users to complete their business data in DOKU Dashboard.
{% endhint %}

## Endpoint

<table><thead><tr><th width="241">Type</th><th>Value</th></tr></thead><tbody><tr><td>HTTP Method</td><td>POST</td></tr><tr><td>API endpoint (Test Mode)</td><td>https://api-uat.doku.com/adv-core-api/partner/v1.0/business/lite/registration</td></tr><tr><td>API endpoint (Production)</td><td>https://api.doku.com/adv-core-api/partner/v1.0/business/lite/registration</td></tr></tbody></table>

## Request  Header

```
Client-Id: BRN-0001-10791114622547
Request-Id: fdb69f47-96da-499d-acec-7cdc318ab2fe
Request-Timestamp: 2020-08-11T08:45:42Z
Signature: HMACSHA256=1jap2tpgvWt83tG4J7IhEwUrwmMt71OaIk0oL0e6sPM=
```

<table><thead><tr><th width="199">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong><code>client-id</code></strong></td><td>Client ID (Brand ID) will be shared by DOKU Account Manager</td></tr><tr><td><strong><code>request-id</code></strong></td><td>Unique random string (max 128 characters) generated from merchant side to protect duplicate request</td></tr><tr><td><strong><code>request-timestamp</code></strong></td><td>Timestamp request on UTC time in ISO8601 UTC+0 format. It means to proceed transaction on UTC+7 (WIB), merchant need to subtract time with 7. Ex: to proceed transaction on September 22th 2020 at 08:51:00 WIB, the timestamp should be 2020-09-22T01:51:00Z</td></tr><tr><td><strong><code>signature</code></strong></td><td>Security parameter that needs to be generated on merchant Backend and placed to the header request to ensure that the request is coming from valid merchant. Please refer to <a href="../../get-started-with-doku-api/signature-component/non-snap/signature-component-from-request-header">this section</a> to generate the signature</td></tr></tbody></table>

## Request  Parameters

```json
{
  "business": {
    "partner_ref_id": "13aa67f8-c2ac-437c-9eb5-e5b1934fbfcc",
    "name": "John Store",
    "contact": {
      "name": "John Michael",
      "email": "john@gmail.com",
      "phone_calling_code": "62",
      "phone_number": "81510229216"
    }
  },
  "referral": {
    "code": "ABC123"
  },
  "invited_user": {
    "email": "string"
  }
}
```

| Query Params                          | Type      | Mandatory | Description                                                     |
| ------------------------------------- | --------- | --------- | --------------------------------------------------------------- |
| `business.partner_ref_id`             | `string`  | Mandatory | Partner Reference ID                                            |
| `business.name`                       | `string`  | Mandatory | Business Name                                                   |
| `business.contact.name`               | `string`  | Mandatory | Business Representative Name                                    |
| `business.contact.email`              | `string`  | Mandatory | Business Representative Email                                   |
| `business.contact.phone_calling_code` | `int(3)`  | Mandatory | Business Representative Phone Number Calling Code (ITU-T E.164) |
| `business.contact.phone_number`       | `int(13)` | Mandatory | Business Representative Phone Number                            |
| `referral.code`                       | string(6) | Optional  | Referral Code is generated by DOKU                              |
| `invited_user.email`                  | string    | Mandatory | Emails that will be invited to complete the business onboarding |

## Response

```json
{
    "business": {
        "id": "BSN-0103-1700206906468",
        "partner_ref_id": "PARTNER-TEST-MPE-JSM-171123.1",
        "brands": [
            {
                "id": "BRN-0103-1700206906471"
            }
        ]
    }
}
```

| Parameter                 | Type   | Description                                               |
| ------------------------- | ------ | --------------------------------------------------------- |
| business.id               | string | Business ID (generated by DOKU)                           |
| business.partner\_ref\_id | string |                                                           |
| brands.id                 | string | Brand ID (generated by DOKU) that will use for Direct API |
