WAPRO API v2
customers.deliveryPlaces.create
Dodaje miejsce dostawy kontrahenta.
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_iddata.customer_id
Dla punktu odbioru ustaw address_type=1 oraz operator_code i point_code.