Most endpoints require a token for authentication. It can be an Order Token, Bearer Token or a Confirmation Token.
Identifies a guest user's cart and order. Response schema
const response = await client.cart.create()
const orderToken: string = response.success().data.attributes.token
Identifies a logged in user.
const response = await client.authentication.getToken({
username: 'spree@example.com',
password: 'spree123'
})
const bearerToken: string = response.success().access_token
Identifies a user for a single operation. For example, to reset their account's password. Confirmation Tokens are single-use and may have an expiration date.
Generated using TypeDoc