> For the complete documentation index, see [llms.txt](https://edrus.gitbook.io/appgregator-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://edrus.gitbook.io/appgregator-api-docs/appgregators/accounting/jurnal.id-final-version/api/contacts/create-contact.md).

# Create Contact

<mark style="color:green;">`POST`</mark> `https://us-central1-appgregator.cloudfunctions.net/jurnalID/contacts/`

#### Query Parameters

| Name                                               | Type   | Description             |
| -------------------------------------------------- | ------ | ----------------------- |
| name<mark style="color:red;">\*</mark>             | String | ft-4                    |
| connection\_name<mark style="color:red;">\*</mark> | String | intrapreneur-jurnalid-1 |

#### Headers

| Name                                        | Type   | Description |
| ------------------------------------------- | ------ | ----------- |
| x-api-key<mark style="color:red;">\*</mark> | String | U2Fsd...    |

{% tabs %}
{% tab title="201: Created Success" %}

```javascript
{
  "person": {
    "id": null,
    "display_name": "rana",
    "title": null,
    "first_name": null,
    "middle_name": null,
    "last_name": null,
    "mobile": null,
    "identity_type": null,
    "identity_number": null,
    "email": null,
    "other_detail": null,
    "associate_company": null,
    "phone": null,
    "fax": null,
    "tax_no": null,
    "archive": false,
    "billing_address": null,
    "billing_address_no": null,
    "billing_address_rt": null,
    "billing_address_rw": null,
    "billing_address_post_code": null,
    "billing_address_kelurahan": null,
    "billing_address_kecamatan": null,
    "billing_address_kabupaten": null,
    "billing_address_provinsi": null,
    "address": null,
    "bank_account_details": [
      {
        "bank_name": null,
        "bank_branch": "",
        "bank_account_holder_name": "",
        "bank_account_number": ""
      }
    ],
    "default_ar_account_id": null,
    "default_ap_account_id": null,
    "disable_max_credit_limit": true,
    "disable_max_debit_limit": true,
    "max_credit_limit": null,
    "max_debit_limit": null,
    "term_id": null,
    "is_customer": true,
    "is_vendor": false,
    "is_employee": true,
    "is_others": false,
    "contact_group_ids": [
      81504
    ],
    "people_type": "employee",
    "contact_group_names": [
      "accounting"
    ]
  }
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="cURL" %}

```shell
curl --location --request POST 'https://us-central1-appgregator.cloudfunctions.net/jurnalID/contacts?name=ft-4&connection_name=intrapreneur-jurnalid-1' \
--header 'x-api-key: U2Fsd...' \
--header 'Content-Type: application/json' \
--data-raw '{
  "person": {
    "id": null,
    "display_name": "rana",
    "title": null,
    "first_name": null,
    "middle_name": null,
    "last_name": null,
    "mobile": null,
    "identity_type": null,
    "identity_number": null,
    "email": null,
    "other_detail": null,
    "associate_company": null,
    "phone": null,
    "fax": null,
    "tax_no": null,
    "archive": false,
    "billing_address": null,
    "billing_address_no": null,
    "billing_address_rt": null,
    "billing_address_rw": null,
    "billing_address_post_code": null,
    "billing_address_kelurahan": null,
    "billing_address_kecamatan": null,
    "billing_address_kabupaten": null,
    "billing_address_provinsi": null,
    "address": null,
    "bank_account_details": [
      {
        "bank_name": null,
        "bank_branch": "",
        "bank_account_holder_name": "",
        "bank_account_number": ""
      }
    ],
    "default_ar_account_id": null,
    "default_ap_account_id": null,
    "disable_max_credit_limit": true,
    "disable_max_debit_limit": true,
    "max_credit_limit": null,
    "max_debit_limit": null,
    "term_id": null,
    "is_customer": true,
    "is_vendor": false,
    "is_employee": true,
    "is_others": false,
    "contact_group_ids": [
      81504
    ],
    "people_type": "employee",
    "contact_group_names": [
      "accounting"
    ]
  }
}'
```

{% endtab %}

{% tab title="NodeJs - Axios" %}

```javascript
var axios = require('axios');
var data = JSON.stringify({
  "person": {
    "id": null,
    "display_name": "rana",
    "title": null,
    "first_name": null,
    "middle_name": null,
    "last_name": null,
    "mobile": null,
    "identity_type": null,
    "identity_number": null,
    "email": null,
    "other_detail": null,
    "associate_company": null,
    "phone": null,
    "fax": null,
    "tax_no": null,
    "archive": false,
    "billing_address": null,
    "billing_address_no": null,
    "billing_address_rt": null,
    "billing_address_rw": null,
    "billing_address_post_code": null,
    "billing_address_kelurahan": null,
    "billing_address_kecamatan": null,
    "billing_address_kabupaten": null,
    "billing_address_provinsi": null,
    "address": null,
    "bank_account_details": [
      {
        "bank_name": null,
        "bank_branch": "",
        "bank_account_holder_name": "",
        "bank_account_number": ""
      }
    ],
    "default_ar_account_id": null,
    "default_ap_account_id": null,
    "disable_max_credit_limit": true,
    "disable_max_debit_limit": true,
    "max_credit_limit": null,
    "max_debit_limit": null,
    "term_id": null,
    "is_customer": true,
    "is_vendor": false,
    "is_employee": true,
    "is_others": false,
    "contact_group_ids": [
      81504
    ],
    "people_type": "employee",
    "contact_group_names": [
      "accounting"
    ]
  }
});

var config = {
  method: 'post',
  url: 'https://us-central1-appgregator.cloudfunctions.net/jurnalID/contacts?name=ft-4&connection_name=intrapreneur-jurnalid-1',
  headers: { 
    'x-api-key': 'U2Fsd...', 
    'Content-Type': 'application/json'
  },
  data : data
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});

```

{% endtab %}

{% tab title="PHP - cURL" %}

```php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://us-central1-appgregator.cloudfunctions.net/jurnalID/contacts?name=ft-4&connection_name=intrapreneur-jurnalid-1',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
  "person": {
    "id": null,
    "display_name": "rana",
    "title": null,
    "first_name": null,
    "middle_name": null,
    "last_name": null,
    "mobile": null,
    "identity_type": null,
    "identity_number": null,
    "email": null,
    "other_detail": null,
    "associate_company": null,
    "phone": null,
    "fax": null,
    "tax_no": null,
    "archive": false,
    "billing_address": null,
    "billing_address_no": null,
    "billing_address_rt": null,
    "billing_address_rw": null,
    "billing_address_post_code": null,
    "billing_address_kelurahan": null,
    "billing_address_kecamatan": null,
    "billing_address_kabupaten": null,
    "billing_address_provinsi": null,
    "address": null,
    "bank_account_details": [
      {
        "bank_name": null,
        "bank_branch": "",
        "bank_account_holder_name": "",
        "bank_account_number": ""
      }
    ],
    "default_ar_account_id": null,
    "default_ap_account_id": null,
    "disable_max_credit_limit": true,
    "disable_max_debit_limit": true,
    "max_credit_limit": null,
    "max_debit_limit": null,
    "term_id": null,
    "is_customer": true,
    "is_vendor": false,
    "is_employee": true,
    "is_others": false,
    "contact_group_ids": [
      81504
    ],
    "people_type": "employee",
    "contact_group_names": [
      "accounting"
    ]
  }
}',
  CURLOPT_HTTPHEADER => array(
    'x-api-key: U2Fsd...',
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

```

{% endtab %}
{% endtabs %}
