Logo PopinaPopina API

Update an address

Update an address

PUT/v1/addresses/{id}
authorization<token>

Use device JWT token

In: header

Path Parameters

idstring
address1string
Length1 <= length
address2?string|null
citystring
Length1 <= length
countrystring
Length1 <= length
zipCodestring
Length1 <= length
regionCode?string|null
isPrimary?boolean
Defaulttrue
typestring
Value in"shipping" | "billing" | "both"
customerIdstring
Formatuuid

Response Body

application/json

application/json

application/json

curl -X PUT "http://localhost:4012/v1/addresses/string" \  -H "Content-Type: application/json" \  -d '{    "address1": "12 Avenue des Champs-Élysées",    "address2": "3ème étage",    "city": "Paris",    "country": "France",    "zipCode": "75008",    "regionCode": "IDF",    "isPrimary": true,    "type": "shipping",    "customerId": "abcdef01-2345-6789-abcd-ef0123456789"  }'
{
  "message": "Address updated successfully"
}
{
  "message": "string",
  "code": "INSUFFICIENT_BALANCE",
  "meta": {
    "property1": null,
    "property2": null
  }
}
{
  "message": "string",
  "code": "INSUFFICIENT_BALANCE",
  "meta": {
    "property1": null,
    "property2": null
  }
}