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

POST /orders/18/exchange HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.1.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', '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'
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

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

{
    "id": 14,
    "status": "PENDING",
    "valid": false,
    "order_nr": 17,
    "prices": {
        "price": 10,
        "discount": 12,
        "warranty": 18,
        "delivery_cost": 17,
        "invoice_cost": 14,
        "sms_cost": 10,
        "transaction_cost": 14,
        "price_to_pay": 19,
        "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": "...",
        "name": "...",
        "latch_id": 19
    },
    "shop": {
        "id": 17,
        "name": "Eleonore Mante II",
        "address": {
            "street": "Sint-Denijslaan",
            "nr": "96",
            "zipcode": "9000",
            "city": "Gent",
            "country": "BE",
            "position": {
                "latitude": 1.54361,
                "longitude": 0.45645
            }
        },
        "currency": "EUR"
    },
    "created_at": 1657086085,
    "joyn": {
        "points": 18,
        "collect_url": "https://example.com",
        "qr_code_url": "https://example.com"
    },
    "payment_status": "pending",
    "products": [
        {
            "amount": 19,
            "persons": 12,
            "gram": 10,
            "comment": "...",
            "product": {
                "id": 14,
                "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": 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
                    },
                    {
                        "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": 12
            },
            "product_price": {
                "id": 15,
                "name": "...",
                "price": 17
            },
            "calculated_prices": {
                "unit_price": 14,
                "price": 10
            },
            "discount_prices": {
                "unit_price": 17,
                "price": 16
            },
            "options": [
                {
                    "id": 17,
                    "name": "...",
                    "price_change": 18,
                    "optionset": {
                        "id": 19,
                        "name": "...",
                        "allow_attachment": false
                    }
                },
                {
                    "id": 13,
                    "name": "...",
                    "price_change": 11,
                    "optionset": {
                        "id": 18,
                        "name": "...",
                        "allow_attachment": true
                    }
                },
                {
                    "id": 14,
                    "name": "...",
                    "price_change": 14,
                    "optionset": {
                        "id": 13,
                        "name": "...",
                        "allow_attachment": true
                    }
                }
            ],
            "uploads": [
                {
                    "upload": {
                        "id": 18,
                        "url": "https://example.com"
                    },
                    "optionset_id": 17
                },
                {
                    "upload": {
                        "id": 16,
                        "url": "https://example.com"
                    },
                    "optionset_id": 16
                },
                {
                    "upload": {
                        "id": 16,
                        "url": "https://example.com"
                    },
                    "optionset_id": 14
                }
            ],
            "code": "..."
        },
        {
            "amount": 15,
            "persons": 12,
            "gram": 13,
            "comment": "...",
            "product": {
                "id": 19,
                "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": 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
                    },
                    {
                        "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
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": true,
                "price": 12
            },
            "product_price": {
                "id": 15,
                "name": "...",
                "price": 16
            },
            "calculated_prices": {
                "unit_price": 18,
                "price": 17
            },
            "discount_prices": {
                "unit_price": 19,
                "price": 19
            },
            "options": [
                {
                    "id": 13,
                    "name": "...",
                    "price_change": 12,
                    "optionset": {
                        "id": 16,
                        "name": "...",
                        "allow_attachment": true
                    }
                },
                {
                    "id": 14,
                    "name": "...",
                    "price_change": 11,
                    "optionset": {
                        "id": 16,
                        "name": "...",
                        "allow_attachment": false
                    }
                },
                {
                    "id": 17,
                    "name": "...",
                    "price_change": 12,
                    "optionset": {
                        "id": 12,
                        "name": "...",
                        "allow_attachment": false
                    }
                }
            ],
            "uploads": [
                {
                    "upload": {
                        "id": 16,
                        "url": "https://example.com"
                    },
                    "optionset_id": 17
                },
                {
                    "upload": {
                        "id": 10,
                        "url": "https://example.com"
                    },
                    "optionset_id": 11
                },
                {
                    "upload": {
                        "id": 19,
                        "url": "https://example.com"
                    },
                    "optionset_id": 16
                }
            ],
            "code": "..."
        },
        {
            "amount": 13,
            "persons": 14,
            "gram": 19,
            "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": true
                    }
                ],
                "price_type": "PER_UNIT",
                "target_price": true,
                "price": 13
            },
            "product_price": {
                "id": 12,
                "name": "...",
                "price": 15
            },
            "calculated_prices": {
                "unit_price": 18,
                "price": 11
            },
            "discount_prices": {
                "unit_price": 11,
                "price": 16
            },
            "options": [
                {
                    "id": 19,
                    "name": "...",
                    "price_change": 14,
                    "optionset": {
                        "id": 15,
                        "name": "...",
                        "allow_attachment": false
                    }
                },
                {
                    "id": 10,
                    "name": "...",
                    "price_change": 12,
                    "optionset": {
                        "id": 12,
                        "name": "...",
                        "allow_attachment": false
                    }
                },
                {
                    "id": 18,
                    "name": "...",
                    "price_change": 19,
                    "optionset": {
                        "id": 16,
                        "name": "...",
                        "allow_attachment": false
                    }
                }
            ],
            "uploads": [
                {
                    "upload": {
                        "id": 12,
                        "url": "https://example.com"
                    },
                    "optionset_id": 15
                },
                {
                    "upload": {
                        "id": 18,
                        "url": "https://example.com"
                    },
                    "optionset_id": 10
                },
                {
                    "upload": {
                        "id": 19,
                        "url": "https://example.com"
                    },
                    "optionset_id": 13
                }
            ],
            "code": "..."
        }
    ],
    "currency": "EUR"
}
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.1.0 stable