API Reference
Vendor pickup addresses
Default first, then oldest first.
Authorization
better-auth.session_token better-auth.session_token<token>
In: cookie
Response Body
application/json
curl -X GET "https://example.com/api/v1/vendor/pickup-addresses"[ { "id": "string", "store_id": "string", "label": "string", "address_line_1": "string", "postcode": "string", "state": "string", "is_default": true, "created_at": "string" }]When is_default=true, all other addresses for the store are unset inside the same transaction.
Authorization
better-auth.session_token better-auth.session_token<token>
In: cookie
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/api/v1/vendor/pickup-addresses" \ -H "Content-Type: application/json" \ -d '{ "label": "string", "address_line_1": "string", "postcode": "string", "state": "string" }'Empty
Authorization
better-auth.session_token better-auth.session_token<token>
In: cookie
Path Parameters
id*string
Response Body
curl -X DELETE "https://example.com/api/v1/vendor/pickup-addresses/string"Empty
Authorization
better-auth.session_token better-auth.session_token<token>
In: cookie
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X PUT "https://example.com/api/v1/vendor/pickup-addresses/string" \ -H "Content-Type: application/json" \ -d '{ "label": "string", "address_line_1": "string", "postcode": "string", "state": "string" }'Empty
