Create location
POST/v1/sellers/:sellerId/locations
Adds a new Pickup or Invoice location to the Seller's account.
A Seller may have multiple locations of each type. The first location of each type is
automatically set as the default (isDefault: true). Additional locations of the same
type can be added, but only one per type can be the default at a time.
Pre-condition: The Seller identified by sellerId must exist and be in ACTIVE status.
Returns 409 if an identical location (same locationLine1, postalCode, and locationType)
already exists for this Seller.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 409
- 422
- 500
Location created successfully.
Request body failed validation (e.g., missing required fields, invalid country code).
Bearer token is absent or expired.
The authenticated application does not have permission to manage locations for this Seller.
No Seller exists for the given sellerId.
An identical location already exists for this Seller.
Semantically invalid request (e.g., unsupported country code).
Internal server error.