# Parties API

> Attach first/second party (and witness) details to an e-Stamp order. Endpoint: `POST https://api-b2b.stampmitra.in/v1/estamp/orders/:orderId/parties`.

API fee: ₹5 per successful call, pay-as-you-go (lower on Growth and Scale). State procurement fee and stamp duty are quoted per order. Sandbox keys are free. Prices exclude 18% GST.

- HTML docs: https://developer.stampmitra.in/docs/estamp/estamp-parties
- Product page: https://developer.stampmitra.in/products/estamp-parties
- Pricing: https://developer.stampmitra.in/pricing
- Authentication: https://developer.stampmitra.in/docs/auth

## Attach/correct e-Stamp order party (customer) details

`POST https://api-b2b.stampmitra.in/v1/estamp/orders/:orderId/parties`

Required scope: `estamp.parties.write`

Attaches or corrects the customer/party details on an existing e-Stamp order. Requires the `estamp.parties.write` scope. Metered against your fulfilment wallet.

### Parameters

- `Authorization` (header, required): Bearer <api-key> (e.g. sk_test_... in sandbox, sk_live_... in production). The x-api-key header is also accepted.
- `orderId` (path, required): The e-Stamp order id.
- `customerName` (string, optional): Customer's full name.
- `partyName` (string, optional): Counter-party's full name.
- `customerMobile` (string, optional): Customer's mobile number.
- `customerEmail` (string, optional): Customer's email address.
- `partyAddress` (string, optional): Party's address.
- `partyPan` (string, optional): Party's PAN.

### Request example

```json
{
  "customerName": "Rahul Kumar",
  "customerMobile": "+919876543210",
  "customerEmail": "rahul@example.com"
}
```
