Last active
December 21, 2019 18:32
-
-
Save daliborgogic/3b401141965b46ab3273b4e27dd3573a to your computer and use it in GitHub Desktop.
Line Item JSON API specification (v1.0)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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