Create Location

This API allows users to create a Location in the Eshopbox workspace.

A location typically represents a location from where you'll be doing inventory movement (transferring inventory from one location to another).

Endpoint

POST

https://{accountSlug}.myeshopbox.com/api/v1/party

Authentication

This API requires Bearer Token authentication.

Authorization: Bearer <access_token>

Headers

Header
Value

Authorization

Bearer <access_token>

Content-Type

application/json

Accept

application/json

Request Body

Attribute
Type
Description
Mandatory

partyName

string

Name of the location / party

Yes

refPartyId

string

External reference ID for the location. Ensure the refPartyId (Location code) is same as the identifier available in your ERP.

Yes

companyName

string

Company name associated with the location

Yes

contactPerson

string

Contact person name

Yes

primaryPhone

number

Primary contact phone number

Yes

addressLine1

string

Address line 1 of the location

Yes

addressLine2

string

Address line 2 of the location

No

city

string

City where the location is situated

Yes

pincode

number

Pincode / postal code

Yes

state

string

State name

Yes

country

string

Country name

Yes

gstin

string

GSTIN associated with the location

No

Sample Request

Response Codes

Status Code
Description

200

Location created successfully

400

Invalid request parameters

401

Unauthorized – Invalid or missing token

409

Duplicate location / reference ID

500

Internal server error

Success Response (200)

Response Attributes

Attribute
Type
Description

id

string

Unique identifier for the location created

accountId

number

Eshopbox account ID

partyId

string

System-generated unique party/location ID

refPartyId

string

Client-provided reference ID for the location

partyName

string

Name of the location

gstin

string

GSTIN associated with the location

addressLine1

string

Address line 1

addressLine2

string

Address line 2

city

string

City of the location

state

string

State of the location

pincode

string

Postal / pincode

country

string

Country

primaryPhone

string

Primary contact number

companyName

string

Company name associated with the location

contactPerson

string

Contact person name

Important Notes

  • partyId is system-generated and should be used for all downstream operations.

  • refPartyId must be unique per account.

Last updated

Was this helpful?