Field | Type | Description |
---|---|---|
id | Int | Id of the product |
status | String | String enumarion of 'PENDING', 'HAS_READ', 'APPROVED', 'DECLINED', 'REMOVED', 'DELETED_BY_SHOP', 'COLLECTED' |
valid | Bool | Is true when the order is completed or paid and visible for the shop. |
order_nr | Int | Unique number on a yearly basis and per shop. Visible for the shop and users. Only available for valid orders. |
prices | CartPrices | Prices |
payment_method | String | String enumarion of 'point_of_sale', 'paid_in_shop', 'bank_transfer', 'ideal', 'bancontact', 'sofort', 'giropay', 'creditcard', 'carte_bleue', 'paypal', 'eps_uberweisung', 'apple_pay', 'google_pay', 'payconiq', 'monizze', 'edenred', 'webpay', 'satispay', 'stripe_card_visa_mc', 'stripe_card_amex', 'stripe_apple_pay', 'stripe_google_pay', 'payu_romania_visa', 'payu_romania_mc', 'payu_romania_visa_electron', 'payu_romania_maestro', 'payu_brazil_amex', 'payu_brazil_boleto_bancario', 'payu_brazil_diners', 'payu_brazil_elo', 'payu_brazil_hipercard', 'payu_brazil_mc', 'payu_brazil_visa', 'payu_sp_maestro', 'payu_sp_mc', 'payu_sp_pbl', 'payu_sp_visa', 'payu_sp_blik', 'payu_iyzico_amex', 'payu_iyzico_mc', 'payu_iyzico_troy', 'payu_iyzico_visa', 'pesopay_gcash', 'pesopay_visa', 'pesopay_mc', 'redsys_bizum', 'sibs_id' |
checkout | OrderCheckout | |
shop | Shop.simple | |
created_at | DateTime | Datetime string in Europe/Brussels for when the order was created. |
payment_status | String? | Nullable. String enumarion of 'pending', 'canceled', 'timeout', 'declined', 'refunded', 'paid' |
products | [CartItem.order] | Array of CartItem.order |
When used inside a request.
{
"id": 11,
"status": "PENDING",
"valid": false,
"order_nr": 17,
"prices": {
"price": 17,
"discount": 17,
"warranty": 18,
"delivery_cost": 18,
"invoice_cost": 16,
"sms_cost": 11,
"transaction_cost": 18,
"price_to_pay": 11,
"price_with_discount": 18
},
"payment_method": "point_of_sale",
"checkout": {
"method": "delivery",
"date": "2019-01-31",
"time": "12:00",
"end_time": "12:00",
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE"
},
"notes": "..."
},
"shop": {
"id": 14,
"name": "Felton Jenkins",
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE"
}
},
"created_at": "2019-01-31 12:00:00",
"payment_status": "pending",
"products": [
[],
[],
[]
]
}
When returned in a response.
{
"id": 11,
"status": "PENDING",
"valid": true,
"order_nr": 17,
"prices": {
"price": 19,
"discount": 10,
"warranty": 11,
"delivery_cost": 12,
"invoice_cost": 12,
"sms_cost": 14,
"transaction_cost": 10,
"price_to_pay": 11,
"price_with_discount": 17
},
"payment_method": "point_of_sale",
"checkout": {
"method": "delivery",
"date": "2019-01-31",
"time": "12:00",
"end_time": "12:00",
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE"
},
"notes": "..."
},
"shop": {
"id": 18,
"name": "Reuben Jerde",
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE",
"position": {
"latitude": 1.54361,
"longitude": 0.45645
}
}
},
"created_at": "2019-01-31 12:00:00",
"payment_status": "pending",
"products": [
{
"amount": 11,
"persons": 16,
"gram": 15,
"comment": "...",
"product": {
"id": 13,
"name": "...",
"images": [
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
}
],
"price_type": "PER_UNIT",
"target_price": true,
"price": 10
},
"product_price": {
"id": 18,
"name": "...",
"price": 18
},
"calculated_prices": {
"unit_price": 15,
"price": 18
},
"discount_prices": {
"unit_price": 10,
"price": 18
},
"options": [
{
"id": 14,
"name": "...",
"price_change": 11,
"optionset": {
"id": 17,
"name": "...",
"allow_attachment": false
}
},
{
"id": 11,
"name": "...",
"price_change": 11,
"optionset": {
"id": 11,
"name": "...",
"allow_attachment": true
}
},
{
"id": 13,
"name": "...",
"price_change": 13,
"optionset": {
"id": 18,
"name": "...",
"allow_attachment": false
}
}
],
"uploads": [
{
"upload": {
"id": 17,
"url": "https://example.com"
},
"optionset_id": 19
},
{
"upload": {
"id": 13,
"url": "https://example.com"
},
"optionset_id": 13
},
{
"upload": {
"id": 18,
"url": "https://example.com"
},
"optionset_id": 10
}
],
"code": "..."
},
{
"amount": 12,
"persons": 17,
"gram": 14,
"comment": "...",
"product": {
"id": 18,
"name": "...",
"images": [
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
}
],
"price_type": "PER_UNIT",
"target_price": true,
"price": 13
},
"product_price": {
"id": 14,
"name": "...",
"price": 16
},
"calculated_prices": {
"unit_price": 19,
"price": 17
},
"discount_prices": {
"unit_price": 15,
"price": 17
},
"options": [
{
"id": 18,
"name": "...",
"price_change": 10,
"optionset": {
"id": 13,
"name": "...",
"allow_attachment": true
}
},
{
"id": 17,
"name": "...",
"price_change": 16,
"optionset": {
"id": 13,
"name": "...",
"allow_attachment": true
}
},
{
"id": 10,
"name": "...",
"price_change": 18,
"optionset": {
"id": 15,
"name": "...",
"allow_attachment": true
}
}
],
"uploads": [
{
"upload": {
"id": 13,
"url": "https://example.com"
},
"optionset_id": 11
},
{
"upload": {
"id": 11,
"url": "https://example.com"
},
"optionset_id": 13
},
{
"upload": {
"id": 10,
"url": "https://example.com"
},
"optionset_id": 19
}
],
"code": "..."
},
{
"amount": 17,
"persons": 15,
"gram": 12,
"comment": "...",
"product": {
"id": 12,
"name": "...",
"images": [
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": true
},
{
"resolutions": [
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
},
{
"src": "https://example.com",
"width": 600,
"height": 350
}
],
"white_background": false
}
],
"price_type": "PER_UNIT",
"target_price": false,
"price": 11
},
"product_price": {
"id": 15,
"name": "...",
"price": 17
},
"calculated_prices": {
"unit_price": 12,
"price": 13
},
"discount_prices": {
"unit_price": 11,
"price": 17
},
"options": [
{
"id": 16,
"name": "...",
"price_change": 16,
"optionset": {
"id": 14,
"name": "...",
"allow_attachment": false
}
},
{
"id": 16,
"name": "...",
"price_change": 15,
"optionset": {
"id": 13,
"name": "...",
"allow_attachment": true
}
},
{
"id": 18,
"name": "...",
"price_change": 14,
"optionset": {
"id": 17,
"name": "...",
"allow_attachment": true
}
}
],
"uploads": [
{
"upload": {
"id": 10,
"url": "https://example.com"
},
"optionset_id": 19
},
{
"upload": {
"id": 16,
"url": "https://example.com"
},
"optionset_id": 11
},
{
"upload": {
"id": 17,
"url": "https://example.com"
},
"optionset_id": 10
}
],
"code": "..."
}
]
}