Create an Account Cart Association
POST/v2/carts/:cartID/relationships/accounts
You can create associations between an account and one or more carts. After cart associations exist for an account, the account can access those carts across any device.
Request
Path Parameters
cartID stringrequired
The ID for the cart created by the account. Ensure that you follow the guidelines for Safe Characters.
Header Parameters
EP-Account-Management-Authentication-Token string
An Account Management Authentication token to access a specific account's carts.
- application/json
Body
- Array [
- ]
data undefined[]
id string
The ID of the account.
type string
The type of related object. Ensure that it is account.
Responses
- 200
- 204
- 401
OK
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
data undefined[]
id string
The ID of the account.
type string
The type of related object. Ensure that it is account.
{
"data": [
{
"id": "string",
"type": "string"
}
]
}
No Content is sent back in case the account has already been associated to the cart.
Response Headers
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
detail string
status string
title string
[
null
]
{
"errors": {
"status": 401,
"title": "Unauthorized"
}
}
Loading...