Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

Inhalt

Einführung

Die API-Schnittstelle der Print Lounge ermöglicht einen automatisierten, maschinengeeigneten Zugriff auf Daten aus der Print Lounge. Dies ermöglicht eine Integration in interne Prozesse und Tools. Die API ist ein zusätzliches Modul und kann für jeden Mandanten aktiviert werden. Für die Nutzung sind keine speziellen Pakete oder Optionen erforderlich. Die verfügbaren Daten entsprechen den Daten aus der Print Lounge. Auf dieser Seite werden generelle API-Informationen bereitgestellt. Der Abruf von Print Lounge-Daten geschieht über die URL.

API-Authentifizierung

Die Authentifizierung erfolgt durch eine Basic-Authentication. Hierfür werden API-Benutzer und API-Key übermittelt.

Der API-Benutzer/API-Key kann in der Administration unter Verwaltung → Shops → bearbeiten → API gesetzt werden. Beim Passwort wird die Passwortrichtlinie angewendet.

Der API-Benutzer/API-Key muss bei allen Abfragen übermittelt werden. Geschieht dieses nicht oder werden ungültige API-Daten verwendet, meldet die API den Fehlercode „401 Unauthorized“. Um API-Daten zu erhalten, kontaktieren Sie bitte Ihren Shopbetreiber.

Wird bei der Authentifizierung mehrfach ein falsches Passwort verwendet, wird der Zugriff für 15 Minuten gesperrt. Nach der Sperrzeit ist keine manuelle Freischaltung notwendig, dies passiert automatisch und kann anschließend wieder verwendet werden.

Artikel

Verfügbare Daten

Über die API kann auf folgende Daten zugegriffen werden.

...

status = 1|0

offset

limit

sortby

sort = ASC|DESC

format = json|serialize|print

...

Array

(

    [data] => Array

        (

            [39336] => Array

                (

                    [name] => Artikelbezeichung

                    [name_internal] => Artikelbezeichung Intern

                    [created] => 2016-03-01T15:19:41+0100

                    [changed] => 2016-04-13T12:19:27+0200

                )

        )

    [error] =>

)

Ausgabeformat

Alle Anfragen und Rückgabewerte sind UTF-8 kodiert. Standardmäßig erfolgt die Rückgabe der API-Schnittstelle im Json-Format. Alternativ kann eine serialisierte Rückgabe oder zu Testzwecken auf Ausgabe umgestellt werden. Dafür ist der Parameter „format“ mit dem Wert „json“,  „serialize“ oder „print“ an jede URL anzuhängen.

REST-API

Jedes Kommando für die API – Schnittstelle ist eine HTTP Anfrage.

In der URL wird das Ziel, das gewünschte Datenobjekt angegeben und die HTTP Methode (GET, POST, PUT, DELETE) gibt an, was gemacht werden soll.

  • GET: Liefert einen oder mehrere Datenobjekte.
  • POST: Erstellt ein neues Datenobjekt.
  • PUT: Ändert ein bestehendes Datenobjekt.
  • DELETE: Löscht ein bestehendes Datenobjekt.

Artikel

...

HTTP Methode

...

Pfad

...

Parameter

...

Request-Body

...

Beispiel

...

Inhalt

Einführung

Die API-Schnittstelle der Print Lounge ermöglicht einen automatisierten, maschinengeeigneten Zugriff auf Daten aus der Print Lounge. Dies ermöglicht eine Integration in interne Prozesse und Tools. Die API ist ein zusätzliches Modul und kann für jeden Mandanten aktiviert werden. Für die Nutzung sind keine speziellen Pakete oder Optionen erforderlich. Die verfügbaren Daten entsprechen den Daten aus der Print Lounge. Auf dieser Seite werden generelle API-Informationen bereitgestellt. Der Abruf von Print Lounge-Daten geschieht über die URL.

API-Authentifizierung

Die Authentifizierung erfolgt durch eine Basic-Authentication. Hierfür werden API-Benutzer und API-Key übermittelt.

Der API-Benutzer/API-Key kann in der Administration unter Verwaltung → Shops → bearbeiten → API gesetzt werden. Beim Passwort wird die Passwortrichtlinie angewendet.

Der API-Benutzer/API-Key muss bei allen Abfragen übermittelt werden. Geschieht dieses nicht oder werden ungültige API-Daten verwendet, meldet die API den Fehlercode „401 Unauthorized“. Um API-Daten zu erhalten, kontaktieren Sie bitte Ihren Shopbetreiber.

Wird bei der Authentifizierung mehrfach ein falsches Passwort verwendet, wird der Zugriff für 15 Minuten gesperrt. Nach der Sperrzeit ist keine manuelle Freischaltung notwendig, dies passiert automatisch und kann anschließend wieder verwendet werden.

Info
titleAb Release 8.5.0 gibt es Limits

Es ist dann so, dass pro Shop nur 300 Anfragen pro 15min getätigt werden dürfen.


Artikel

Verfügbare Daten

Über die API kann auf folgende Daten zugegriffen werden.

URLDatenParameterRückgabe
{*}.print-server.net/api/article.phpArtikel

status = 1|0

offset

limit

sortby

sort = ASC|DESC

format = json|serialize|print

Array

(

    [data] => Array

        (

            [39336] => Array

                (

                    [name] => Artikelbezeichung

                    [name_internal] => Artikelbezeichung Intern

                    [created] => 2016-03-01T15:19:41+0100

                    [changed] => 2016-04-13T12:19:27+0200

                )

        )

    [error] =>

)






Ausgabeformat

Alle Anfragen und Rückgabewerte sind UTF-8 kodiert. Standardmäßig erfolgt die Rückgabe der API-Schnittstelle im Json-Format. Alternativ kann eine serialisierte Rückgabe oder zu Testzwecken auf Ausgabe umgestellt werden. Dafür ist der Parameter „format“ mit dem Wert „json“,  „serialize“ oder „print“ an jede URL anzuhängen.

