Get items separated by supplier
GET/api/cart/:id/line-items-by-supplier
Retrieve an array by supplier
Request
Path Parameters
id stringrequired
The ID of the Cart
Responses
- 200
Successful retrieval an array by supplier information
- application/json
- Schema
- Example (from schema)
- Example
Schema
any
[
{
"supplier": {
"id": 1117,
"name": "user-2@test.no"
},
"available_shippings": [
{
"id": "1b4d1ebe-8c8f-42eb-b6c6-b8f64de2431b",
"name": "shopping 1",
"description": "test shipping 1",
"country_code": "NO",
"price": {
"amount": 10,
"currency_code": "EUR"
}
}
],
"line_items": [
{
"id": "0999e9f9-3f0c-49cc-869e-0d9d56c5d560",
"supplier": "user-2@test.no",
"product_available_shippings": [
{
"id": "1b4d1ebe-8c8f-42eb-b6c6-b8f64de2431b",
"name": "shopping 1",
"description": "test shipping 1",
"country_code": "NO",
"price": {
"amount": 10,
"currency_code": "EUR"
}
}
],
"brand": "",
"sku": "diuhisudhfoiewuf982uf048uf934",
"barcode": "1",
"product_id": 65416,
"title": "p1",
"image": [
{
"id": 85832,
"url": "https://containerqa.reachu.io/reachu-uploads-qa/product-images/1707355778664.jpg",
"width": 480,
"height": 480
}
],
"variant_id": null,
"variant_title": null,
"variant": [],
"quantity": 2,
"price": {
"unit_price": 1000,
"tax": 25,
"currency_code": "EUR",
"compare_at": 0
},
"shipping": {
"id": "1b4d1ebe-8c8f-42eb-b6c6-b8f64de2431b",
"name": "shopping 1",
"description": "test shipping 1",
"price": {
"amount": 10,
"currency_code": "EUR"
}
}
}
]
},
{
"supplier": {
"id": 1116,
"name": "user-1@test.no"
},
"available_shippings": [
{
"id": "8cb8d758-8e3c-435f-a39a-748d9cb102ad",
"name": "sh 1",
"description": "shipping test 2",
"country_code": "NO",
"price": {
"amount": 10,
"currency_code": "EUR"
}
}
],
"line_items": [
{
"id": "d5a04c68-f79e-40c4-84f9-26cbb8bf77de",
"supplier": "user-1@test.no",
"product_available_shippings": [
{
"id": "8cb8d758-8e3c-435f-a39a-748d9cb102ad",
"name": "sh 1",
"description": "shipping test 2",
"country_code": "NO",
"price": {
"amount": 10,
"currency_code": "EUR"
}
}
],
"brand": "",
"sku": "RDIUTXUQG8GUT8IT",
"barcode": "2",
"product_id": 67751,
"title": "variant 1",
"image": [
{
"id": 124257,
"url": "https://containerqa.reachu.io/reachu-uploads-qa/product-images/1709254980797.jpg",
"width": 5472,
"height": 3648
}
],
"variant_id": 267901,
"variant_title": "red",
"variant": [
{
"option": "color",
"value": "red"
}
],
"quantity": 1,
"price": {
"unit_price": 210,
"tax": 25,
"currency_code": "EUR",
"compare_at": 0
},
"shipping": {
"id": "8cb8d758-8e3c-435f-a39a-748d9cb102ad",
"name": "sh 1",
"description": "shipping test 2",
"price": {
"amount": 10,
"currency_code": "EUR"
}
}
}
]
}
]
[
{
"supplier": {
"id": 1117,
"name": "user-2@test.no"
},
"available_shippings": [
{
"id": "1b4d1ebe-8c8f-42eb-b6c6-b8f64de2431b",
"name": "shopping 1",
"description": "test shipping 1",
"country_code": "NO",
"price": {
"amount": 10,
"currency_code": "EUR"
}
}
],
"line_items": [
{
"id": "0999e9f9-3f0c-49cc-869e-0d9d56c5d560",
"supplier": "user-2@test.no",
"product_available_shippings": [
{
"id": "1b4d1ebe-8c8f-42eb-b6c6-b8f64de2431b",
"name": "shopping 1",
"description": "test shipping 1",
"country_code": "NO",
"price": {
"amount": 10,
"currency_code": "EUR"
}
}
],
"brand": "",
"sku": "diuhisudhfoiewuf982uf048uf934",
"barcode": "1",
"product_id": 65416,
"title": "p1",
"image": [
{
"id": 85832,
"url": "https://containerqa.reachu.io/reachu-uploads-qa/product-images/1707355778664.jpg",
"width": 480,
"height": 480
}
],
"variant_id": null,
"variant_title": null,
"variant": [],
"quantity": 2,
"price": {
"unit_price": 1000,
"tax": 25,
"currency_code": "EUR",
"compare_at": 0
},
"shipping": {
"id": "1b4d1ebe-8c8f-42eb-b6c6-b8f64de2431b",
"name": "shopping 1",
"description": "test shipping 1",
"price": {
"amount": 10,
"currency_code": "EUR"
}
}
}
]
},
{
"supplier": {
"id": 1116,
"name": "user-1@test.no"
},
"available_shippings": [
{
"id": "8cb8d758-8e3c-435f-a39a-748d9cb102ad",
"name": "sh 1",
"description": "shipping test 2",
"country_code": "NO",
"price": {
"amount": 10,
"currency_code": "EUR"
}
}
],
"line_items": [
{
"id": "d5a04c68-f79e-40c4-84f9-26cbb8bf77de",
"supplier": "user-1@test.no",
"product_available_shippings": [
{
"id": "8cb8d758-8e3c-435f-a39a-748d9cb102ad",
"name": "sh 1",
"description": "shipping test 2",
"country_code": "NO",
"price": {
"amount": 10,
"currency_code": "EUR"
}
}
],
"brand": "",
"sku": "RDIUTXUQG8GUT8IT",
"barcode": "2",
"product_id": 67751,
"title": "variant 1",
"image": [
{
"id": 124257,
"url": "https://containerqa.reachu.io/reachu-uploads-qa/product-images/1709254980797.jpg",
"width": 5472,
"height": 3648
}
],
"variant_id": 267901,
"variant_title": "red",
"variant": [
{
"option": "color",
"value": "red"
}
],
"quantity": 1,
"price": {
"unit_price": 210,
"tax": 25,
"currency_code": "EUR",
"compare_at": 0
},
"shipping": {
"id": "8cb8d758-8e3c-435f-a39a-748d9cb102ad",
"name": "sh 1",
"description": "shipping test 2",
"price": {
"amount": 10,
"currency_code": "EUR"
}
}
}
]
}
]
Loading...