| Field | Type | Description |
|---|---|---|
address_lane1 | string | Primary line of the pickup address |
address_lane2 | string | Secondary line of the pickup address (e.g., floor, suite) |
landmark | string | A nearby landmark for the pickup location |
Pin | number | PIN code of the pickup address |
city | string | City of the pickup address |
state | string | State of the pickup address |
name | string | Name of the pickup hub |
phone_no | string | Contact phone number for the pickup hub |
| Field | Type | Description |
|---|---|---|
is_rto_same | boolean | Set to true if the RTO (Return to Origin) address is the same as the pickup address. If false, provide the RTO address fields below. |
rto_address_lane1 | string | Primary line of the RTO address |
rto_address_lane2 | string | Secondary line of the RTO address |
rto_landmark | string | A nearby landmark for the RTO location |
rto_pin | number | PIN code of the RTO address |
rto_city | string | City of the RTO address |
rto_state | string | State of the RTO address |
rto_name | string | Name associated with the RTO address |
rto_phone_no | string | Contact phone number for the RTO address |
curl --location 'https://api.sharkship.in/v1/b2c/address/pickupAddress' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"address_lane1": "string",
"address_lane2": "string",
"landmark": "string",
"Pin": 0,
"city": "string",
"state": "string",
"name": "string",
"phone_no": "string",
"is_rto_same": true,
"rto_address_lane1": "string",
"rto_address_lane2": "string",
"rto_landmark": "string",
"rto_pin": 0,
"rto_city": "string",
"rto_state": "string",
"rto_name": "string",
"rto_phone_no": "string"
}'{
"pickup_hub_id": 1182,
"hub_address": "H-34 Sharkship",
"hub_landmark": "Near Sharkship",
"hub_pin": 110001,
"hub_city": "Delhi",
"hub_state": "Delhi",
"hub_contact_number": "9876543219"
}