Get an Account's Tags Relationship
GEThttps://useast.api.elasticpath.com/v2/accounts/:accountID/relationships/account-tags
Get a list of Account Tags on an Account
Request
Path Parameters
accountID uuidrequired
The ID of the account you want to retrieve.
Responses
- 200
- 404
- 500
OK
- application/json
- Schema
- Example (auto)
Schema
data object[]
links object
{
"data": [
{
"id": "652e39d8-d613-493e-8c20-fef99ad6327a",
"type": "string"
}
],
"links": {
"self": "https://useast.api.elasticpath.com/v2/accounts/deb6b25f-8451-4211-9a22-95610333df23/relationships/account-tags"
}
}
Not Found
- application/json
- Schema
- Example (auto)
- not-found-error
Schema
errors object[]required
{
"errors": [
{
"title": "string",
"status": "string",
"detail": "string"
}
]
}
{
"errors": [
{
"title": "Not Found",
"status": "404",
"detail": "account not found"
}
]
}
Internal server error.
- application/json
- Schema
- Example (auto)
- internal-server-error
Schema
errors object[]required
{
"errors": [
{
"title": "string",
"status": "string",
"detail": "string"
}
]
}
Internal server error
{
"errors": [
{
"title": "Internal Server Error",
"status": "500",
"detail": "there was a problem processing your request"
}
]
}
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.Get, "https://useast.api.elasticpath.com/v2/accounts/:accountID/relationships/account-tags");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear