Westarp Verlagsservice (2.0)
Dies ist die API des Verlagsportals der Westarp Verlagsservice GmbH. Sie ermöglicht es Kunden, Partnern und Mandanten, ihre eigene Software an das Verlagsportal anzubinden. Hierfür stehen verschiedene Endpunkte zur Verwaltung von Buchtiteln, Bestellungen und Berichten zur Verfügung.
Diese Dokumentation soll einen Einstieg in die Verwendung der API geben und erklären, wie bestimmte Fälle abgedeckt und umgesetzt werden. Links sehen Sie ein Menü, über das Sie jederzeit zum gewünschten Thema der API navigieren können. In der mittleren Spalte finden Sie die jeweilige Erklärung. Rechts finden Sie Beispiele zu Anfragen und deren jeweiligen Antworten.
Die Authentifizierung an der API erfolgt über einen HTTP Bearer Token. Diesen können Sie für Ihren Verlag in unserer Booxboo.de App unter app.booxboo.de generieren. Gehen Sie hierzu bitte in den Bereich Einstellungen → API Schlüssel und erstellen Sie einen neuen API Schlüssel. Achten Sie bitte auch darauf, Ihrem neuen API Schlüssel nur die nötigsten Berechtigungen für Ihre Anwendung zu geben.
Den generierten Token müssen Sie bei jeder Anfrage an die API im Header mitgeben. Hierfür nutzen Sie bitte den HTTP-Header Authorization mit dem Wert Bearer <token>. Der Token ist dann für alle Anfragen an die API gültig, bis Sie ihn in der Booxboo-App löschen.
Bitte achten Sie darauf, dass Sie den API Token nicht öffentlich zugänglich machen. Der Token ist wie ein Passwort und sollte daher auch nicht in öffentlich zugänglichen Repositories oder ähnlichem gespeichert werden!
Als angemeldeter Nutzer an der API der Westarp Verlaggsoftware haben Sie Zugriff auf die Daten entweder eines oder mehrerer Verlage – auch Mandanten genannt. Jeder Verlag hält dabei seine eigenen Buchtitel, Bestellungen, Lieferungen, etc. und wird durch eine Verlags-ID (publisher_id) identifiziert.
Möchten Sie sich eine Liste der neuesten Bestellungen über die API abrufen, kann es daher z.B. hilfreich sein, diese nach der Verlags-ID zu filtern. Hinweise hierzu finden Sie in den entsprechenden Request-Beschreibungen.
Alle Verlage abrufen
Mit dieser Anfrage rufen Sie alle Ihnen zugeordneten Verlage ab.
Authorizations:
Responses
Response samples
- 200
- 401
[- {
- "id": 51,
- "name": "Wundersam Verlag",
- "short": "wundersam",
- "email": "info@wundersam-verlag.de",
- "vlb_user": "wundersam-652",
- "vlb_pass": "624de7eb38",
- "vlb_token": "174ccbd8-ba9e-470e-854f-b72ccdb9aba8",
- "vlb_media_token": "c6799ac9-7916-4392-9065-cffc348629d4",
- "created_at": "2023-08-13T19:00:40.000000Z",
- "updated_at": "2023-08-13T19:00:40.000000Z"
}
]Mit den folgenden Endpunkten haben Sie die Möglichkeit, Ihre Buchtitel abzurufen, anzulegen und zu bearbeiten. Wir empfehlen jedoch, Änderungen an Ihren Buchttieln über die Booxboo-App unter app.booxboo.de vorzunehmen.
Alle Bücher abrufen
Ruft eine Liste aller eingetragenen Bücher ab. Sie können die Liste der Bücher mittels der folgenden Request Parameter filtern, beispielsweise um nur Titel eines bestimmten Verlages abzurufen.
Die Antwort des Servers wird als Pagination ausgegeben. Das bedeutet, es können immer nur 25 Ergebnisse bei einem Request abgerufen werden. Innerhalb der Response finden Sie Seitenzahlen und direkte Links zu den einzelnen Ergebnisseiten.
Authorizations:
query Parameters
| publisher_id | integer Mandanten-ID |
| status | string Enum: "available" "shortage" "out_of_stock" "planned" "nonweb" "discontinued" "blocked" "reprint" "new_edition" "available_without_vlb" "pending" Veröffentlichungs-Lieferstatus |
| author | string Autor (ID oder Name) |
| isbn | string ISBN10 oder ISBN13 – auch ISBN-Teile |
| term | string Suchbegriff (Titel, Untertitel, etc.) |
Responses
Response samples
- 200
- 401
- 422
{- "current_page": 1,
- "data": [
- {
- "id": "78.154",
- "publisher_id": 78,
- "title": "Im Bann des Sternenlichts",
- "isbn10": "0-864209-35-1",
- "isbn13": "978-0-864209-35-2",
- "edition": 1,
- "ean": "9780864209352",
- "authors": [
- "Elias Silber"
], - "status": "available",
- "type": "new_edition",
- "price": 19.95,
- "total_stock": 810,
- "total_reserved": 110,
- "total_available": 700,
- "created_at": "2023-10-01 15:21:48"
}
], - "from": 1,
- "last_page": 1,
- "links": [
- {
- "url": null,
- "label": "« Zurück",
- "active": false
}, - {
- "url": null,
- "label": "Weiter »",
- "active": false
}
], - "next_page_url": null,
- "per_page": 25,
- "prev_page_url": null,
- "to": 1,
- "total": 1
}Buch anlegen
Legt ein neues Buch an.
Authorizations:
Request Body schema: required
Daten des neu anzulegenden Titels
| publisher_id required | integer ID des Verlages, dem der Titel angehört |
| title required | string Der Titel des Buches |
| status required | string Veröffentlichungsstatus Ihres Titels
|
| sub_title | string or null Untertitel |
| short_title | string or null Kurztitel |
| isbn10 | string ISBN10 |
| isbn13 | string ISBN13 |
| ean | string or null EAN (European Article Number) |
| edition | integer or null Auflage |
| published_at | string Veröffentlichungsdatum |
| type | any or null Die Art des Buches |
Array of objects Mitwirkende an dem | |
object Details zu dem Buch | |
| costs | Array of objects |
object | |
Array of objects | |
Array of objects | |
object | |
object | |
object | |
| contracts | Array of objects |
Array of objects |
Responses
Request samples
- Payload
{- "publisher_id": 78,
- "title": "Die verlorenen Träume",
- "isbn10": "0-246810-14-2",
- "isbn13": "978-0-246810-14-5",
- "ean": "9780246810145",
- "published_at": "2023-11-10 08:17:36",
- "status": "available",
- "type": "new_edition",
- "contributors": [
- {
- "contributor_type": "main_author",
- "person_id": 84264,
- "firstname": "Vivian",
- "lastname": "Moon"
}
], - "details": {
- "width": 210,
- "height": 297,
- "weight": 480
}, - "descriptions": {
- "short_description": "Vivian Moon entfaltet eine emotionale Reise durch die Vergangenheit einer jungen Künstlerin. Verlorene Träume werden wiederentdeckt, während die Protagonistin sich selbst neu erfindet."
}, - "prices": [
- {
- "currency": "eur",
- "country": "de",
- "price": 24.95,
- "tax_rate": 7,
- "type": "retail"
}
]
}Response samples
- 200
- 401
{- "id": "string",
- "legacy_id": 0,
- "publisher_id": 0,
- "title": "string",
- "sub_title": "string",
- "short_title": null,
- "isbn10": "string",
- "isbn13": "string",
- "ean": "string",
- "edition": 0,
- "published_at": "2019-08-24T14:15:22Z",
- "status": "shortage",
- "collections": [
- { }
], - "type": "reprint",
- "contributors": [
- {
- "id": 0,
- "contributor_type": "main_author",
- "royalty_fee": 0,
- "royalty_type": "string",
- "royalty_interval": "string",
- "royalty_tax": true,
- "person_id": 0,
- "company": "string",
- "firstname": "string",
- "lastname": "string",
- "alias": null
}
], - "details": {
- "width": 0,
- "height": 0,
- "spine_width": null,
- "cover_width": null,
- "cover_height": null,
- "weight": 0,
- "binding": "string",
- "paper_inner": "string",
- "paper_cover": "string",
- "double_sided": true,
- "coating": "string",
- "headband": null,
- "ribbon": null,
- "wrapper": null,
- "spine": null,
- "pages_total": 0,
- "pages_color": null,
- "color_graphics": 0,
- "color_photos": 0,
- "color_maps": 0,
- "color_figures": 0,
- "black_graphics": 0,
- "black_photos": 0,
- "black_maps": 0,
- "black_figures": null,
- "extra_media": null,
- "ebook_format": null,
- "ebook_size": null,
- "total_characters": null,
- "total_standard_pages": null,
- "scripted_at": null,
- "printed_at": null,
- "abandoned_at": null,
- "created_at": null,
- "updated_at": "string"
}, - "costs": [
- { }
], - "descriptions": {
- "short_description": "string",
- "long_description": "string",
- "author_description": "string",
- "marketing_description": "string",
- "audience_description": null,
- "customer_group_description": null,
- "ageclass_description": null,
- "notes": "string"
}, - "files": [
- {
- "id": 0,
- "name": "string",
- "link": "string",
- "type": "string",
- "mime": "string",
- "size": 0,
- "url": "string"
}
], - "prices": [
- {
- "id": 0,
- "book_id": 0,
- "currency": "string",
- "country": "string",
- "price": 0,
- "price_net": 0,
- "tax_rate": 0,
- "type": "string",
- "valid_until": null,
- "updated_at": "string"
}
], - "current_retail_price": {
- "id": 0,
- "book_id": 0,
- "currency": "string",
- "country": "string",
- "type": "string",
- "price": 0,
- "tax_rate": 0,
- "valid_until": null,
- "created_at": "string",
- "updated_at": "string"
}, - "royalty": {
- "id": 0,
- "fee": null,
- "type": null,
- "interval": null,
- "tax": 0,
- "contract_formation": null,
- "contract_length": null,
- "contract_cancelation_period": null,
- "contract_canceled_at": null
}, - "vlb": {
- "id": 0,
- "reference": "string",
- "wgs_index": 0,
- "wgs_group": 0,
- "customs_tariff_number": "string",
- "production_country": "string",
- "classifications": [
- "string"
]
}, - "contracts": [
- { }
], - "stocks": [
- {
- "id": 0,
- "storage_id": 0,
- "storage_name": "string",
- "storage_place": "string",
- "quantity": 0,
- "reserved": 0,
- "available": 0
}
]
}Buch abrufen
Mit dieser Anfrage rufen Sie alle Details zu einem bestimmten Titel ab.
Authorizations:
path Parameters
| bookId required | string Die ID des Buches |
Responses
Response samples
- 200
- 401
{- "id": "string",
- "legacy_id": 0,
- "publisher_id": 0,
- "title": "string",
- "sub_title": "string",
- "short_title": null,
- "isbn10": "string",
- "isbn13": "string",
- "ean": "string",
- "edition": 0,
- "published_at": "2019-08-24T14:15:22Z",
- "status": "shortage",
- "collections": [
- { }
], - "type": "reprint",
- "contributors": [
- {
- "id": 0,
- "contributor_type": "main_author",
- "royalty_fee": 0,
- "royalty_type": "string",
- "royalty_interval": "string",
- "royalty_tax": true,
- "person_id": 0,
- "company": "string",
- "firstname": "string",
- "lastname": "string",
- "alias": null
}
], - "details": {
- "width": 0,
- "height": 0,
- "spine_width": null,
- "cover_width": null,
- "cover_height": null,
- "weight": 0,
- "binding": "string",
- "paper_inner": "string",
- "paper_cover": "string",
- "double_sided": true,
- "coating": "string",
- "headband": null,
- "ribbon": null,
- "wrapper": null,
- "spine": null,
- "pages_total": 0,
- "pages_color": null,
- "color_graphics": 0,
- "color_photos": 0,
- "color_maps": 0,
- "color_figures": 0,
- "black_graphics": 0,
- "black_photos": 0,
- "black_maps": 0,
- "black_figures": null,
- "extra_media": null,
- "ebook_format": null,
- "ebook_size": null,
- "total_characters": null,
- "total_standard_pages": null,
- "scripted_at": null,
- "printed_at": null,
- "abandoned_at": null,
- "created_at": null,
- "updated_at": "string"
}, - "costs": [
- { }
], - "descriptions": {
- "short_description": "string",
- "long_description": "string",
- "author_description": "string",
- "marketing_description": "string",
- "audience_description": null,
- "customer_group_description": null,
- "ageclass_description": null,
- "notes": "string"
}, - "files": [
- {
- "id": 0,
- "name": "string",
- "link": "string",
- "type": "string",
- "mime": "string",
- "size": 0,
- "url": "string"
}
], - "prices": [
- {
- "id": 0,
- "book_id": 0,
- "currency": "string",
- "country": "string",
- "price": 0,
- "price_net": 0,
- "tax_rate": 0,
- "type": "string",
- "valid_until": null,
- "updated_at": "string"
}
], - "current_retail_price": {
- "id": 0,
- "book_id": 0,
- "currency": "string",
- "country": "string",
- "type": "string",
- "price": 0,
- "tax_rate": 0,
- "valid_until": null,
- "created_at": "string",
- "updated_at": "string"
}, - "royalty": {
- "id": 0,
- "fee": null,
- "type": null,
- "interval": null,
- "tax": 0,
- "contract_formation": null,
- "contract_length": null,
- "contract_cancelation_period": null,
- "contract_canceled_at": null
}, - "vlb": {
- "id": 0,
- "reference": "string",
- "wgs_index": 0,
- "wgs_group": 0,
- "customs_tariff_number": "string",
- "production_country": "string",
- "classifications": [
- "string"
]
}, - "contracts": [
- { }
], - "stocks": [
- {
- "id": 0,
- "storage_id": 0,
- "storage_name": "string",
- "storage_place": "string",
- "quantity": 0,
- "reserved": 0,
- "available": 0
}
]
}Buch löschen
Löscht ein Buch.
Achtung: Diese Anfrage sollte nur mit äußerster Vorsicht ausgeführt werden, da sie zur sofortigen Stornierung aller Bestellungen, sowie zur Entlistung in Shops, bei Amazon und den Barsortimenten führt. Bitte führen Sie diese Anfrage daher nur aus, wenn Sie genau wissen, was Sie tun.
Authorizations:
path Parameters
| bookId required | string Die ID des Buches |
Responses
Response samples
- 401
{- "message": "Unauthenticated."
}Buch aktualisieren
Aktualisiert die Daten eines Titels.
Authorizations:
path Parameters
| bookId required | string Die ID des Buches |
Request Body schema: application/jsonrequired
Updated Book information.
| id | string Eindeutige Buch-ID |
| legacy_id | integer or null Deprecated ID innerhalb des Legacy-Systems (nur intern verwendet) |
| publisher_id | integer ID des zugehörigen Verlages |
| title | string Titel des Buches |
| sub_title | string Untertitel |
| short_title | any or null Kurztitel |
| isbn10 | string ISBN-10 |
| isbn13 | string ISBN-13 |
| ean | string EAN (European Article Number) |
| edition | integer Auflage |
| published_at | string <date-time> Veröffentlichungsdatum |
| status | string Enum: "shortage" "out_of_stock" "planned" "non_web" "discontinued" "blocked" "available" "reprint" "new_edition" "available_without_vlb" "pending" Veröffentlichungsstatus Ihres Titels
planned: 'in Planung - interne Daten' non_web: 'nonweb - interne Daten' discontinued: 'erscheint nicht - Titel eingestellt' blocked: 'Auslieferung gestoppt - Titel gesperrt' available: 'lieferbar' reprint: 'Nachdruck ohne Termin - vorgemerkt' new_edition: 'vergriffen --> siehe Neuauflage' available_without_vlb: 'Lieferbar - ohne VLB-Eintrag' pending: 'in Vorbereitung - Bestellung notiert' |
| collections | Array of objects Buchreihen |
| type | string or null Enum: "reprint" "print_on_demand" "first_edition" "new_edition" "revised_edition" "non_book" "ebook" "dvd" "video" Die Art des Buches |
Array of objects Mitwirkende des Titels | |
object | |
| costs | Array of objects |
object | |
Array of objects | |
Array of objects | |
object | |
object | |
object | |
| contracts | Array of objects |
Array of objects |
Responses
Request samples
- Payload
{- "id": "string",
- "legacy_id": 0,
- "publisher_id": 0,
- "title": "string",
- "sub_title": "string",
- "short_title": null,
- "isbn10": "string",
- "isbn13": "string",
- "ean": "string",
- "edition": 0,
- "published_at": "2019-08-24T14:15:22Z",
- "status": "shortage",
- "collections": [
- { }
], - "type": "reprint",
- "contributors": [
- {
- "id": 0,
- "contributor_type": "main_author",
- "royalty_fee": 0,
- "royalty_type": "string",
- "royalty_interval": "string",
- "royalty_tax": true,
- "person_id": 0,
- "company": "string",
- "firstname": "string",
- "lastname": "string",
- "alias": null
}
], - "details": {
- "width": 0,
- "height": 0,
- "spine_width": null,
- "cover_width": null,
- "cover_height": null,
- "weight": 0,
- "binding": "string",
- "paper_inner": "string",
- "paper_cover": "string",
- "double_sided": true,
- "coating": "string",
- "headband": null,
- "ribbon": null,
- "wrapper": null,
- "spine": null,
- "pages_total": 0,
- "pages_color": null,
- "color_graphics": 0,
- "color_photos": 0,
- "color_maps": 0,
- "color_figures": 0,
- "black_graphics": 0,
- "black_photos": 0,
- "black_maps": 0,
- "black_figures": null,
- "extra_media": null,
- "ebook_format": null,
- "ebook_size": null,
- "total_characters": null,
- "total_standard_pages": null,
- "scripted_at": null,
- "printed_at": null,
- "abandoned_at": null,
- "created_at": null,
- "updated_at": "string"
}, - "costs": [
- { }
], - "descriptions": {
- "short_description": "string",
- "long_description": "string",
- "author_description": "string",
- "marketing_description": "string",
- "audience_description": null,
- "customer_group_description": null,
- "ageclass_description": null,
- "notes": "string"
}, - "files": [
- {
- "id": 0,
- "name": "string",
- "link": "string",
- "type": "string",
- "mime": "string",
- "size": 0,
- "url": "string"
}
], - "prices": [
- {
- "id": 0,
- "book_id": 0,
- "currency": "string",
- "country": "string",
- "price": 0,
- "price_net": 0,
- "tax_rate": 0,
- "type": "string",
- "valid_until": null,
- "updated_at": "string"
}
], - "current_retail_price": {
- "id": 0,
- "book_id": 0,
- "currency": "string",
- "country": "string",
- "type": "string",
- "price": 0,
- "tax_rate": 0,
- "valid_until": null,
- "created_at": "string",
- "updated_at": "string"
}, - "royalty": {
- "id": 0,
- "fee": null,
- "type": null,
- "interval": null,
- "tax": 0,
- "contract_formation": null,
- "contract_length": null,
- "contract_cancelation_period": null,
- "contract_canceled_at": null
}, - "vlb": {
- "id": 0,
- "reference": "string",
- "wgs_index": 0,
- "wgs_group": 0,
- "customs_tariff_number": "string",
- "production_country": "string",
- "classifications": [
- "string"
]
}, - "contracts": [
- { }
], - "stocks": [
- {
- "id": 0,
- "storage_id": 0,
- "storage_name": "string",
- "storage_place": "string",
- "quantity": 0,
- "reserved": 0,
- "available": 0
}
]
}Response samples
- 401
- 422
{- "message": "Unauthenticated."
}Lagerbestände abrufen
Ruft eine Lister aller Lagerbestände ab. Mittels der Query Parameter können die Lagerbestände nach Lager, Platz oder auch Buch durchsucht werden.
Authorizations:
query Parameters
| storage_id | number Lagerbestände nach einem bestimmten Lager filtern |
| book_id | string Alle Lagerbestände eines Buches nach Buch-ID abrufen |
| place | string Lagerbestände nach Lagerplatz suchen |
Responses
Response samples
- 200
- 401
{- "data": [
- {
- "id": 136,
- "storage_id": 4,
- "place": "636",
- "publisher_id": 12,
- "book_id": 62,
- "quantity": 378,
- "created_at": "2022-09-24 13:05:44",
- "updated_at": "2022-09-24 13:05:44"
}
], - "meta": {
- "current_page": 0,
- "from": 0,
- "last_page": 0
}
}Bestellungen abrufen
Ruft eine Liste von Bestellungen ab, die neuesten Bestellungen zuerst. Mittels der Query Parametern können Sie die Bestellungen nach Status, Verlag, Art, Buch oder Kunden filtern.
Die Liste der Bestellungen ist paginated, nach Bestelldatum abwärts sortiert und auf einen Abruf von 50 Bestellungen pro Seite begrenzt.
Authorizations:
query Parameters
| status | string Enum: "pending" "processing" "completed" "cancelled" Status der Bestellung |
| book_id | string Buch-ID |
| publisher_id | integer Verlags-ID |
Responses
Response samples
- 200
- 401
{- "data": [
- {
- "id": "74.1121",
- "content": {
- "publisher_id": 74,
- "code": "545515 8884 AAZ",
- "status": "pending",
- "type": "email",
- "person_id": 64037,
- "book_ids": [
- "51.1"
], - "created_at": "2024-04-04T09:06:27.000000Z",
- "updated_at": "2024-04-04T09:06:27.000000Z",
- "total": 51.5,
- "total_net": 48.14,
- "client_name": "Buchhandlung Willitzki",
- "payment_method_id": 3
}
}
], - "from": 1,
- "to": 1,
- "current_page": 1,
- "last_page": 122,
- "per_page": 50,
- "prev_page_url": null,
- "total": 122
}Bestellung anlegen
Um eine neue Bestellung anzulegen, müssen einige wichtige Daten angegeben werden, welche nachfolgend aufgeschlüsselt sind.
Nachdem eine Bestellung angelegt wurde, erhalten Sie diese noch einmal mit allen Details zurück. Sollten Sie in Ihrem API-Zugang mehrere Verlage verwalten, haben Sie auch die Möglichkeit, Titel verschiedener Verlage zu bestellen. Die Bestellung wird dann aufgeteilt. Daher antwortet die API bei erfolgreichem Speichern mit einem data Array angelegter Bestellungen und deren Details. In diesen Details ist auch die Bestell-ID enthalten, mit der Sie jederzeit den Status der Bestellung abrufen können.
Authorizations:
Request Body schema: application/json
| code required | string Das Bestellzeichen Ihrer Bestellung |
| type required | string Enum: "email" "shop" "phone" "fax" "post" Art der Bestellung |
required | object Angaben zum Besteller |
required | object Rechnungsadresse |
required | object Versandadresse |
| payment_method_id required | integer Enum: 1 3 6 8 9 Zahlungsart:
|
| shipping_method_name required | string Name der gewünschten Versandart auf der Rechnung, z.B. "Standard-Versand" |
| shipping_cost required | number <float> Versandkosten, die Sie dem Kunden in Rechnung stellen |
required | Array of objects Bestell-Positionen |
| delivery_date | string or null <date> Versanddatum Achtung: Wenn Sie ein Versanddatum angeben, wird die Bestellung nicht vor dem gewählten Datum ausgeliefert! |
| notes | string Notizen zu der Bestellung (nur für interne Zwecke, erscheinen nicht beim Kunden) |
| created_at | string <date-time> Bestelldatum |
Responses
Request samples
- Payload
{- "code": "545515 8884 AAZ",
- "type": "email",
- "person": {
- "firstname": "Marius",
- "lastname": "Willitzki",
- "company": "Buchhandlung Willitzki",
- "email": "info@wilitzki-buch.de",
- "verkehrsnummer": 54182
}, - "payment_address": {
- "name1": "Buchhandlung Wilitzki",
- "name2": "Marius Wilitzki",
- "street": "Waßmannsdorfer Chaussee",
- "house_number": "98",
- "zip_code": "21039",
- "city": "Hamburg",
- "country": "DE",
- "email": "info@wilitzki-buch.de",
- "phone": "040 95 01 05"
}, - "shipping_address": {
- "name1": "Buchhandlung Wilitzki",
- "name2": "Marius Wilitzki",
- "street": "Waßmannsdorfer Chaussee",
- "house_number": "98",
- "zip_code": "21039",
- "city": "Hamburg",
- "country": "DE",
- "email": "info@wilitzki-buch.de",
- "phone": "040 95 01 05"
}, - "delivery_date": "2019-08-24",
- "payment_method_id": 3,
- "shipping_method_name": "Standard-Versand",
- "shipping_cost": 3.5,
- "items": [
- {
- "type": "book",
- "isbn": "978-4-1787-0270-6",
- "quantity": 3,
- "discount_rate": 20
}
]
}Response samples
- 200
- 401
- 422
{- "data": [
- {
- "id": "76.2944",
- "publisher_id": 76,
- "code": "string",
- "person_id": 51798,
- "person_vn": 19541,
- "client_name": "Buchhandlung Wilitzki",
- "type": "email",
- "status": "completed",
- "payment_address": {
- "name1": "Buchhandlung Wilitzki",
- "name2": "Marius Wilitzki",
- "name3": "string",
- "name4": "string",
- "street": "Waßmannsdorfer Chaussee",
- "house_number": "98",
- "zip_code": "21039",
- "city": "Hamburg",
- "country": "DE",
- "email": "info@wilitzki-buch.de",
- "phone": "040 95 01 05"
}, - "shipping_address": {
- "name1": "Buchhandlung Wilitzki",
- "name2": "Marius Wilitzki",
- "name3": "string",
- "name4": "string",
- "street": "Waßmannsdorfer Chaussee",
- "house_number": "98",
- "zip_code": "21039",
- "city": "Hamburg",
- "country": "DE",
- "email": "info@wilitzki-buch.de",
- "phone": "040 95 01 05"
}, - "payment_method": {
- "id": 3,
- "name": "Überweisung"
}, - "payment_date": "2019-08-24",
- "shipping_method": {
- "id": 0,
- "name": "Standard-Versand",
- "type": "fix",
- "price": 0
}, - "delivery_date": "2019-08-24",
- "items": [
- {
- "id": "51487",
- "type": "book",
- "title": "Die Wanderer der Weiten",
- "quantity": 2,
- "delivered": 0,
- "available": 317,
- "price": 14.95,
- "tax_rate": 7,
- "discount_rate": 20,
- "weight": 348,
- "stock": {
- "id": 3648,
- "quantity": 317,
- "reserved": 2,
- "available": 315,
- "storage_name": "Stendaler Str."
}, - "book": {
- "id": "74.165",
- "title": "Die Wanderer der Weiten",
- "isbn": "978-2-6649-2233-1",
- "publisher": "Wundersam Verlag",
- "status": "available"
}
}
], - "notes": "Kunde hat nach Newsletter-Aktion bestellt 💪",
- "vat_id": "DE136695976",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "canceled_at": "2019-08-24T14:15:22Z"
}
]
}Bestellung abrufen
Ruft eine einzelne Bestellung mit allen Details ab.
Authorizations:
path Parameters
| orderId required | string Example: 76.2944 Die ID der Bestellung |
Responses
Response samples
- 200
- 401
{- "data": {
- "id": "76.2944",
- "publisher_id": 76,
- "code": "string",
- "person_id": 51798,
- "person_vn": 19541,
- "client_name": "Buchhandlung Wilitzki",
- "type": "email",
- "status": "completed",
- "payment_address": {
- "name1": "Buchhandlung Wilitzki",
- "name2": "Marius Wilitzki",
- "name3": "string",
- "name4": "string",
- "street": "Waßmannsdorfer Chaussee",
- "house_number": "98",
- "zip_code": "21039",
- "city": "Hamburg",
- "country": "DE",
- "email": "info@wilitzki-buch.de",
- "phone": "040 95 01 05"
}, - "shipping_address": {
- "name1": "Buchhandlung Wilitzki",
- "name2": "Marius Wilitzki",
- "name3": "string",
- "name4": "string",
- "street": "Waßmannsdorfer Chaussee",
- "house_number": "98",
- "zip_code": "21039",
- "city": "Hamburg",
- "country": "DE",
- "email": "info@wilitzki-buch.de",
- "phone": "040 95 01 05"
}, - "payment_method": {
- "id": 3,
- "name": "Überweisung"
}, - "payment_date": "2019-08-24",
- "shipping_method": {
- "id": 0,
- "name": "Standard-Versand",
- "type": "fix",
- "price": 0
}, - "delivery_date": "2019-08-24",
- "items": [
- {
- "id": "51487",
- "type": "book",
- "title": "Die Wanderer der Weiten",
- "quantity": 2,
- "delivered": 0,
- "available": 317,
- "price": 14.95,
- "tax_rate": 7,
- "discount_rate": 20,
- "weight": 348,
- "stock": {
- "id": 3648,
- "quantity": 317,
- "reserved": 2,
- "available": 315,
- "storage_name": "Stendaler Str."
}, - "book": {
- "id": "74.165",
- "title": "Die Wanderer der Weiten",
- "isbn": "978-2-6649-2233-1",
- "publisher": "Wundersam Verlag",
- "status": "available"
}
}
], - "notes": "Kunde hat nach Newsletter-Aktion bestellt 💪",
- "vat_id": "DE136695976",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "canceled_at": "2019-08-24T14:15:22Z"
}
}Die Versandarten sind die verschiedenen Möglichkeiten, wie Sie Ihre Bestellungen an Ihre Kunden versenden können. Sie können bei der Erfassung Ihrer Bestellungen eigene Versandkosten angeben oder auf unsere Versandkostentabelle zurückgreifen. Sollten Sie unsere Versandarten nutzen wollen, geben Sie einer Bestellung bitte die id der Versandart in dem Feld shipping_method_id an. Mehr dazu finden Sie im API-Abschnitt zur Bestellerfassung.
Es gibt verschiedene Arten der Preisberechnung bei den Versandarten:
weight- Staffelung nach Gewicht (g): Die Staffelung wird im Feldratesangegeben. Jeder Array-Key gibt das nächste Staffelgewicht an, der Array-Value den Netto-Preis.fixed- Versandkostenpauschale: Der Preis wird im Feldpriceangegeben und ist unabängig vom Gewicht.linear- Preis je Kilogramm: Der Preis wird im Feldpriceangegeben und wird pro angefangenem Kilogramm berechnet.
Response samples
- 200
- 401
[- {
- "id": 1,
- "name": "Spedition",
- "type": "linear",
- "price": 0.75,
- "rates": null
}, - {
- "id": 4,
- "name": "DHL, Inland",
- "type": "weight",
- "price": null,
- "rates": {
- "0": 2.95,
- "1001": 4.99,
- "2001": 8.69,
- "5001": 12.69,
- "10001": 24.39
}
}, - {
- "id": 17,
- "name": "Freilieferung",
- "type": "fix",
- "price": 0,
- "rates": null
}
]