Skip to content
StraventaDocs
Now in Sandbox.

Save an address

POST
/v1/marketplace/buyer/addresses

At most 10 addresses per shopper. recipient_name and street are the only required fields — a parcel needs a person and a place, and the rest varies by country and by how the seller's courier wants it written.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://sandbox.505pay.link/v1/marketplace/buyer/addresses" \  -H "Content-Type: application/json" \  -d '{    "recipient_name": "string",    "street": "string"  }'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "label": "string",
  "recipient_name": "string",
  "phone": "string",
  "street": "string",
  "city": "string",
  "province": "string",
  "postal_code": "string",
  "is_default": true,
  "lat": 0.1,
  "lng": 0.1,
  "province_code": "31",
  "city_code": "31.71",
  "district_code": "31.71.01",
  "village_code": "31.71.01.1001",
  "district": "Kebayoran Baru",
  "village": "Melawai"
}
{
  "error": "not_found",
  "message": "resource not found",
  "request_id": "01916b2a-f3c0-7000-0000-0000000000ff"
}
{
  "error": "not_found",
  "message": "resource not found",
  "request_id": "01916b2a-f3c0-7000-0000-0000000000ff"
}
{
  "error": "not_found",
  "message": "resource not found",
  "request_id": "01916b2a-f3c0-7000-0000-0000000000ff"
}
{
  "error": "body_too_large",
  "message": "request body exceeds the 65536-byte limit",
  "request_id": "01916b2a-f3c0-7000-0000-0000000000ff"
}

Was this page helpful?