Delivery API developer guide

Request resident approval for a registered rider and deliver a time-limited pass in your rider app.

Download Postman collection

Connect your platform

Register your company. After DoorShield approves your account, sign in to generate your API key and find your enabled society names, towers and flat numbers. Register each company rider ID with DoorShield before booking.

Send requests from your backend over HTTPS. Store your key in a server-side secret manager. In Postman, set apiKey as a private environment secret.

Authorization: ApiKey <company-key>
Content-Type: application/json

Find an address

Send your company key with each GET request under https://doorshield.in/api/partners/v1/.

  1. societies/ returns the list of society names.
  2. towers/?society_name=Delivery%20Test%20Society returns tower names in the selected society.
  3. flats/?society_name=Delivery%20Test%20Society&tower=Demo%20Tower returns flat numbers in the selected tower.

URL-encode each selected name and preserve leading zeroes in flat numbers. Each lookup counts as one API call. MCP clients use list_societies, list_towers and list_flats.

Request resident approval

POST https://doorshield.in/api/partners/v1/deliveries/

Use your own unique order reference and a current arrival window with an explicit time zone. Replace the example identifiers and dates before sending.

{
  "society_name": "Delivery Test Society",
  "order_reference": "ORDER-4821",
  "rider_id": "R-17",
  "arrival_from": "2026-12-01T16:00:00+05:30",
  "arrival_until": "2026-12-01T16:30:00+05:30",
  "destinations": [
    {"tower": "Demo Tower", "flat": "A-101"}
  ]
}

HTTP 201 returns a request_id and pending status. Reuse the same order reference and payload for retries. Each distinct flat consumes one credit and receives a separate approval request. One resident approval permits gate entry.

Retrieve the rider pass

GET https://doorshield.in/api/partners/v1/deliveries/<request_id>/

Poll within your rate limit. The possible statuses are pending, approved, rejected, and expired. For an approved request, display pass.qr_image, pass.entry_pin, and the validity window to the assigned rider. Preserve leading zeroes in the PIN. Check pass.reader_ready before directing the rider to use a physical reader.

Handle errors

400 · Invalid booking
Check the registered rider, destination and arrival window.
401 or 403 · Access denied
Verify the company key, HTTPS endpoint and society permissions.
409 · Order conflict
The order reference already belongs to a different booking.
429 · Limit reached
Respect Retry-After for a request-rate limit. Check your portal balance for a monthly credit limit.

Connect a dispatch assistant

Exchange your OAuth client ID and company key via HTTP Basic at POST https://doorshield.in/api/partners/oauth/token. Send a URL-encoded form with grant_type=client_credentials, resource=https://doorshield.in/api/partners/mcp and the required scopes deliveries:request or deliveries:read.

Connect the client to https://doorshield.in/api/partners/mcp using its bearer token. For address lookup, call list_societies, list_towers and list_flats in sequence. Use request_delivery_approval for a new booking and get_delivery_status to retrieve its result. Tokens expire after 15 minutes. Request a new token using the same company credentials when needed.