POST /checkout/order
This endpoint requires authentication.
Header | Value |
---|---|
Authorization | Set the value to Bearer + + access_token |
Pass the following properties via application/json or form encoding in the body of the request.
A dictionary with fields
Field | Type | Description |
---|---|---|
cart | [CartItem.cart] | Array of CartItem.cart |
checkout | Checkout.Checkout | |
payment_method | String | String enumarion of 'point_of_sale', 'paid_in_shop', 'bank_transfer', 'ideal', 'bancontact', 'sofort', 'giropay', 'creditcard', 'cartes_bancaires', 'paypal', 'eps_uberweisung', 'apple_pay', 'google_pay', 'payconiq', 'monizze', 'edenred', 'webpay', 'credomatic', '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' |
return_url | URL | An URL field starting with http:// or https:// |
POST /checkout/order HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.6.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 3667
{
"cart": [
{
"amount": 17,
"persons": 12,
"gram": 10,
"comment": "...",
"product_id": 11,
"product_price_id": 12,
"shop_id": 18,
"options": [
{
"option_id": 16,
"upload_id": 15
},
{
"option_id": 10,
"upload_id": 10
},
{
"option_id": 11,
"upload_id": 12
}
]
},
{
"amount": 14,
"persons": 10,
"gram": 15,
"comment": "...",
"product_id": 11,
"product_price_id": 16,
"shop_id": 18,
"options": [
{
"option_id": 12,
"upload_id": 17
},
{
"option_id": 14,
"upload_id": 15
},
{
"option_id": 16,
"upload_id": 17
}
]
},
{
"amount": 15,
"persons": 18,
"gram": 15,
"comment": "...",
"product_id": 15,
"product_price_id": 13,
"shop_id": 19,
"options": [
{
"option_id": 14,
"upload_id": 19
},
{
"option_id": 16,
"upload_id": 12
},
{
"option_id": 15,
"upload_id": 19
}
]
}
],
"checkout": {
"method": "delivery",
"delivery": {
"date": "2019-01-31",
"time": "12:00",
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE"
},
"notes": "...",
"end_time": "12:00"
},
"takeout": {
"shops": {
"...": {
"id": 10,
"date": "2019-01-31",
"time": "12:00",
"end_time": "12:00"
}
}
},
"latch": {
"latch_id": 19,
"telephone": "+32 475 00 00 00",
"date": "2019-01-31",
"time": "12:00",
"notification_method": "email"
},
"isop": {
"origin": "in-store",
"customer_id": 12,
"employee_id": 16
},
"warranty": {
"bank": "ING. Bank"
},
"invoice": {
"company": {
"name": "...",
"vat": "BE0123456789",
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE"
}
}
},
"config": {
"askInvoice": false,
"askIsop": true
},
"coupons": [
{
"code": "..."
},
{
"code": "..."
},
{
"code": "..."
}
],
"note_from_customer": "..."
},
"payment_method": "point_of_sale",
"return_url": "https://example.com"
}
A dictionary with fields
Field | Type | Description |
---|---|---|
order_group | OrderGroup | |
payment_url | URL? | Nullable. An URL field starting with http:// or https:// |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 11919
{
"order_group": {
"id": 13,
"orders": [
{
"id": 13,
"status": "PENDING",
"valid": true,
"order_nr": 17,
"prices": {
"price": {
"value": 13,
"currency": "EUR"
},
"discount": {
"value": 17,
"currency": "EUR"
},
"warranty": {
"value": 15,
"currency": "EUR"
},
"delivery_cost": {
"value": 11,
"currency": "EUR"
},
"invoice_cost": {
"value": 12,
"currency": "EUR"
},
"sms_cost": {
"value": 13,
"currency": "EUR"
},
"transaction_cost": {
"value": 10,
"currency": "EUR"
},
"price_to_pay": {
"value": 14,
"currency": "EUR"
},
"price_with_discount": {
"value": 15,
"currency": "EUR"
}
},
"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": "...",
"name": "...",
"latch_id": 14,
"comment": "..."
},
"shop": {
"id": 13,
"name": "Madelynn Kuhn",
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE",
"position": {
"latitude": 1.54361,
"longitude": 0.45645
}
},
"allow_comments": false,
"url": "...",
"allow_order_comments": true,
"allow_product_comments": true,
"allow_order_messages": true,
"allow_orders": false,
"currency": "EUR"
},
"created_at": 1657085986,
"joyn": {
"points": 15,
"collect_url": "https://example.com",
"qr_code_url": "https://example.com"
},
"payment_status": "pending",
"currency": "EUR",
"bank_transfer": {
"reference": "...",
"bank_accounts": [
{
"bank": "ING. Bank",
"number": "BE283578529348"
},
{
"bank": "ING. Bank",
"number": "BE283578529348"
},
{
"bank": "ING. Bank",
"number": "BE283578529348"
}
]
}
},
{
"id": 18,
"status": "PENDING",
"valid": true,
"order_nr": 10,
"prices": {
"price": {
"value": 12,
"currency": "EUR"
},
"discount": {
"value": 10,
"currency": "EUR"
},
"warranty": {
"value": 13,
"currency": "EUR"
},
"delivery_cost": {
"value": 10,
"currency": "EUR"
},
"invoice_cost": {
"value": 12,
"currency": "EUR"
},
"sms_cost": {
"value": 11,
"currency": "EUR"
},
"transaction_cost": {
"value": 15,
"currency": "EUR"
},
"price_to_pay": {
"value": 14,
"currency": "EUR"
},
"price_with_discount": {
"value": 15,
"currency": "EUR"
}
},
"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": "...",
"name": "...",
"latch_id": 19,
"comment": "..."
},
"shop": {
"id": 15,
"name": "Heath Wisozk",
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE",
"position": {
"latitude": 1.54361,
"longitude": 0.45645
}
},
"allow_comments": true,
"url": "...",
"allow_order_comments": true,
"allow_product_comments": false,
"allow_order_messages": false,
"allow_orders": true,
"currency": "EUR"
},
"created_at": 1657085986,
"joyn": {
"points": 12,
"collect_url": "https://example.com",
"qr_code_url": "https://example.com"
},
"payment_status": "pending",
"currency": "EUR",
"bank_transfer": {
"reference": "...",
"bank_accounts": [
{
"bank": "ING. Bank",
"number": "BE283578529348"
},
{
"bank": "ING. Bank",
"number": "BE283578529348"
},
{
"bank": "ING. Bank",
"number": "BE283578529348"
}
]
}
},
{
"id": 15,
"status": "PENDING",
"valid": false,
"order_nr": 15,
"prices": {
"price": {
"value": 19,
"currency": "EUR"
},
"discount": {
"value": 16,
"currency": "EUR"
},
"warranty": {
"value": 12,
"currency": "EUR"
},
"delivery_cost": {
"value": 17,
"currency": "EUR"
},
"invoice_cost": {
"value": 18,
"currency": "EUR"
},
"sms_cost": {
"value": 19,
"currency": "EUR"
},
"transaction_cost": {
"value": 12,
"currency": "EUR"
},
"price_to_pay": {
"value": 16,
"currency": "EUR"
},
"price_with_discount": {
"value": 15,
"currency": "EUR"
}
},
"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": "...",
"name": "...",
"latch_id": 13,
"comment": "..."
},
"shop": {
"id": 15,
"name": "Jacquelyn Nitzsche",
"address": {
"street": "Sint-Denijslaan",
"nr": "96",
"zipcode": "9000",
"city": "Gent",
"country": "BE",
"position": {
"latitude": 1.54361,
"longitude": 0.45645
}
},
"allow_comments": true,
"url": "...",
"allow_order_comments": false,
"allow_product_comments": false,
"allow_order_messages": false,
"allow_orders": false,
"currency": "EUR"
},
"created_at": 1657085986,
"joyn": {
"points": 19,
"collect_url": "https://example.com",
"qr_code_url": "https://example.com"
},
"payment_status": "pending",
"currency": "EUR",
"bank_transfer": {
"reference": "...",
"bank_accounts": [
{
"bank": "ING. Bank",
"number": "BE283578529348"
},
{
"bank": "ING. Bank",
"number": "BE283578529348"
},
{
"bank": "ING. Bank",
"number": "BE283578529348"
}
]
}
}
]
},
"payment_url": "https://example.com"
}