Carts

get
Fetch a Cart

https://yorshop.yordadev.neetwork/v1/cart
This endpoint allows you to fetch a persistent cart.
Request
Response
Request
Headers
Authorization
required
string
Your shop's Client Credential Token
X-Customer-Token
required
string
Customer Token or Session_ID
Response
200: OK

get
Fetch all Your Shop's Carts

https://yorshop.yordadev.network/v1/carts
This endpoint allows you to fetch all your shop's carts.
Request
Response
Request
Headers
Authorization
required
string
Your shop's Client Credential Token
Response
200: OK

delete
Clear a Cart

https://yorshop.yordadev.network/v1/cart
Request
Response
Request
Headers
Authorization
required
string
Your shop's Client Credential Token
X-Customer-Token
required
string
A Customer Access Token or a Session_ID
Response
200: OK

post
Add Item to Cart

https://yorshop.yordadev.network/v1/cart
This endpoint allows you to add an item to a cart.
Request
Response
Request
Headers
Authorization
required
string
Your shop's Client Credential Token
X-Customer-Token
required
string
A Customer Access Token or a Session_ID
Form Data Parameters
item
required
array
An array of values
variant_id
required
string
item[variant_id]
quantity
required
integer
item[quantity]
Response
200: OK

put
Update a Cart

https://yorshop.yordadev.network/v1/cart
This endpoint allows you to update an item's quantity in a cart.
Request
Response
Request
Headers
Authorization
required
string
Your shop's Client Credential Token
X-Customer-Token
required
string
A Customer Access Token or a Session_ID
Query Parameters
item
required
array
An array of values
variant_id
required
string
The variant_id to update quantity for
quantity
required
integer
Updated quantity amount
Response
200: OK

post
Checkout a Cart

https://yorshop.yordadev.network/v1/cart/checkout
This endpoint allows you to checkout a cart and generate an order.
Request
Response
Request
Headers
optional
string
Authorization
required
string
Your shop's Client Credential Token
X-Customer-Token
required
string
A Customer Access Token or a Session_ID
Form Data Parameters
customer
optional
array
An array of values for Customer
email
optional
string
If new registered customer, add email here to attach the new information to the order
name
optional
string
If new registered customer, add name here to attach the new information to the order
tax_id
required
string
The id of the tax rate to which apply to this cart.
shipping_amount
required
integer
Total shipping amount to be applied to order
billing_address
required
string
An array of values for billing_address
first_name
required
string
billing_address[first_name]
last_name
required
string
billing_address[last_name]
company_name
optional
string
billing_address[company_name]
line_1
required
string
billing_address[line_1]
line_2
optional
string
billing_address[line_2]
city
required
string
billing_address[city]
stateProvinceRegion
required
string
billing_address[stateProvinceRegion]
country
required
string
billing_address[country]
zipPostalCode
required
string
billing_address[zipPostalCode]
shipping_address
required
array
An array of values for shipping_address
first_name
required
string
shipping_address[first_name]
last_name
required
string
shipping_address[last_name]
phone_number
optional
string
shipping_address[phone_number]
line_1
required
string
shipping_address[line_1]
line_2
optional
string
shipping_address[line_2]
city
required
string
shipping_address[city]
stateProvinceRegion
optional
string
shipping_address[stateProvinceRegion]
country
required
string
shipping_address[country]
zipPostalCode
optional
string
shipping_address[zipPostalCode]
instructions
required
string
shipping_address[instructions]
Response
200: OK