Force a manual update of an order's payment status

POST /orders/@id/exchange

Request

Authentication

This endpoint requires authentication.

Header Value
Authorization Set the value to Bearer + + access_token

URL parameters

Replace the @ keywords in the URL with their corresponding value.

A dictionary with fields

Field Type Description
id Int An integer value

Example request 1 Valid order id

POST /orders/1187/exchange HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer 56d867424d5b1538e57bcd7a88c1285ff05da501f813ab338f7fe1cc92f67ac826328ab328408b748e484d51cb3f4ca46a2d08d149c05069d043f5d68a35dd9957e0f2b08ea6c53503317c5982e03806730a22c297f42768d29f1f9084d49eddd47f7f84
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5

Response

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', 'cartes_bancaires', 'paypal', 'eps_uberweisung', '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'
checkout OrderCheckout
shop Shop.simple
created_at Timestamp Time when the order was created, measured in the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT).
joyn Joyn? Nullable. Contains the amount of points that can get saved with Joyn + a link to collect the points.
payment_status String? Nullable. String enumarion of 'pending', 'canceled', 'timeout', 'declined', 'refunded', 'paid'
products [CartItem.order] Array of CartItem.order
currency Currency 3 letter ISO 4217 currency name (string)

Example response 1 Valid order id

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 7964

{
    "id": 1187,
    "status": "HAS_READ",
    "valid": true,
    "order_nr": 12,
    "prices": {
        "price": {
            "value": 12766,
            "currency": "EUR"
        },
        "discount": {
            "value": 0,
            "currency": "EUR"
        },
        "warranty": {
            "value": 0,
            "currency": "EUR"
        },
        "delivery_cost": {
            "value": 0,
            "currency": "EUR"
        },
        "invoice_cost": {
            "value": 0,
            "currency": "EUR"
        },
        "sms_cost": {
            "value": 0,
            "currency": "EUR"
        },
        "transaction_cost": {
            "value": 0,
            "currency": "EUR"
        },
        "price_to_pay": {
            "value": 12766,
            "currency": "EUR"
        }
    },
    "payment_method": "giropay",
    "checkout": {
        "method": "latch",
        "date": "2023-11-10",
        "time": "03:51",
        "latch_id": 356,
        "name": "Chiara Janssen",
        "address": {
            "street": "Remybaan",
            "nr": "70",
            "zipcode": "5362",
            "city": "Beringen",
            "country": "BE"
        }
    },
    "created_at": 1618995675,
    "shop": {
        "id": 2895,
        "name": "The Grateful Bread",
        "address": {
            "street": "Verhaeghelaan",
            "nr": "31",
            "zipcode": "5190",
            "city": "Sint-Truiden",
            "country": "BE",
            "position": {
                "latitude": 51.260197,
                "longitude": 4.402771
            }
        },
        "allow_comments": false,
        "currency": "EUR"
    },
    "payment_status": null,
    "joyn": null,
    "currency": "EUR",
    "products": [
        {
            "persons": 0,
            "amount": 1,
            "gram": 100,
            "comment": "",
            "product": {
                "id": 6764,
                "name": "Authentiek bruin pistolet",
                "price": {
                    "value": 1446,
                    "currency": "EUR"
                },
                "images": [],
                "price_type": "PER_KILOGRAM",
                "target_price": false
            },
            "options": [
                {
                    "option": {
                        "id": 27811,
                        "name": "Yes",
                        "price_change": {
                            "value": 978,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 7916,
                            "name": "Do you want your bread sliced?",
                            "code": null
                        }
                    },
                    "upload": null
                },
                {
                    "option": {
                        "id": 27820,
                        "name": "No",
                        "price_change": {
                            "value": 131,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 7918,
                            "name": "Do you want your bread sliced?",
                            "code": null
                        }
                    },
                    "upload": null
                }
            ],
            "product_price": null,
            "calculated_prices": {
                "unit_price": {
                    "value": 1446,
                    "currency": "EUR"
                },
                "price": {
                    "value": 1254,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        },
        {
            "persons": 0,
            "amount": 1,
            "gram": 0,
            "comment": "",
            "product": {
                "id": 6767,
                "name": "Boerenpist bruin",
                "price": {
                    "value": 684,
                    "currency": "EUR"
                },
                "images": [],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [
                {
                    "option": {
                        "id": 27835,
                        "name": "No thank you",
                        "price_change": {
                            "value": 31,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 7922,
                            "name": "Do you want a bag?",
                            "code": null
                        }
                    },
                    "upload": null
                },
                {
                    "option": {
                        "id": 27839,
                        "name": "No",
                        "price_change": {
                            "value": 8,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 7924,
                            "name": "Do you want a picture on your cake?",
                            "code": null
                        }
                    },
                    "upload": null
                }
            ],
            "product_price": null,
            "calculated_prices": {
                "unit_price": {
                    "value": 723,
                    "currency": "EUR"
                },
                "price": {
                    "value": 723,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        },
        {
            "persons": 0,
            "amount": 1,
            "gram": 0,
            "comment": "",
            "product": {
                "id": 6765,
                "name": "Choco strik",
                "price": {
                    "value": 9811,
                    "currency": "EUR"
                },
                "images": [],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [
                {
                    "option": {
                        "id": 27825,
                        "name": "Yes",
                        "price_change": {
                            "value": 978,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 7920,
                            "name": "Please select an option",
                            "code": null
                        }
                    },
                    "upload": null
                }
            ],
            "product_price": null,
            "calculated_prices": {
                "unit_price": {
                    "value": 10789,
                    "currency": "EUR"
                },
                "price": {
                    "value": 10789,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ]
}
Version update available Please adjust your integration to the latest stable version (1.5.2)
1.5.0 stable