Skip to Content
Bhakti BaazarDevelopers

Customer details

Which scopes reach customer names, addresses and phone numbers, and how long they stay available.

Customer details are the customer's name, phone number, email and delivery address. The API gives them out only to keys that hold a customer-data scope, and only for a limited time.

Customer-data scopes

ScopeGives
orders:read_piicustomer on GET /orders and GET /orders/{orderId}: name, phone, email and delivery address
documents:readThe tax invoice PDF, which prints the customer's name and address
labels:readThe shipping label and manifest PDFs, which print the customer's address

Each works on its own. customer is null on every order for a key without orders:read_pii, and a key with none of the three gets no customer details at all.

Webhooks and GET /events never carry customer details, whatever the key's scopes. Their events are small references; read the order to get the rest.

How long customer details are available

Customer details stay readable through the API while an order is open, and for 90 days after it closes. An order closes when:

  • it is cancelled;
  • every line that was not cancelled is delivered (it closes at the last delivery);
  • its parcel came back to you (RTO) and was received; or
  • it is completed.

After the 90 days, customer reads null and the invoice, label and manifest endpoints answer 410 CUSTOMER_DATA_EXPIRED. The seller portal is not affected.

Self-ship without orders:read_pii

Without the scope, an order still tells you what to pack (its lines), how it is paid (paymentMethod and codAmount) and how it is shipping (shipment), but not who it goes to. Read the delivery address in the seller portal, then add the tracking through the API. See Orders and self-ship.

On this page