Add

Add New Address

post

/V2/customer/address/add

Authorizations
Header parameters
Content-Typestring

Content Type

Example: application/json
Body
object
Example: {"customerAddress":{"firstname":"Test 22","lastname":"Guest 22","telephone":"787878722","country_id":"SA","region":{"region":"SA","region_id":654},"city":"Riyadh","street":["dadad"],"postcode":"12121221","company":"","default_shipping":true,"default_billing":true,"custom_attributes":[{"attribute_code":"address_latitude","value":"889889899"},{"attribute_code":"address_longitude","value":"6656556"},{"attribute_code":"extra_info","value":"hhjhj"},{"attribute_code":"address_label","value":"home"}]}}
Responses
curl -L \
  --request POST \
  --url 'https://beta.magento.pixiedia.com/V2/customer/address/add' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "customerAddress": {
      "firstname": "Test 22",
      "lastname": "Guest 22",
      "telephone": "787878722",
      "country_id": "SA",
      "region": {
        "region": "SA",
        "region_id": 654
      },
      "city": "Riyadh",
      "street": [
        "dadad"
      ],
      "postcode": "12121221",
      "company": "",
      "default_shipping": true,
      "default_billing": true,
      "custom_attributes": [
        {
          "attribute_code": "address_latitude",
          "value": "889889899"
        },
        {
          "attribute_code": "address_longitude",
          "value": "6656556"
        },
        {
          "attribute_code": "extra_info",
          "value": "hhjhj"
        },
        {
          "attribute_code": "address_label",
          "value": "home"
        }
      ]
    }
  }'

No body