Plixstar
API Reference

Vendor pickup addresses

GET
/api/v1/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"  }]
POST
/api/v1/vendor/pickup-addresses

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
DELETE
/api/v1/vendor/pickup-addresses/{id}

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
PUT
/api/v1/vendor/pickup-addresses/{id}

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