REST-API

Jedes Kommando für die API – Schnittstelle ist eine HTTP Anfrage.

In der URL wird das Ziel, das gewünschte Datenobjekt angegeben und die HTTP Methode (GET, POST, PUT, DELETE) gibt an, was gemacht werden soll.

  • GET: Liefert einen oder mehrere Datenobjekte.
  • POST: Erstellt ein neues Datenobjekt.
  • PUT: Ändert ein bestehendes Datenobjekt.
  • DELETE: Löscht ein bestehendes Datenobjekt.

Artikel

HTTP Methode

Pfad

Parameter

Request-Body

Beispiel

Rückgabeformat
GET/api/article -
http://shop.printlounge.local
/api/article
[  
   {  
      "id":"39293",
      "name":"Handelsware",
      "nameIntern":"intern",
      "fullDescription":"<p>full<\/p>\r\n",
      "detailedDescription":"<p>detailed<\/p>\r\n",
      "additionalInformation":"<p>additional<\/p>\r\n",
      "articleType":"25",
      "articleSapNumber":"sap",
      "productionTime":"1",
      "deliveryTime":"2"
   },
   {  
      "id":"39294",
      "name":"PrintOnDemand",
      "nameIntern":"",
      "fullDescription":"",
      "detailedDescription":"",
      "additionalInformation":"",
      "articleType":"26",
      "articleSapNumber":"SAP-Nummer12",
      "productionTime":"0",
      "deliveryTime":"0"
   }
]

Wobei articleType sein kann:

25: Handelsware
80: Handeslware mit Upload
27: Handelsware Plus
26: Print on Demand
139: Mietartikel
100: Artikelpaket
152: Mailing
106: Global

GET/api/article/{article-id}
-

http://shop.printlounge.local
/api/article/4711
[  
   {  
      "id":"39293",
      "name":"Handelsware",
      "nameIntern":"intern",
      "fullDescription":"<p>full<\/p>\r\n",
      "detailedDescription":"<p>detailed<\/p>\r\n",
      "additionalInformation":"<p>additional<\/p>\r\n",
      "articleType":"25",
      "articleSapNumber":"sap",
      "productionTime":"1",
      "deliveryTime":"2"
   },
   {  
      "id":"39294",
      "name":"PrintOnDemand",
      "nameIntern":"",
      "fullDescription":"",
      "detailedDescription":"",
      "additionalInformation":"",
      "articleType":"26",
      "articleSapNumber":"SAP-Nummer12",
      "productionTime":"0",
      "deliveryTime":"0"
   }
]
Wobei articleType sein kann:

25: Handelsware
80: Handeslware mit Upload
27: Handelsware Plus
26: Print on Demand
139: Mietartikel
100: Artikelpaket
152: Mailing
106: Global

GET/api/article/{article-id}
-
http
}


Verfügbare Daten

Bestellung


article4711

HTTP Methode

Pfad

Parameter

Request-Body

Beispiel

Rückgabeformat




Fürs eine Auflistung der aktuellsten Bestellungen, siehe Bestellstatus:
/api/order/
[
{
"id": 1235,
"internalOrderCode": "ABCDEG",
"orderCode": "MY4720",
"status": 1,
"orderStatus": 61,
"statusPaid": 1,
"lastModified": "2021-11-11 11:11:11",
"createDate": "2021-11-11 11:11:11"
},
{
"id": 1234,
"internalOrderCode": "ABCDEF",
"orderCode": "MY4710",
"status": 1,
"orderStatus": 61,
"statusPaid": 0,
"lastModified": "2020-11-11 11:11:11",
"createDate": "2020-11-11 11:11:11"
}
]
GET/api/cart/{order-code}-
https://shop.printlounge.local/api/cart/
{  
   "id":"39293",
   "name":"Handelsware",
   "nameIntern":"intern",
   "fullDescription":"<p>full<\/p>\r\n",
   "detailedDescription":"<p>detailed<\/p>\r\n",
   "additionalInformation":"<p>additional<\/p>\r\n",
   "articleType":"25",
   "articleSapNumber":"sap",
   "productionTime":"1",
   "deliveryTime":"2"
}

Verfügbare Daten

Bestellung

...

{
 "order_code": "XABCDE"
 "order_status": 61
}

...

Die folgende Tabelle stellt alle möglichen Statuswerte dar: 

...

Addressen

HTTP Methode

Pfad

Parameter

Request-Body

Beispiel

