Create a workspace

Workspace is used to access the various resources provided by Eshopbox to a client after successfully signup process.

Create a workspace

POST https://auth.myeshopbox.com/api/v1/account

This endpoint allows a user to create a new workspace to access resources provided by Eshopbox.

Headers

NameTypeDescription

Authentication

string

The Bearer token is required to access the API

Request Body

NameTypeDescription

accountSlug

string

Identifier of the workspace(Must be unique)

accountName

string

Name of the Workspace

{
    "id": "1",
    "accountName": "Kapas Kraft",
    "accountSlug": "KapasKraft",
    "status": "0",
    "clientCode": "KKPL359",
    "stepsCompleted": "1",
    "workspaceStatus":"0",
    "addressLine1": "Khasra no 5 16 2 17",
    "addressLine2": "Gundavali, Bhiwandi",
    "city": "Bangalore",
    "state": "Karnataka",
    "country": "IN",
    "pincode": "122018",
    "email": "johndoe@gmail.com",
    "phone": "9451782453",
    "panNumber": "AAA6910ZZZ",
    "pancardScannedCopy": "https://storage.cloud.google.com/panCard.appspot.com/AAA6910ZZZ.pdf",
    "accountNumber": "1234567899746",
    "bankName": "India Bank",
    "ifscCode": "SIB0003246",
    "branch": "Sector 7, Gurgaon",
    "cancelledChequeScannedCopy": "https://storage.cloud.google.com/cheque.appspot.com/cheque.pdf",
    "contactPerson": "Ram Sharma",
    "contractUrl": "https://storage.cloud.google.com/contract.appspot.com/contract.pdf",
    "createdAt": "2019-04-08T12:41:05.000+05:30",
    "updatedAt": "2019-04-08T12:41:05.000+05:30"
}
curl -X POST https://auth.myeshopbox.com/api/v1/account \
     -H "Authorization: Bearer XXXX" \
     -H "Content-Type: application/json" \
     -d $'{
      "data": {
        "accountSlug": "eshop",
        "accountName": "Eshopbox"
      }
    }'

Last updated