TekipostAPI
Warehouses
POST/v1/warehouses

Create a warehouse

requires warehouses.write

The validation here is the courier's, not ours: Delhivery rejects a name under three characters and a sparse address, and a warehouse that passes here but fails there is one no courier will collect from.

Set is_return_same truthy to mirror the forward address onto the return leg; otherwise every return_* field is required and validated the same way. Creating a warehouse also adopts any orders that arrived before you had one.

Refused for merchant_finance · merchant_support · merchant_staff — these are read-only roles, and the refusal happens before the handler runs.

Request body

FieldTypeDescription
warehouse_namerequiredstringUnique to you. 3–191 characters.
contact_person_namerequiredstringWho the courier asks for.
contact_norequiredstringCollection contact. Must match ^\d{10}$.
address_line_1requiredstringStreet address.
cityrequiredstringCity.
staterequiredstringState.
pincoderequiredstringPickup pincode. Must match ^\d{6}$.
contact_emailstringOptional, validated when present.
gstinstringGSTIN for the state the goods are stocked in. Must match ^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z][1-9A-Z]Z[0-9A-Z]$.
warehouse_typestringDefaults to fulfillment_pickup. One of fulfillment_pickup · pickup · fulfillment.
is_return_samebooleanMirror the forward address onto the return leg.

Responses

StatusMeaning
201{data:{id, orders_repaired}} — orders_repaired is how many stranded orders were adopted.
400
validation_failed
details names every failure; return-leg messages are prefixed return_.