Download OpenAPI specification:
Public WordPress API Endpoints by OBS
The authentication is realized with an additional WordPress user that has a specific user role, only allowing it to access certain endpoints, no other WordPress access (you need the matching OBS plugin to provide that user role). To authenticate with the API, you need to create an Application Password for that user as username/password is not allowed for WordPress API access. Use the username and Application Password with BasicAuth
Get all order numbers of the last 30 days of orders that were already transferred to the middleware (done every 2 minutes).
| newer_than | string <date-time> Filter the orders (of the last 30 days) to be newer than the passed ISO 8601 / RFC 3339 timestamp |
[- "1698243392.125004871",
- "1697624864.125008737",
- "1697549911.125007887"
]Only returns orders with status = 2
| order_number required | string (Order_Number) [0-9]{10}\.[0-9]{8,9} Example: 1639331260.125003824 (Required) The order number |
{- "order_number": "1697624864.125008737",
- "shop_id": 125,
- "erp_order_number": "",
- "status": 1,
- "type": 0,
- "products": [
- {
- "id": "18871",
- "item_wrapper_id": "101231",
- "amount": 3,
- "name": "Nices Produkt 1",
- "price": 194.15,
- "price_currency": "EUR",
- "voucher_absolute_reduction": 19.42,
- "tax_percentage": 19,
- "unit_amount": 1,
- "unit_type": "kg",
- "unit_price_per_unit": 12,
- "weight": 2.5,
- "weight_unit": "kg",
- "brand": "KTM",
- "category_path": "bekleidung/accessoires/fan-artikel",
- "delivery_date_string": "21.12.2021 - 25.12.2021",
- "variant_values_string": "Farbe: blau, Größe: XL",
- "item_number_main": "76105979670",
- "item_numbers": "76105979670, 76105979570",
- "gtin": "string",
- "markings": [ ],
- "hazardous_materials": {
- "pictograms": [
- "GHS01"
], - "signal_word": "Danger",
- "statements": [
- [
- "H200",
- "H300+H310",
- "H441",
- "EUH 006",
- "EUH 451"
]
]
}, - "language": "de",
- "type": "product",
- "url": "string",
- "shipping_method_id": [
- 0
]
}
], - "customer_data": {
- "invoice_address": {
- "firstname": "Vorname",
- "lastname": "Nachname",
- "company_name": "CSB",
- "street": "Teststraße 123",
- "address_line_2": "Hinterhof 2",
- "city": "Teststadt",
- "zip_code": "23422",
- "country_code": "DE",
- "vat_id": "123456789",
- "vat_id_prefix": "DE",
- "vat_verification_id": "string"
}, - "email_address": "jan.weiss@one-box.de",
- "phone_number": "012334534563",
- "use_extra_invoice_address": true,
- "advertising": {
- "email": false,
- "telephone": false,
- "post": false,
- "sms": "false"
}
}, - "shipping": {
- "shipping_address": {
- "firstname": "Vorname",
- "lastname": "Nachname",
- "company_name": "CSB",
- "street": "Teststraße 123",
- "address_line_2": "Hinterhof 2",
- "city": "Teststadt",
- "zip_code": "23422",
- "country_code": "DE"
}, - "send_to_parcel_locker": true,
- "shipping_sets": [
- {
- "shipping_set_id": "string",
- "shipping_id": 9,
- "payment_id": 0,
- "status": 1,
- "type": 0,
- "name": "Abholung",
- "description": "Abholung direkt im CSB-Schuppen",
- "price": 6.99,
- "free_from": 0,
- "product_ids": [
- "18871"
], - "product_amounts": {
- "2345": 3,
- "12345": 1
}, - "products_total_price": 194.15
}
], - "message": "Bitte schnell liefern!",
- "consent_use_telephone_number_order_updates": true,
- "consent_pass_on_email_delivery_updates": true
}, - "payment": {
- "id": 21,
- "type": 4,
- "name": "PayPal",
- "description": "mit PayPal bezahlen",
- "price": 0,
- "external_payment_response": { },
- "external_payment_response_error": { }
}, - "price": {
- "products": 126.99,
- "shipping": 6.99,
- "payment_method": 0,
- "voucher": {
- "voucher_data": {
- "id": 1077,
- "description": "Geschenkgutschein - 10€",
- "value_string": "- 10,00€",
- "voucher_percent": 0,
- "voucher_absolute": 10,
- "amount_valid_from": 10,
- "voucher_code": "WHN10"
}, - "voucher_reduction": 100,
- "shipping_reduction": 3.5,
- "product_tax_reduction": 19
}, - "sum_tax": 19,
- "sum_total": 100,
- "is_test_purchase": true
}, - "erp_customer_id": 0,
- "customer_id": "",
- "zip": "12345",
- "order_created": "2021-12-12 19:52:03",
- "shipping_handler_details": [
- {
- "name": "Versand2",
- "description": "Versand per Fuchs",
- "tracking_number": "Fuchs123",
- "tracking_url": "fuchsversand.org/tracking/Fuchs123",
- "product_ids": [
- "123234",
- "1234"
], - "product_amounts": {
- "1234": 1,
- "123234": 2
}
}, - {
- "name": "Abholung",
- "description": "Abhulung bei CSB",
- "product_ids": [
- "2342"
]
}
]
}Replaces the current value, to add details, first get the current value
| order_number required | string (Order_Number) [0-9]{10}\.[0-9]{8,9} Example: 1639331260.125003824 (Required) The order number |
Array of objects (Shipping_Handler_Details) | |||||||||||||||||
Array
| |||||||||||||||||
{- "shipping_handler_details": [
- {
- "name": "DHL Paketversand",
- "description": "Schnellerster Versand",
- "tracking_number": "Fuchs123",
- "tracking_url": "fuchsversand.org/tracking/Fuchs123",
- "product_ids": [
- "18871",
- "18571",
- "234871"
], - "product_amounts": {
- "18571": 3,
- "18871": 1,
- "234871": 1
}, - "timestamp_change": "2022-12-10 19:52:03",
- "expected_delivery": "2022-12-12 19:52:03"
}
]
}Retrieves the shipping handler details of the order, adds the new set to it, and saves it back to the database.
| order_number required | string (Order_Number) [0-9]{10}\.[0-9]{8,9} Example: 1639331260.125003824 (Required) The order number |
object (Shipping_Handler_Details) Real shipping/ delivery details entered by ERP or external: Tracking data, parcel info, etc. Empty when order created | |||||||||||||||||
| |||||||||||||||||
{- "shipping_handler_details": {
- "name": "DHL Paketversand",
- "description": "Schnellerster Versand",
- "tracking_number": "Fuchs123",
- "tracking_url": "fuchsversand.org/tracking/Fuchs123",
- "product_ids": [
- "18871",
- "18571",
- "234871"
], - "product_amounts": {
- "18571": 3,
- "18871": 1,
- "234871": 1
}, - "timestamp_change": "2022-12-10 19:52:03",
- "expected_delivery": "2022-12-12 19:52:03"
}
}Returns price, tax, stock and availability information for the requested MPNs of a single brand. Used to feed the SPF spare-parts catalogue. The response is keyed by MPN; MPNs without a matching product are omitted. At most 100 MPNs are processed per request.
| mpns required | Array of strings [ 1 .. 100 ] items The MPNs (manufacturer part numbers) of the products to look up. Duplicate values are ignored. At most 100 MPNs are processed per request. |
| brand required | string non-empty The brand the requested products belong to |
{- "mpns": [
- "93505088000",
- "93503001000",
- "61430018000"
], - "brand": "KTM"
}{- "93503001000": {
- "price": 1147.05,
- "tax": 19,
- "stock_amount": 0,
- "reorderable": true,
- "item_id": "12312",
- "product_id": "100013478",
- "action": "add_product",
- "availability": "reorderable"
}, - "93505088000": {
- "price": 10.6,
- "tax": 19,
- "stock_amount": 12,
- "reorderable": false,
- "item_id": "323423",
- "product_id": "100013465",
- "action": "add_product",
- "availability": "in_stock"
}, - "61430018000": {
- "price": 1088.15,
- "tax": 19,
- "stock_amount": 0,
- "reorderable": false,
- "item_id": "34534532",
- "product_id": "100028239",
- "action": "request_product",
- "availability": "not_available"
}
}