Delete a Currency
DELETEhttps://useast.api.elasticpath.com/v2/currencies/:currencyID
Delete a currency.
caution
- You can’t delete a default currency.
Request
Path Parameters
currencyID stringrequired
The ID for the Currency to delete.
Responses
- 204
- 404
No Content
Not Found
- application/json
- Schema
- Example (auto)
- Example
Schema
errors object[]
{
"errors": [
{
"detail": "string",
"status": 400,
"title": "string"
}
]
}
{
"errors": [
{
"detail": "currency not found",
"status": 404,
"title": "Not Found"
}
]
}
Authorization: http
name: bearerAuthtype: 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/currencies/:currencyID");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear