Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Line Item JSON API specification (v1.0)
{
"data": {
"id": "5c70a48c318ce30ebd00c14c",
"type": "line_items",
"links": {
"self": "https://foo.example.com/api/line_items/5c70a48c318ce30ebd00c14c"
},
"attributes": {
"type": "sku",
"sku": "7J237-410",
"quantity": 2,
"currency_code": "EUR",
"amount": 3000,
"tax": 20,
"name": "Converse Chuck Taylor All Star Low Top",
"description": "Scaled back in size for the next generation of original thinkers, rockers and artists, this Converse Chuck Taylor All Star remains true to the iconic original with classic details on a comfortable canvas upper.",
"image": "https://foo.example.com/assets/img/5c70a48c318ce30ebd00c14c.png",
"created_at": 1576950959,
"updated_at": 1576950959,
"metadata": {}
},
"relationships": {
"line_item_options": {
"links": {
"self": "https://foo.example.com/api/line_items/5c70a48c318ce30ebd00c14c/relationships/line_item_options",
"related": "https://foo.example.com/api/line_items/5c70a48c318ce30ebd00c14c/line_item_options"
}
}
},
"meta": {
"mode": "live"
}
}
}
{
"errors": [
{
"title": "Key is not included in URL",
"detail": "The URL does not support the key 10272",
"code": "KEY_NOT_INCLUDED_IN_URL",
"status": "400"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.