RückgabeformatGET{ "id": 645135 "client_id": 1234 "order_customer_id": 3124 "order_budgetgroup_user_id": 564231 "order_budgetgruppe

HTTP Methode

Pfad

Parameter

Request-Body

Beispiel

Rückgabeformat
Fürs eine Auflistung der aktuellsten Bestellungen, siehe Bestellstatus:
/api/order/
[
{
"id": 1235,
"internalOrderCode": "ABCDEG",
"orderCode": "MY4720",
"status": 1,
"orderStatus": 61,
"statusPaid": 1,
"lastModified": "2021-11-11 11:11:11",
"createDate": "2021-11-11 11:11:11"
},
{
"id": 1234,
"internalOrderCode": "ABCDEF",
"orderCode": "MY4710",
"status": 1,
"orderStatus": 61,
"statusPaid": 0,
"lastModified": "2020-11-11 11:11:11",
"createDate": "2020-11-11 11:11:11"
}
]
GET/api/cart/{order-code}-https://shop.printlounge.local/api/cart/XABCDEXABCDE
{
 "id": 645135
 "client_id": 1234
 "order_customer_id": 3124
 "order_budgetgroup_user_id": 564231
 "order_budgetgruppe": "example content"
 "order_code": "example content"
 "order_number": 231
"external_order_code": "example content" "order_desc": "example content" "order_total": 0 "order_deliver_address_company": "example content" "order_deliver_address_company2": "example content" "order_deliver_address_name": "example content" "order_deliver_address_firstname": "example content" "order_deliver_address_lastname": "example content" "order_deliver_address_title": "example content" "order_deliver_address_street": "example content" "order_deliver_address_zip": 12345 "order_deliver_address_town": "example content" "order_deliver_address_country_code": "example content" "order_deliver_address_email": "example content" "order_deliver_address_email2": "example content" "order_payment_method": 0 "order_deliver_address_department": "example content" "order_deliver_address_cost_center": "example content" "order_deliver_address_customer_order_number": "example content" "order_deliver_address_phone": "example content" "order_deliver_address_fax": "example content" "order_deliver_address_country": "example content" "order_bank_code": "example content" "order_bank_name": "example content" "order_depositor": "example content" "order_tax_id": "example content" "invoice_address_company1": "example content" "invoice_address_company2": "example content" "invoice_address_company3": "example content" "invoice_address_title": "example content" "invoice_address_name": "example content" "invoice_address_firstname": "example content" "orderinvoice_address_codelastname": "example content" "orderinvoice_address_numberphone": 231"example content" "orderinvoice_address_descstreet": "example content" "orderinvoice_address_totalzip": 012345 "orderinvoice_deliver_address_companytown": "example content" "order_deliverinvoice_address_company2country": "example content" "orderinvoice_deliveraddress_addresscountry_namecode": "example content" "order_delivercustomer_addressuser_firstnameid": "example content"984563 "order_deliveruser_address_lastnamename": "example content" "order_deliver_address_titleserviceprovider_id": 0 "serviceprovider_x_id": 0 "serviceprovider_status": "example content" "order_deliver_address_street": "example content"cart_table": 1 "order_deliverexpress_address_zipdelivery": 123450 "order_deliverexpress_addressdelivery_townsurcharge": "example content" "order_deliver_address_country_codedelivery_method": "example content" "order_deliver_address_emailcomment": "example content" "order_deliverbudget_address_email2before": "example content"0.00 "order_paymentbudget_methodbooking": 0.00 "order_deliverbudget_addressbooking_departmentafter": "example content"0.00 "order_status": 62 "order_deliver_address_cost_centerdelivery_date": "example content" "order_deliver_address_customer_order_numberpackages": 0 "weight": 0 "barcode": "example content" "order_deliver_address_phoneapproval": "example content" "order_deliver_address_faxapproval_email": "example content" "order_deliverapproval_address_countryexplaination": "example content" "order_bank_codepdate": "example content" "order_bank_namesdate": "example content" "order_depositormdate": "example content" "order_tax_idcdate": "example content" "invoice_address_company1status": "example content"3 "status_paid": 0 "invoicedate_address_company2paid": "example content" "invoicestatus_address_company3sendmail": "example content"1 "invoiceopentrans_address_titlestatus": "example content"0 "printshop": 0 "invoiceorder_type_addressprint_namejob": "example1 content" "invoiceorder_addresstype_firstnamepdf": "example0 content" "invoiceemailing_address_lastnamename": "example content" "invoiceemailing_address_phoneemail": "example content" "invoiceemailing_addressadditional_streettext": "example content" "invoice_address_zipnumber": 123450 "invoiceindividual_addressorder_towncode": "example content" "invoiceindividual_order_addressitem_countrycode": "example0 content" "individual_invoice_address_country_codenumber": "example content" "individual_order_customeritem_usercode_idinvoice": 9845630 "ordercoupon_user_namecode": "example0 content" "serviceproviderpayment_idinterface": 0 "serviceprovidermd5_xorder_idconsolidation": 0 "serviceprovider_statusmd5": "example content" "cart_table": 1 "order_express_deliverycollective_price_scale": 0 "order_express_delivery_surchargeapproved_by": "example content" "order_delivery_methodlanguage": "example content" "order_commentbudged": "example content" "ordershipping_budget_beforecharges": 09.0099 "ordervat_budget_bookingamount": 0.00 "order_budget_booking_afternet_amount": 010.00 "ordergross_statusamount": 6210.00 "orderauth_delivery_datemicropayment": "example content" "packagesbudgedgroup_discount": 0 "weight": 0 "barcodebudgedgroup_discount_amount": "example content" "orderposition_approvalfeedback": "example0 content" "approvalvat_emailincluded": "example54 content" "orderdate_approvalof_explainationinvoice": "example content" "pdatecartItems": "example { content" "sdate1": "example{ content" "mdateid": "example content"121314 "cdate": "example content" "status"client_id": 31234 "status_paid": 0 "dateorder_paidid": "example content" "status_sendmail": 1645135 "opentransparent_statusid": 0 "printshoptype": 01 "order_type_print_jobaid": 231450 1 "orderarticle_type_pdf": 026 "emailing_namepersdata": "example content" "emailingpersdata_emailarray": "example content" "emailingadditional_additionalfields_textarray": "example content" "invoice_number": 0 "individualcart_additional_orderfields_codearray": "example content" "individual_order_item_code": 0 "individualarticle_invoiceoptions_numberremark": "example content" "individual_order_item_code_invoicequantity": 370169 0 "couponquantity_codevalue": 01 "payment_interfaceremark": "example content" 0 "md5_order_consolidationfilename": 0"example content" "md5pdf_filenames": "example content" "collectivecost_price_scalecenter": 0 "example content" "approved_bymdate": "example content" "order_languagecdate": "example content" "order_budgedrdate": "example content" "shippingr_chargesremark": 9.99 "vat_amount": 0.00"example content" "netr_amountshort": 10.00 "gross_amount": 10.00"example content" "authr_micropaymentemail": "example content" "budgedgroup_discount": 0 "budgedgroups_discount_amountdesc": "example content" "positions_quantity_feedbackvalue": 01 "vat_included": 54 "dates_ofcost_invoicecenter": "example content" "cartItems": { "1"s_total": { "id": 121314"example content" "clients_idntotal": 12341 "orders_idvat": 6451352 "parentmailing_idcount": 0 "typestatus": 1 "aid": 231450"example content" "articlesend_typereminder": 260 "persdataprintshop": "example0 content" "persdatapayment_arrayinterface": "example content"0 "additional_fields_arraymd5": "example content" "cart_additional_fields_arrayshow": "example content"1 "article_options_remarkjobname": "example content" "quantitypremium_interactive_editor": 3701690 "quantitypremium_image_valueupload": 10 "remarkpage_count": "example1 content" "filenamedownload_count": "example0 content" "pdfarticle_filenamesoptions": "example content" "costpdf_download_centeronly": "example0 content" "mdate"local_order_workflow_step_id": "example0 content" "cdateuploadpath": "example content" "rdatedirect_download": "example content"0 "rcart_addresses_remarkarray": "example content"0 "rserviceprovider_shortid": "example0 content" "rserviceprovider_emailstatus": "example content" "sorder_descnumber": "example133 content" "sdo_quantitynot_valuecalculate": 10 "spostage_cost_centergraduation": "example content"0 "sftp_totalchecksum": "example content" "sftp_ntotaldownload": 10 "sftp_vaterror": 20 "mailingdata_countid": 0 "status_sendmail": 1 "example content"reorder": 0 "sendarticle_reminderreorder": 0 "printshopvoucher": 0 "paymentvoucher_interfaceid": 0 "md5voucher_array": "example content" "showapproval_address_id": 10 "jobnamemailing": "example0 content" "premiumreport_interactivegroup_editorid": 0 } } }

Wobei type "premium_image_upload": 0 "page_count": 1 "download_count": 0 "article_options": "example content" "pdf_download_only": 0 "local_order_workflow_step_id": 0 "uploadpath": "example content" "direct_download": 0 "cart_addresses_array": 0 "serviceprovider_id": 0 "serviceprovider_status": "example content" "order_number": 133 "do_not_calculate": 0 "postage_graduation": 0 "ftp_checksum": "example content" "ftp_download": 0 "ftp_error": 0 "data_id": 0 "status_sendmail": 1 "reorder": 0 "article_reorder": 0 "voucher": 0 "voucher_id": 0 "voucher_array": "example content" "approval_address_id": 0 "mailing": 0 "report_group_id": 0 } } }
Wobei type sein kann:

1: Article
2: Versand
3: Handling
4: Dienstleisterversand
5: Artikeloption
6: Artikel freies Kontingent
7: Artikel Lagerrückführung
8: Zusätzliche Gebühr für kleine Mengen
9: credit fpr handling cost
10: Kundendiscount
11: Payment
12: Artikeldiscpount
13: Kostenlose Position durch Admin hinzugefügt
14: Artikelbestellgebühr
15: Artikel dynamische Option
16: Postaktuell Artikel
17: Kostenübernahme
18: Werbezuschüsse
19: Zusätzlicher Aufpreis
101: Externer Artikel über OCI-Punchout empfangen

Bestellstatus

...

HTTP Methode

...

Pfad

...

Parameter

...

Request-Body

...

Beispiel

...

Zum Blättern:

  • limit
  • lastSeenId

Zum Filtern:

  • orderStatus
  • status
  • statusPaid

...

[
{
"id": 1235,
"internalOrderCode": "ABCDEG",
"orderCode": "MY4720",
"status": 1,
"orderStatus": 62,
"statusPaid": 1,
"lastModified": "2021-11-11 11:11:11",
"createDate": "2021-11-11 11:11:11"
},
{
"id": 1234,
"internalOrderCode": "ABCDEF",
"orderCode": "MY4710",
"status": 1,
"orderStatus": 61,
"statusPaid": 0,
"lastModified": "2020-11-11 11:11:11",
"createDate": "2020-11-11 11:11:11"
}
]
sein kann:

1: Article
2: Versand
3: Handling
4: Dienstleisterversand
5: Artikeloption
6: Artikel freies Kontingent
7: Artikel Lagerrückführung
8: Zusätzliche Gebühr für kleine Mengen
9: credit fpr handling cost
10: Kundendiscount
11: Payment
12: Artikeldiscpount
13: Kostenlose Position durch Admin hinzugefügt
14: Artikelbestellgebühr
15: Artikel dynamische Option
16: Postaktuell Artikel
17: Kostenübernahme
18: Werbezuschüsse
19: Zusätzlicher Aufpreis
101: Externer Artikel über OCI-Punchout empfangen

Bestellstatus

HTTP Methode

Pfad

Parameter

Request-Body

Beispiel

Rückgabeformat
GET/api/order/

Zum Blättern:

  • limit
  • lastSeenId

Zum Filtern:

  • orderStatus
  • status
  • statusPaid
  • orderByDesc
    • 1 = aktiviert (Standard)
    • 0 = deaktiviert

/api/order/?limit=20&lastSeenId=4711&orderStatus=61&status=1&statusPaid=1&orderByDesc=0
[
{
"id": 1235,
"internalOrderCode": "ABCDEG",
"orderCode": "MY4720",
"status": 1,
"orderStatus": 62,
"statusPaid": 1,
"lastModified": "2021-11-11 11:11:11",
"createDate": "2021-11-11 11:11:11"
},
{
"id": 1234,
"internalOrderCode": "ABCDEF",
"orderCode": "MY4710",
"status": 1,
"orderStatus": 61,
"statusPaid": 0,
"lastModified": "2020-11-11 11:11:11",
"createDate": "2020-11-11 11:11:11"
}
]
GET/api/order/{order-code}-
https://shop.printlounge.local/api/order
{
 "order_code": "XABCDE"
 "order_status": 61
}
PUT/PATCH/api/order/{order-code}-{"order_status":"137"}http://shop.printlounge.local/api/order/39293

Die folgende Tabelle stellt alle möglichen Statuswerte dar: 

StatusBezeichnung
61in Produktion
62im Versand
63geliefert
69Storno
73auf Freigabe warten
74Freigabe abgelehnt
88Freigabe erteilt
117erledigt
137abgerechnet
140warte auf Zahlungsanbieter
144warte auf Kostenfreigabe

Addressen

HTTP Methode

Pfad

Parameter

Request-Body

Beispiel

Rückgabeformat
GET

/api/order/{{OrderCode}}/addresses/deliver

/api/order/{{OrderCode}}/addresses/invoice

-


/api/order/RQREJC/addresses/deliver

/api/order/RQREJC/addresses/invoice

{
"company1": "Firma",
"company2": "Firma2",
"company3": null,
"name": "Ansprechpartner",
"firstName": "",
"lastName": "",
"title": "",
"street": "Street",
"zip": "12345",
"town": "Stadt",
"country": "Deutschland",
"countryCode": "DE",
"email": "mail@lead-print.com",
"department": null,
"telephone": "",
"fax": null
}

PUT/PATCH

/api/order/{{OrderCode}}/addresses/deliver

/api/order/{{OrderCode}}/addresses/invoice

-

/api/order/RQREJC/addresses/deliver

/api/order/RQREJC/addresses/invoice
{
"company1": "Firma",
"company2": "Firma2",
"company3": null,
"name": "Ansprechpartner",
"firstName": "",
"lastName": "",
"title": "",
"street": "Street",
"zip": "12345",
"town": "Stadt",
"country": "Deutschland",
"countryCode": "DE",
"email
": "mail@lead-print.com",
"department": null,
"telephone": "",
"fax": null
}PUT/PATCH

/api/order/{{OrderCode}}/addresses/deliver

/api/order/{{OrderCode}}/addresses/invoice

-{
"company1": "Firma",
"company2": "Firma2",
"company3": null,
"name": "Ansprechpartner",
"firstName": "",
"lastName": "",
"title": "",
"street": "Street",
"zip": "12345",
"town": "Stadt",
"country": "Deutschland",
"countryCode": "DE",
"email": "mail@lead-print.com",
"department": null,
"telephone": "",
"fax": null
}

/api/order/RQREJC/addresses/deliver

/api/order/RQREJC/addresses/invoice

true

Wenn die Daten nicht valide sind:

{
    "success": false,
    "message": "Validation errors",
    "data": {
        "countryCode": [
            "validation.size.string"
         ]
    }
}

Wenn keine Daten übermittelt wurden:

{
    "success": false,
    "message": "no data to found",
   
": "mail@lead-print.com",
"department": null,
"telephone": "",
"fax": null
}

/api/order/RQREJC/addresses/deliver

/api/order/RQREJC/addresses/invoice

true



Wenn die Daten nicht valide sind:

{
    "success": false,
    "message": "Validation errors",
    "data": {
        "countryCode": [
            "validation.size.string"
         ]
    }
}



Wenn keine Daten übermittelt wurden:

{
    "success": false,
    "message": "no data to found",
    "data": []
}


Tracking/Sendungsverfolgung

HTTP Methode

Pfad

Parameter

Request-Body

Beispiel

Rückgabeformat
GET/api/order-tracking/{order-code}[?cart_item_id={cart_item_id}]cart_item_id=134
https://shop.printlounge.local:4432/api/order-tracking/PMOAEG?cart_item_id=134[
{
"id":"134",
"delivery_service_id":"6",
"delivery_service_name":"Hermes",
"delivery_service_tracking_id":""
}
]
PUT/PATCH/api/order-tracking/{order-code}-{
"tracking_id":"tracking code 123-456-789",
"tracking_service_id":2,
"cart_item_id":132453
}
http://shop.printlounge.local/api/order/39293

Der Parameter tracking_service_id enthält die ID des Zustelldienstes, die zuvor im Backend der Print Lounge angelegt werden muss. Über den optionalen Parameter order_item_id kann die ID der Bestellposition übergeben werden, sofern der Trackingcode nur für eine bestimmte Position hinterlegt werden soll.


HTTP Methode

Pfad

Parameter

Request-Body

Beispiel

Rückgabeformat
GET/api/cart/{order-code}-
Bei der Abfrage der Bestellung kann unter dem Punkt "Barcode" die Tracking number der Bestellung ausgelesen werden.

{
...
"barcode": "example content",
...
}

PUT/PATCH/api/component/Order-Order/tracking/{order-code}-

{
"trackingNumber": "myTrackingNumber"
}

/api/component/Order-Order/tracking/EVKKKO

{
"success": true,
"message": "",
"data": []
}

...


Benutzer

Für {user-id} kann die Id oder der username verwendet werden

order-trackingorder-code}[?cart_item_id={cart_item_id}]https:4432order-tracking/PMOAEG?cart_item_id=134[
{
"id":"134",
"delivery_service_id":"6",
"delivery_serviceHermes

HTTP Methode

Pfad

Parameter

Request-Body

Beispiel

Rückgabeformat
GET/api/user/{cart_item_id=134user-id}

http://shop.printlounge.local/api/user/42

{
“id":999999,
“client_id":1234,
“budgetgroup_id":234510
,
“group_id":0
,
“gender":118
,

“username":"johndoe",
first_name":"

...

http://shop.printlounge.local/api/user/42

oder

http://shop.printlounge.local/api/user/johndoe

...

Adressbuch

"delivery_service_tracking_id":""
}
]

HTTP Methode

Pfad

Parameter

Request-Body

Beispiel

Rückgabeformat
GET/api/address-book/customer_user_idhttp://shop.printlounge.local
/api/address-book/
?customer_user_id=123456

{
"1":{
"id":"42"John",

PUT/PATCH/api/order-tracking/{order-code}-{
"tracking_id":"tracking code 123-456-789",
"tracking_service_id":2,
"cart_item_id":132453
}
http://shop.printlounge.local/api/order/39293

Der Parameter tracking_service_id enthält die ID des Zustelldienstes, die zuvor im Backend der Print Lounge angelegt werden muss. Über den optionalen Parameter order_item_id kann die ID der Bestellposition übergeben werden, sofern der Trackingcode nur für eine bestimmte Position hinterlegt werden soll.

Benutzer

Für {user-id} kann die Id oder der username verwendet werden

...

HTTP Methode

...

Pfad

...

Parameter

...

Request-Body

...

Beispiel

...

{
“id":999999,
“client_id":1234,
“budgetgroup_id":234510
,
“group_id":0
,
“gender":118
,

“username":"johndoe",
first_name":"John",
last_name":"Doe",

“longname":"John Doe",
"distributorship":"",
company1":"BE.BEYOND",
“company2":"BE.BEYOND",
“company3":"BE.BEYOND",

“street":”Hanns-Martin-Schleyer-Straße",
“zip":"35",
“city":"Willich",
“countrycode":"DE",
“country":"Deutschland",

“phone":”+49 (0) 2154 / 48 09-0",

“fax":”+49 (0) 2154 / 48 09-90",
“email":”info@bebeyond.de”,
“web":”http://bebeyond.de",
“mobile":”+49 (0) 2154 / 48 09-0",
customernumber ":"4711",
code":"CODE123456",

“costcenter":"31337",
branch":"IT & Software",
function":"Developer",
“state":"",
“vatid":"DE123456789",
“hours1":"",
“hours2":"",
“hours3":"",
“distribution":"",
“type":"",
“bank":"",
“bank_code":"",
“bank_account_number":"",
“iban":"",
“bic":"",
“managing_director":"",
“headquarter":"",
“tax_id":"",
“district_court":"",
“customfield1":"",
“customfield2":"",
“customfield3":"",
“customfield4":"",

“status":"OK",
“invoice_address_company1":" Be.Beyond",
“invoice_address_company2":" GmbH & Co KG",
“invoice_address_name":"John",
“invoice_address_street":" Hanns-Martin-Schleyer-Straße 35",
“invoice_address_zip":" 47877 ",
“invoice_address_town":" Willich",
“invoice_address_country":"Deutschland"

}

...

{
“gender":118,

“username":"johndoe",
first_name":"John",
last_name":"Doe",

“longname":"John Doe",
"distributorship":"",
“company1":"BE.BEYOND",
“company2":"BE.BEYOND",
“company3":"BE.BEYOND",

“street":”Hanns-Martin-Schleyer-Straße",
“zip":"35",
“city":"Willich",
“countrycode":"DE",
“country":"Deutschland",

“phone":”+49 (0) 2154 / 48 09-0",

“fax":”+49 (0) 2154 / 48 09-90",
“email":”info@bebeyond.de”,
“web":”http://bebeyond.de",
“mobile":”+49 (0) 2154 / 48 09-0",
“customernumber ":"4711",
“code":"CODE123456",

“costcenter":"31337",
branch":"IT & Software",
function":"Developer",
“state":"",
“vatid":"DE123456789",
“hours1":"",
“hours2":"",
“hours3":"",
“distribution":"",
“type":"",
“bank":"",
“bank_code":"",
“bank_account_number":"",
“iban":"",
“bic":"",
“managing_director":"",
“headquarter":"",
“tax_id":"",
“district_court":"",
“customfield1":"",
“customfield2":"",
“customfield3":"",
“customfield4":"",
“invoice_address_company1":" Be.Beyond",
“invoice_address_company2":" GmbH & Co KG",
“invoice_address_name":"John",
“invoice_address_street":" Hanns-Martin-Schleyer-Straße 35",
“invoice_address_zip":" 47877 ",
“invoice_address_town":" Willich",
“invoice_address_country":"Deutschland"

}

last_name":"Doe",
“longname":"John Doe",
"distributorship":"",
company1":"BE.BEYOND",
“company2":"BE.BEYOND",
“company3":"BE.BEYOND",

“street":”Hanns-Martin-Schleyer-Straße",
“zip":"35",
“city":"Willich",
“countrycode":"DE",
“country":"Deutschland",

“phone":”+49 (0) 2154 / 48 09-0",

“fax":”+49 (0) 2154 / 48 09-90",
“email":”info@bebeyond.de”,
“web":”http://bebeyond.de",
“mobile":”+49 (0) 2154 / 48 09-0",
customernumber ":"4711",
code":"CODE123456",

“costcenter":"31337",
branch":"IT & Software",
function":"Developer",
“state":"",
“vatid":"DE123456789",
“hours1":"",
“hours2":"",
“hours3":"",
“distribution":"",
“type":"",
“bank":"",
“bank_code":"",
“bank_account_number":"",
“iban":"",
“bic":"",
“managing_director":"",
“headquarter":"",
“tax_id":"",
“district_court":"",
“customfield1":"",
“customfield2":"",
“customfield3":"",
“customfield4":"",

“status":"OK",
“invoice_address_company1":" Be.Beyond",
“invoice_address_company2":" GmbH & Co KG",
“invoice_address_name":"John",
“invoice_address_street":" Hanns-Martin-Schleyer-Straße 35",
“invoice_address_zip":" 47877 ",
“invoice_address_town":" Willich",
“invoice_address_country":"Deutschland"

}

PUT/PATCH/api/user/{user-id}

{
“gender":118,

“username":"johndoe",
first_name":"John",
last_name":"Doe",

“longname":"John Doe",
"distributorship":"",
“company1":"BE.BEYOND",
“company2":"BE.BEYOND",
“company3":"BE.BEYOND",

“street":”Hanns-Martin-Schleyer-Straße",
“zip":"35",
“city":"Willich",
“countrycode":"DE",
“country":"Deutschland",

“phone":”+49 (0) 2154 / 48 09-0",

“fax":”+49 (0) 2154 / 48 09-90",
“email":”info@bebeyond.de”,
“web":”http://bebeyond.de",
“mobile":”+49 (0) 2154 / 48 09-0",
“customernumber ":"4711",
“code":"CODE123456",

“costcenter":"31337",
branch":"IT & Software",
function":"Developer",
“state":"",
“vatid":"DE123456789",
“hours1":"",
“hours2":"",
“hours3":"",
“distribution":"",
“type":"",
“bank":"",
“bank_code":"",
“bank_account_number":"",
“iban":"",
“bic":"",
“managing_director":"",
“headquarter":"",
“tax_id":"",
“district_court":"",
“customfield1":"",
“customfield2":"",
“customfield3":"",
“customfield4":"",
“invoice_address_company1":" Be.Beyond",
“invoice_address_company2":" GmbH & Co KG",
“invoice_address_name":"John",
“invoice_address_street":" Hanns-Martin-Schleyer-Straße 35",
“invoice_address_zip":" 47877 ",
“invoice_address_town":" Willich",
“invoice_address_country":"Deutschland"

}

http://shop.printlounge.local/api/user/42

oder

http://shop.printlounge.local/api/user/johndoe

""


Adressbuch

HTTP Methode

Pfad

Parameter

Request-Body

Beispiel

Rückgabeformat
GET/api/address-book/customer_user_id
http://shop.printlounge.local
/api/address-book/
?customer_user_id=123456

{
"1":{
"id":"42"
“company":"BE.BEYOND",
“company_addition":”GmbH",
“company_addition2":"& Co KG”,
“contact_person":"Herr Mustermann",
“first_name":"John",
“last_name":"Doe",
“street":”Hanns-Martin-Schleyer-Straße",
“postcode":"35",
“location":"Willich",
“phone":”+49 (0) 2154 / 48 09-0",
“mail":”info@bebeyond.de”,
“cost_location":"4711",
}
}

GET/api/address-book/{address-id}customer_user_id
http://shop.printlounge.local
/api/address-book/42
?customer_user_id=123456
{
"id":"42"

“company":"BE.BEYOND",
“company_addition":”GmbH",
“company_addition2":"& Co KG”,
“contact_person":"Herr Mustermann",
“first_name":"John",
“last_name":"Doe",
“street":”Hanns-Martin-Schleyer-Straße",
“postcode":"35",
“location":"Willich",
“phone":”+49 (0) 2154 / 48 09-0",
“mail":”info@bebeyond.de”,
“cost_location":"4711",
}
PUT/PATCH/api/address-book/{address-id}customer_user_id

{
“company":"BE.BEYOND",
“company_addition":”GmbH",
“company_addition2":"& Co KG”,
“contact_person":"Herr Mustermann",
“first_name":"John",
“last_name":"Doe",
“street":”Hanns-Martin-Schleyer-Straße",
“postcode":"35",
“location":"Willich",
“phone":”+49 (0) 2154 / 48 09-0",
“mail":”info@bebeyond.de”,
“cost_location":"4711",
}
}

http://shop.printlounge.local
/api/address-book/42
?customer_user_id=123456
""

Lagerbestand

addressbookaddresshttp

HTTP Methode

Pfad

Parameter

Request-Body

Beispiel

Rückgabeformat
GET/api/article-stock/{article-id}customer_user_id

https://shop.print-server.net
/api/article-stock/4711
{"stock":"123"}
PUT/PATCH/api/article-stock/{article-id}
[addToStock]
{"stock":"500"}
https://shop.printlounge.localprint-server.net
/api/article-stock/4711?addToStock=1
""
GET/api/address-book/42
?customer_user_id=123456
{
"id":"42"

“company":"BE.BEYOND",
“company_addition":”GmbH",
“company_addition2":"& Co KG”,
“contact_person":"Herr Mustermann",
“first_name":"John",
“last_name":"Doe",
“street":”Hanns-Martin-Schleyer-Straße",
“postcode":"35",
“location":"Willich",
“phone":”+49 (0) 2154 / 48 09-0",
“mail":”info@bebeyond.de”,
“cost_location":"4711",
}
PUT/PATCH/api/address-book/{address-id}customer_user_id

{
“company":"BE.BEYOND",
“company_addition":”GmbH",
“company_addition2":"& Co KG”,
“contact_person":"Herr Mustermann",
“first_name":"John",
“last_name":"Doe",
“street":”Hanns-Martin-Schleyer-Straße",
“postcode":"35",
“location":"Willich",
“phone":”+49 (0) 2154 / 48 09-0",
“mail":”info@bebeyond.de”,
“cost_location":"4711",
}

http://shop.printlounge.local
/api/address-book/42
?customer_user_id=123456
""

Lagerbestand

HTTP Methode

Pfad

Parameter

Request-Body

Beispiel

Rückgabeformat
GET/api/article-stock/{article-id}http://shop.printlounge.local
/api/article-stock/4711
{"stock":"123"article-stock

https://shop.print-server.net
/api/article-stock
[
{
"articleId": 123,
"stock": 30
},
{
"articleId": 456,
"stock": 4934
},
{
"articleId": 789,
"stock": 908
}
]

Wenn der Parameter addToStock gesetzt ist, dann wird der übermittelte Lagerbestand (stock) zum Aktuellen hinzugefügt.

Fehlt dieser Parameter, wird der übermittelte Lagerbestand gesetzt.


Ebenso gibt es die Möglichkeit dies über eine externe Nummer (im System auch SAP Nummer genannt) gesetzt werden:

HTTP Methode

Pfad

Parameter

Request-Body

Beispiel

Rückgabeformat
GET/api/external-number-stock/{external-number}


{
"success": true,
"message": "",
"data": {
"articles": [
{
"id": 65020,
"name": "Artikel mit Gewicht",
"stockValue": 121
}
],
"articleOptions": [
{
"tag": "LB-Option-x",
"description": "LB-Option-3 name",
"stockValue": 121
},
{
"tag": "B-Option",
"description": "Eins",
"stockValue": 0
}
]
}
}
PUT/PATCH/api/articleexternal-number-stock/{articleexternal-idnumber}

[addToStock]

{

{

"

stock

newStock": "

500

121"
}

http://shop.printlounge.local
/api/article-stock/4711?addToStock=1
""

Wenn der Parameter addToStock gesetzt ist, dann wird der übermittelte Lagerbestand (stock) zum Aktuellen hinzugefügt.

...


{
"success": true,
"message": "",
"data": {
"updatedCount": "3"
}
}

Order-Cart

Status

HTTP Methode

Pfad

Parameter

Request-Body

Beispiel

Rückgabeformat
GET/api/order-cart-status/ order_code
http://shop.printlounge.local
/api/order-cart-status/?order_code=PSYADU
[{
"id":"123321",
"status":"TEMP",
"service_provider_status":"new"
}]
GET/api/order-cart-status/{order-cart-id}

http://shop.printlounge.local
/api/order-cart-status/123321
{
"id":"1545186",
"status":"TEMP",
"service_provider_status":"new"
}
PUT/PATCH/api/order-cart-status/{order-cart-id}
{
"status":"2",
"service_provider_status":"3"
}
http://shop.printlounge.local
/api/order-cart-status/123321

...

HTTP Methode

Pfad

Parameter

Request-Body

Beispiel

Rückgabeformat
GET/api/cart-item/{cart-item-id}

http://shop.printlounge.local
/api/cart-item/4711
{
"id": "4711",
"client_id": "42",
"order_id": "123",
"parent_id": "4710",
"type": "5",
"aid": "0",
"article_type": "0",
"persdata": "",
"persdata_array": "",
"additional_fields_array": "",
"cart_additional_fields_array": "",
"article_options_remark": "",
"quantity": "1",
"quantity_value": "1",
"remark": "",
"filename": "",
"pdf_filenames": "",
"cost_center": "",
"mdate": "2021-08-12 16:09:08",
"cdate": "2021-08-10 11:18:18",
"rdate": "0000-00-00 00:00:00",
"r_remark": null,
"r_short": "",
"r_email": "",
"s_desc": "B-Option: Eins",
"s_quantity_value": "1 St\u00fcck",
"s_cost_center": "",
"s_total": "\u00a3 1,00",
"s_ntotal": "100",
"s_vat": "1",
"mailing_count": "0",
"status": "OK",
"send_reminder": "0",
"printshop": "0",
"payment_interface": "0",
"md5": "4b0c123b9ae682cd9b57224e90a651bf",
"show": "1",
"jobname": "",
"premium_interactive_editor": "0",
"premium_image_upload": "0",
"page_count": "0",
"download_count": "0",
"article_options": "",
"pdf_download_only": "0",
"local_order_workflow_step_id": "0",
"uploadpath": "",
"direct_download": "0",
"cart_addresses_array": "0",
"serviceprovider_id": "80882",
"serviceprovider_status": "new",
"order_number": "0",
"do_not_calculate": "0",
"postage_graduation": "0",
"ftp_checksum": "",
"ftp_download": "0",
"ftp_error": "0",
"data_id": "0",
"status_sendmail": "1",
"reorder": "0",
"article_reorder": "0",
"voucher": "0",
"voucher_id": "0",
"voucher_array": "",
"approval_address_id": "0",
"mailing": "0",
"report_group_id": "0"
}

Infos

HTTP Methode

Pfad

Parameter

Request-Body

Beispiel

Rückgabeformat
GET/api/cart-item/{cart-item-id}/info

https://dev.localhost/api/cart-item/4711/info
[
{
"name": "articleOptionId",
"value": 5692
},
{
"name": "sapNumber",
"value": "mySAP-1"
}
]
GET/api/cart-item/{cart-item-id}/info/sapNumber

https://dev.localhost/api/cart-item/4711/info/sapNumber
"mySAP-1"

DHL Mailoptimizer/Portooptimierung

...

HTTP MethodePfadParameterBeispielRückgabeformat
GET/api/article-option/printfile/{option_id}
http://shop.printlounge.local/api/article-option/printfile/56269

{
"link": "shop.printlounge.local",
"file": "56269_test.pdf"
}

POST/api/article-option/printfile/{option_id}

link

file

http://t.printlounge.local/api/article-option/printfile/56269

{
"status": "OK"
}

Add-On: Fremddienstleister Produktion (ThirdPartyProduction)

HTTP MethodePfadParameterRequest-BodyBeispielRückgabeformat
PUT/PATCH/api/module/ThirdPartyProduction/releaseOrderItem/{orderItemId}

{
"TransferToDropShippingApi": 0
}



Rückgabewerte/Response codes

...