Get an Account Membership
GET/v2/accounts/:accountID/account-memberships/:membershipID
Get an account membership from an account in your store
Request
Path Parameters
accountID stringrequired
The unique identifier of the account that the account member is associated with.
membershipID stringrequired
The unique identifier of the account membership to update the details of the account member.
Responses
- 200
- 404
OK
- application/json
- Schema
- Example (from schema)
Schema
data AccountMembershipResponse
id string
Represents the unique identifier for the account membership.
type string
Default value: account_membership
Represents the type of the object returned.
meta object
timestamps object
created_at string
The date the account is created.
updated_at string
The date the account is updated.
relationships object
account_member object
data object
id string
Specifies the ID of the account member.
type string
Default value: account_member
Specifies the type of the account member.
links object
self uri
A URL to the specific resource.
{
"data": {
"id": "24e939f6-178f-497b-9d64-5bf2b5a70a2e",
"type": "account_membership",
"meta": {
"timestamps": {
"created_at": "2021-02-23T09:40:33.882Z",
"updated_at": "2021-02-23T09:40:33.882Z"
}
},
"relationships": {
"account_member": {
"data": {
"id": "9e227208-b592-49c0-8c8f-043b66c634b0",
"type": "account_member"
}
}
},
"links": {
"self": "https://useast.api.elasticpath.com/v2/accounts/5b495058-9ffc-4b9b-810a-c9d43ffc6500/account-memberships/24e939f6-178f-497b-9d64-5bf2b5a70a2e"
}
}
}
Not Found
- application/json
- Schema
- Example (from schema)
- not-found-error
Schema
- Array [
- ]
errors Error[]required
status string
The HTTP response code of the error.
title string
A brief summary of the error.
detail string
Optional additional detail about the error.
{
"errors": [
{
"status": "string",
"title": "string",
"detail": "string"
}
]
}
{
"errors": [
{
"status": "404",
"title": "Not Found",
"detail": "account not found"
}
]
}
Loading...