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/48/exchange HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer fa228293ab23f09d01023ae321a839db28273b194387e79817ab8adbd4f429ac360b6694de772ae8ca5cfa32299e01b6f5784fd4290a406dccd82742036eb11a8936549cd17af7cec058866b7f720308fc6aedea96ef282b2b4e98771b81119fd68ce266
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_payment_wall', 'payu_sp_pbl', 'payu_sp_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: 9499

{
    "id": 48,
    "status": "DELETED_BY_SHOP",
    "valid": true,
    "order_nr": 2,
    "prices": {
        "price": {
            "value": 11602,
            "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": 11602,
            "currency": "EUR"
        }
    },
    "payment_method": "payu_brazil_amex",
    "checkout": {
        "method": "delivery",
        "date": "2018-04-03",
        "time": "00:29",
        "end_time": "00:44",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Ghent",
            "country": "BE"
        },
        "notes": null
    },
    "created_at": 1592307620,
    "shop": {
        "id": 128,
        "name": "The Cookie Cook",
        "address": {
            "street": "Guillaumelaan",
            "nr": "46",
            "zipcode": "6717",
            "city": "Geldenaken",
            "country": "BE",
            "position": {
                "latitude": 51.05,
                "longitude": 3.71667
            }
        },
        "allow_comments": true,
        "currency": "EUR"
    },
    "payment_status": null,
    "joyn": null,
    "currency": "EUR",
    "products": [
        {
            "persons": 0,
            "amount": 1,
            "gram": 0,
            "comment": "",
            "product": {
                "id": 338,
                "name": "Zacht zonnepist gv",
                "price": {
                    "value": 1776,
                    "currency": "EUR"
                },
                "images": [],
                "price_type": "PER_UNIT",
                "target_price": false
            },
            "options": [
                {
                    "option": {
                        "id": 1165,
                        "name": "Yes",
                        "price_change": {
                            "value": 75,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 334,
                            "name": "Do you want your bread sliced?",
                            "code": null
                        }
                    },
                    "upload": null
                },
                {
                    "option": {
                        "id": 1170,
                        "name": "No",
                        "price_change": {
                            "value": 399,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 335,
                            "name": "Do you want a picture on your cake?",
                            "code": null
                        }
                    },
                    "upload": null
                },
                {
                    "option": {
                        "id": 1172,
                        "name": "No",
                        "price_change": {
                            "value": 854,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 336,
                            "name": "Do you want your bread sliced?",
                            "code": null
                        }
                    },
                    "upload": null
                }
            ],
            "product_price": null,
            "calculated_prices": {
                "unit_price": {
                    "value": 3104,
                    "currency": "EUR"
                },
                "price": {
                    "value": 3104,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        },
        {
            "persons": 0,
            "amount": 1,
            "gram": 0,
            "comment": "",
            "product": {
                "id": 339,
                "name": "Pistolet wit",
                "price": {
                    "value": 2519,
                    "currency": "EUR"
                },
                "images": [],
                "price_type": "MULTIPLE_CHOICE",
                "target_price": false
            },
            "options": [],
            "product_price": {
                "id": 183,
                "name": "3 persons",
                "price": {
                    "value": 25,
                    "currency": "EUR"
                }
            },
            "calculated_prices": {
                "unit_price": {
                    "value": 25,
                    "currency": "EUR"
                },
                "price": {
                    "value": 25,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        },
        {
            "persons": 1,
            "amount": 1,
            "gram": 0,
            "comment": "",
            "product": {
                "id": 340,
                "name": "Appeltaartje",
                "price": {
                    "value": 6010,
                    "currency": "EUR"
                },
                "images": [],
                "price_type": "PER_PERSON",
                "target_price": false
            },
            "options": [
                {
                    "option": {
                        "id": 1174,
                        "name": "Yes",
                        "price_change": {
                            "value": 715,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 337,
                            "name": "Do you want a bag?",
                            "code": null
                        }
                    },
                    "upload": null
                },
                {
                    "option": {
                        "id": 1175,
                        "name": "No",
                        "price_change": {
                            "value": 332,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 338,
                            "name": "Extra baked?",
                            "code": null
                        }
                    },
                    "upload": null
                },
                {
                    "option": {
                        "id": 1179,
                        "name": "Yes",
                        "price_change": {
                            "value": 1000,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 339,
                            "name": "Do you want a picture on your cake?",
                            "code": null
                        }
                    },
                    "upload": null
                },
                {
                    "option": {
                        "id": 1183,
                        "name": "Yes",
                        "price_change": {
                            "value": 416,
                            "currency": "EUR"
                        },
                        "image": null,
                        "require_image": false,
                        "code": null,
                        "optionset": {
                            "id": 340,
                            "name": "Please select an option",
                            "code": null
                        }
                    },
                    "upload": null
                }
            ],
            "product_price": null,
            "calculated_prices": {
                "unit_price": {
                    "value": 8473,
                    "currency": "EUR"
                },
                "price": {
                    "value": 8473,
                    "currency": "EUR"
                }
            },
            "discount_prices": null,
            "amount_free": 0
        }
    ]
}
1.5.0 stable