Omar
Omar

Reputation: 3060

BigCommerce cart api: get options per line_item

I am trying to get cart options to be included in the line item response

My Attempt (nodejs)

return bc_acc.get(`/carts/${cartId}?include=options`, {include:'options'}).then(data => {..

The response is fine but i expected to see options per line item. But its not there. The API Docs show it in the response. enter image description here

The Response

enter image description here

Upvotes: 0

Views: 177

Answers (1)

Raj
Raj

Reputation: 22956

Specify the full path of the include object like:

/carts/${cartId}?include=line_items.physical_items.options

Upvotes: 1

Related Questions