Delete a Customer Address
DELETEhttps://useast.api.elasticpath.com/v2/customers/:customerID/addresses/:addressID
Delete an address for a Customer.
Request
Path Parameters
customerID stringrequired
The ID of the customer that contains the address to delete.
addressID stringrequired
The ID of the address to delete.
Responses
- 204
- 404
No Content
Not Found
- application/json
- Schema
- Example (auto)
- not-found-error
Schema
errors Error[]required
{
"errors": [
{
"status": "string",
"title": "string",
"detail": "string"
}
]
}
{
"errors": [
{
"status": "404",
"title": "Not Found",
"detail": "customer not found"
}
]
}
Authorization: http
name: BearerTokentype: httpscheme: bearer
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://useast.api.elasticpath.com/v2/customers/:customerID/addresses/:addressID");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear