API Manual

  • General Info
  • Product Files
  • Orders
  • Informacje Ogólne
  • Pobieranie Kartotek
  • Zamówienia

Orders management addresses:

https://api.powerbike.pl/json/{environment}/order/new - add new order
environment(string) - test or prod

Body content scheme (json):

comment(string) - comments to the order
deliveryCode(int) - order pickup type: 0 - own reception, 1 - courier
sku(int) - identification type of products: 0 - product number (number field), 1 - product index(index field)
customerId(string) - the ID of the buyer (store) to whom order should be sent - in order to receive the list of IDs, contact your sales representative
orderLines(array) - array of objects - order lines, each object should contain two fields:
sku(string) - index/product number, qty(int) - quantity of product
{
 "comment": "test API PWRB",
 "deliveryCode": 1,
 "sku": 1,
 "customerId": "N%%%%%",
 "orderLines":
   [
   {
    "sku": "RH-TJ-BRUTALE_01_M",
    "qty": 2
    },
   {
    "sku": "RH-TJ-BRUTALE_01_L",
    "qty": 1
   }
  ]
 }

Adresy zarządzania zamówieniami:

https://api.powerbike.pl/json/{environment}/order/new - dodanie nowego zamówienia
environment(string) - test lub prod

Schemat zawartości body (json):

comment(string) - komentarz do zamówienia
deliveryCode(int) - typ odbioru zamówienia: 0 - odbiór własny, 1 - wysyłka
sku(int) - typ identyfikacji towarów: 0 - numer zapasu (pole number), 1 - indeks towaru(pole index)
customerId(string) - numer nabywcy(sklepu) do którego zamówienia powinno zostać wysłane - w celu otrzymania listy identyfikatorów skontaktuj się najpierw ze swoim przedstawicielem handlowym
orderLines(array) - tablica zawierająca linie zamówienia, każdy obiekt powinien zawierać dwa pola:
sku(string) - indeks/numer zapasu, qty(int) - liczba produktów
{
 "comment": "test API PWRB",
 "deliveryCode": 1,
 "sku": 1,
 "customerId": "N%%%%%",
 "orderLines":
   [
   {
    "sku": "RH-TJ-BRUTALE_01_M",
    "qty": 2
    },
   {
    "sku": "RH-TJ-BRUTALE_01_L",
    "qty": 1
   }
  ]
 }

Copyright by powerbike.pl