# Create a Fc Subscription

## Create a fulfillment Center Subscription

<mark style="color:green;">`POST`</mark> `https://{{workspace}}.myeshopbox.com/api/v1/subscription`

This endpoint is required to subscribe a fulfillment center (FC) for sending inventory to Eshopbox warehouse

#### Headers

| Name           | Type   | Description                                |
| -------------- | ------ | ------------------------------------------ |
| Authentication | string | The Bearer token is required to access API |

#### Request Body

| Name                 | Type   | Description                                                                                             |
| -------------------- | ------ | ------------------------------------------------------------------------------------------------------- |
| warehouseId          | string | Id of warehouse for which a user want to subscribe                                                      |
| warehouseName        | string | <p>Name of warehouse for which a user want to <br>subscribe</p>                                         |
| externalWmsAccountId | string | Id of External WMS account                                                                              |
| facility             | string | Name of facility for which subscription is made                                                         |
| requestDocuments     | object | <p>Documents(gst certificate,signature,company logo)<br>required to subscribe  Fulfillment channels</p> |

{% tabs %}
{% tab title="200 Fulfillment center  is successfully subscribed" %}

```
{
    "warehouseId": "9",
    "warehouseName": "Kapas Kraft Apparels Limited 1006",
    "facilityId": "3",
    "facility": "GGN",
    "externalWarehouseId": "2022",
    "externalWmsAccountId": "1",
    "subscriptionId": "1",
    "addressLine1": "Khasra no 5 16 2 17",
    "addressLine2": "Gundavali, Bhiwandi",
    "city": "Bangalore",
    "state": "Karnataka",
    "country": "India",
    "pincode": "122018",
    "location": "Bangalore",
    "area": "80",
    "primaryPhone": "7546390123",
    "operatingHours": "08:30:00-20:00:00",
    "operatingDays": "monday,tuesday,wednesday,thursday",
    "operatingModel": "consignment",
    "longitude": "",
    "latitude": "",
    "gstin": "06ABCD1234E1Z1",
    "status": "1",
    "isDefault": "1",
    "requestDocuments": {
        "gstCertificateUrl": "http://certificatestorage.com/gstCertificate.jpg",
        "signatureUrl": "http://signaturestorage.com/sign.jpg",
        "companyLogoUrl": "http://logostorage.com/logo.jpg"
    },
    "acknowledgementCertificateUrl": "http://certificatestorage.com/ack.jpg",
    "enrollmentStatus": "PENDING",
    "createdAt": "2019-04-08T12:41:05.000+05:30",
    "updatedAt": "2019-04-08T12:41:05.000+05:30"
}
```

{% endtab %}
{% endtabs %}

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

```bash
curl -X POST https://auth.myeshopbox.com/api/v1/subscription \
     -H "Authorization: Bearer XXXX" \
     -H "Content-Type: application/json" \
     -d $'{
    "data": {
    "warehouseId": "1",
    "warehouseName": "TCNS Banglore",
    "externalWmsAccountId": "1",
    "facility": "BDBLR108",
    "operatingModel": "consignment",
    "requestDocuments": {
    	"gstCertificateUrl": "http://abc.com/1.jpg",
    	"signatureUrl": "http://abc.com/2.jpg",
    	"companyLogoUrl": "http://abc.com/3.jpg"
    }
      }
    }'
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://eshop.gitbook.io/eshopbox-developers/setting/subscription/create-a-fc-subscription.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
