removeAddress
Requires a customer (portal or buyer app) session.
Soft-delete an address owned by the buyer.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
mutation RemoveAddress($addressId: ID!) {
removeAddress(addressId: $addressId)
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation RemoveAddress($addressId: ID!) {\n removeAddress(addressId: $addressId)\n}",
"variables": {
"addressId": "id"
}
}
EOF
Variables:
{
"addressId": "id"
}
Response:
{
"data": {
"removeAddress": true
}
}
removeAddress(
addressId: ID!
): Boolean!
Arguments
removeAddress.addressId ● ID! non-null scalar
The ID of the address.
Type
Boolean scalar
The Boolean scalar type represents true or false.