Dokumentacja
Kontakt z pomocą ↗
Baza wiedzy / Kontrahenci — zapis / customers.deliveryPlaces.create
WAPRO API v2

customers.deliveryPlaces.create

Dodaje miejsce dostawy kontrahenta.

ZAPISPOST/v2/connect.php

Nagłówki

HTTP
Authorization: Bearer rvn_api_TUTAJ_WPROWADZ_KLUCZ
Content-Type: application/json
Idempotency-Key: integracja-unikalny-klucz-001

Request

json
{
  "method": "customers.deliveryPlaces.create",
  "customer_id": 209,
  "country": "PL",
  "postal_code": "00-001",
  "city": "Warszawa",
  "street": "Testowa 10",
  "company": "",
  "receiver": "Jan Kowalski",
  "phone": "+48500100200",
  "email": "[email protected]",
  "description": "Adres kurierski",
  "address_type": 0,
  "operator_code": "",
  "point_code": "",
  "gln": ""
}

Przykładowa odpowiedź

json
{
  "ok": true,
  "data": {
    "delivery_place_id": 31,
    "customer_id": 209
  },
  "trace_id": "api_demo_001"
}

Najważniejsze pola odpowiedzi

  • data.delivery_place_id
  • data.customer_id
Dla punktu odbioru ustaw address_type=1 oraz operator_code i point_code.