Partner integration documentation
Havvo Express Partner API 60 API operations · REST · Webhooks
Key First request Orders Webhooks Go live
No results. Try a different search query.
1. Purpose
The Partner API is a server-to-server interface for Havvo Express partners. The API key identifies the partner; callers cannot select another tenant with a partner_id. A partner can access only its own clients, orders, cargo, labels, webhooks, and financial records. Financial endpoints are read-only.
Partners use the test environment during integration. Base URL: https://havvo-test.gocrm.uz/api/partner/v1. Interactive docs: https://havvo-test.gocrm.uz/api/partner/docs; JSON schema: https://havvo-test.gocrm.uz/api/partner/openapi.json. All examples use HAVVO_BASE_URL=https://havvo-test.gocrm.uz.
2. Onboarding and keys
Havvo staff registers the partner and assigns an immutable public partner_id. Staff may issue the first sandbox key, or a user with the integration administrator role may generate it in the portal. A secret is displayed once; store it in a secret manager.
curl "$HAVVO_BASE_URL/api/partner/v1/account" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
hv_test_ identifies sandbox keys and hv_live_ identifies production keys. Legacy hv_sandbox_ keys are treated as sandbox keys. Never log secrets. Store X-Request-Id for support and tracing. Rotate by issuing a new key, switching traffic, and revoking the old key.
3. Protocol rules
JSON/UTF-8; timestamps are ISO 8601 with timezone and stored in UTC.
Money, weight, and dimensions are decimal strings such as "125.50".
Use Idempotency-Key for create and financially relevant commands.
Use If-Match or the documented version for concurrent updates.
Handle unknown enum values without crashing.
401 invalid key; 403 missing scope; 404 also hides foreign resources; 409
state/version conflict; 422 invalid input; 429 rate limit.
Maximum JSON body is 2 MiB; larger requests return 413.
Normal pages default to 50 and allow at most 100 rows; cities allow up to 1000. Prefer
cursors over offsets for changing datasets.
When quotas are enabled: 600 requests/minute per partner, 300 reads/minute and 60
writes/minute per key. Respect Retry-After after 429.
Configure a connect timeout, at least a 60-second total timeout, and bounded retries
only for safe GETs or idempotent commands.
4. Scopes
Core scopes are clients:read, clients:write, orders:read, orders:write, cargo:read, labels:read, finance:read, pricing:read, reference:read, and webhooks:manage. Read effective capabilities from GET /account and GET /capabilities. Grant the minimum set required.
5. Clients
A partner can list, create, and update only its own clients through /clients and the contact, address, and private-data subresources. Deleting a client archives the partner relationship; historical orders remain. Partners cannot restore archived clients and cannot create new orders for them until Havvo staff restores the relationship. An eligible existing order may retain its unchanged archived client, but cannot switch to an archived client.
6. Orders and cargo
Recommended flow: load references and pricing, call POST /orders/preview, create with POST /orders and an idempotency key, save your ID through /external-id, print labels, and process status webhooks.
Before any cargo in the order is received, the partner may replace the order contents through PUT /orders/{id}, cancel, or soft-delete the order when its state permits. Once any cargo is received, structural order edits are locked. Business cancellation uses POST /orders/{id}/cancel; soft deletion uses DELETE /orders/{id} only in an eligible state. History and financial links are retained.
After a partial receipt, every still-unreceived item remains editable through PATCH /orders/{order_id}/items/{item_id} and can be cancelled through /cancel or soft-deleted with DELETE. An accepted item, including every line in its accepted package, is immutable. Send Idempotency-Key, expected_version, and the previewed expected_total.
7. Labels
Use /orders/{id}/labels for JSON, .pdf for standard printing, and .zpl for thermal printers. A label carries both the Havvo public identifier/code and the partner external identifier when provided. Validate Content-Type and template version before printing.
8. Webhooks
Configure one endpoint through /webhooks and subscribe it to all required events. /verify verifies the endpoint, /test sends a test, /rotate-secret rotates the signing secret, and /deliveries plus /retry provide delivery operations.
Verify the signature over the raw body and timestamp, reject stale timestamps, deduplicate by event/delivery ID, return 2xx quickly, process asynchronously, and do not assume ordering. Available events are order.created, order.deleted, order.status_changed, cargo.moved, and cargo.status_changed. Always read the current list from GET /capabilities; new types may be added without an API version change.
Havvo sends HTTPS POST {"id","type","created_at","data"} with X-Havvo-Event, X-Havvo-Event-Id, X-Havvo-Timestamp, and X-Havvo-Signature. The v1=<hex> signature is HMAC-SHA256 over <timestamp>.<raw_body>. Retry delays are 1, 2, 4, 8, 16, and 32 minutes, then at most 60 minutes between attempts. Redirects are not followed. A new endpoint is pending_verification; for webhook.verification, return JSON whose challenge equals data.challenge.
Event example and signature verification
{"id":"evt_01JABCDEF","type":"cargo.status_changed","created_at":"2026-11-30T10:00:00Z","data":{"order_id":"00000000-0000-4000-8000-000000000003","cargo_id":"00000000-0000-4000-8000-000000000004","previous":"EXPECTED","current":"AT_ORIGIN_WAREHOUSE"}}
Verify the signature against the raw body before parsing JSON and use constant-time comparison:
import hashlib, hmac, time
def verify_havvo(raw_body: bytes, timestamp: str, signature: str, secret: str) -> bool:
if abs(time.time() - int(timestamp)) > 300: return False
expected = "v1=" + hmac.new(secret.encode(), timestamp.encode() + b"." + raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, signature)
Insert event_id under a unique constraint, return 2xx, then process from a queue. A duplicate also receives 2xx, but must not execute the business action twice.
9. Finance
Finance is read-only and includes debts by order/cargo, charges, payments, refunds, cancellations, and adjustments. Each currency has a separate balance; never aggregate currencies using an implicit exchange rate. Ledger operations require a stable operation_id, effective time, posting time, decimal amount, currency, running balance, and entity references. Synchronize with cursors, not offsets.
10. References and synchronization
Use /reference/* for cities, geography, branches, directions, client/cargo types, services, statuses, and cancellation reasons. Use cursors/after_id for large datasets and never use a display name as an identifier.
11. Integration verification
Exercise create → update → partial receipt → label → webhook → finance, retry every POST with the same idempotency key, verify invalid webhook signatures and redelivery, confirm foreign UUIDs return 404, and test key plus webhook-secret rotation.
12. Before going live
Use the base URL and key shown in the partner portal; keep secrets in a secret manager; verify HTTPS webhooks, signatures, deduplication and retry queues; handle all documented error codes and exponential backoff with jitter; never convert decimal money to float; avoid secrets and personal data in logs; and verify OpenAPI, Postman, and SDK against the target environment.
13. Artifacts
OpenAPI 3.1
Download openapi.yaml for client generation, request/response validation, or import into Swagger, Redoc, and IDE tools. Before a release, compare it with https://havvo-test.gocrm.uz/api/partner/openapi.json.
Postman
Download the Postman collection . Create an environment with base_url=https://havvo-test.gocrm.uz/api/partner/v1 and a secret api_key variable. Never export an environment containing a real key.
Python SDK
Download havvo_partner.py . It exposes every public operation and supports API-key, idempotency, query, and JSON body parameters. Configure timeouts, retry policy, and logging in the partner application.
14. Errors and recovery
Application errors use {"detail":"ERROR_CODE"} and return X-Request-Id in the response headers. A 422 validation response may contain Pydantic loc, msg, and type entries. For 401, verify environment and key rotation; for 403, verify scopes; 404 deliberately does not distinguish missing from foreign resources; after 409, reload state and apply the lifecycle rules. Retry 429 and 5xx with exponential backoff and jitter. Do not retry 422 unchanged. Use a new idempotency key when the body changes.
15. End-to-end scenarios
Create flow: /account → references → client/address → /orders/preview → /orders → /external-id → label → webhook. Recovery flow: deduplicate the webhook and reload the order and cargo using GET. Zero-downtime credential rotation: issue a second key, verify /account, shift traffic, confirm usage, then revoke the old key. Reconcile finance per currency and persist the cursor of the last confirmed operation.
16. Changelog and compatibility
The major version is fixed in /api/partner/v1; breaking changes require a new major prefix. New optional fields and enum values may be added without a major change, so clients must ignore them safely. The public changelog accompanies the contract. Pin the OpenAPI version, its update date, and the sandbox smoke result in your deployment.
API operation reference
GET /api/partner/v1/account
Account and keys
Api Account Return the partner identity derived from the API key and enabled scopes.
Access X-Havvo-Api-Key
Required scope scope from GET /capabilities
Idempotency Not required
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/account" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example partner_idstringyes Immutable public partner identifier. partner-democodestringyes Alias of the public partner ID. stringpartner_uuidstringyes Compatibility UUID for existing order pricing and party inputs. 00000000-0000-4000-8000-000000000001namestringyes The public-contract value “name”; its accepted type and requirement are shown alongside it. stringlegal_namestring | nullyes Full registered name; required only when client_type=legal. ООО Partner Democountry_idstringyes UUID of an active country from geography. 00000000-0000-4000-8000-000000000010statusstringyes Current public resource state. activescopesarray<string>yes The public-contract value “scopes”; its accepted type and requirement are shown alongside it. ["string"]
{
"partner_id": "string",
"code": "string",
"partner_uuid": "00000000-0000-4000-8000-000000000001",
"name": "string",
"legal_name": "string",
"country_id": "00000000-0000-4000-8000-000000000001",
"status": "string",
"scopes": [
"string"
]
}
GET /api/partner/v1/capabilities
Account and keys
Capabilities Describe effective key scopes and the prerequisite for shared create core.
Access X-Havvo-Api-Key
Required scope scope from GET /capabilities
Idempotency Not required
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/capabilities" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example policyobjectyes The public-contract value “policy”; its accepted type and requirement are shown alongside it. {"direction_ids": ["00000000-0000-4000-8000-000000000001"], "branch_ids": ["00000000-0000-4000-8000-000000000001"], "service_ids": ["00000000-0000-4000-8000-000000000001"], "operations": ["string"]}policy.direction_idsarray<string> | nullyes The public-contract value “direction ids”; its accepted type and requirement are shown alongside it. ["00000000-0000-4000-8000-000000000001"]policy.branch_idsarray<string> | nullyes The public-contract value “branch ids”; its accepted type and requirement are shown alongside it. ["00000000-0000-4000-8000-000000000001"]policy.service_idsarray<string> | nullyes The public-contract value “service ids”; its accepted type and requirement are shown alongside it. ["00000000-0000-4000-8000-000000000001"]policy.operationsarray<string> | nullyes The public-contract value “operations”; its accepted type and requirement are shown alongside it. ["string"]scopesarray<string>yes The public-contract value “scopes”; its accepted type and requirement are shown alongside it. ["string"]webhook_eventsarray<string>yes The public-contract value “webhook events”; its accepted type and requirement are shown alongside it. ["string"]order_creation_principal_readybooleanyes The public-contract value “order creation principal ready”; its accepted type and requirement are shown alongside it. Truefinance_writebooleanyes The public-contract value “finance write”; its accepted type and requirement are shown alongside it. Truelimits_per_minuteobjectyes The public-contract value “limits per minute”; its accepted type and requirement are shown alongside it. {"partner": 1, "key_read": 1, "key_write": 1}limits_per_minute.partnerintegeryes The public-contract value “partner”; its accepted type and requirement are shown alongside it. 1limits_per_minute.key_readintegeryes The public-contract value “key read”; its accepted type and requirement are shown alongside it. 1limits_per_minute.key_writeintegeryes The public-contract value “key write”; its accepted type and requirement are shown alongside it. 1rate_limit_enabledbooleanyes The public-contract value “rate limit enabled”; its accepted type and requirement are shown alongside it. True
{
"policy": {
"direction_ids": null,
"branch_ids": null,
"service_ids": null,
"operations": null
},
"scopes": [
"string"
],
"webhook_events": [
"string"
],
"order_creation_principal_ready": true,
"finance_write": true,
"limits_per_minute": {
"partner": 1,
"key_read": 1,
"key_write": 1
},
"rate_limit_enabled": true
}
GET /api/partner/v1/cargo/{cargo_id}/movements
Orders and cargo
Cargo Movements Returns cargo, warehouse receipt, and movements.
Access X-Havvo-Api-Key
Required scope cargo:read
Idempotency Not required
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/cargo/{cargo_id}/movements" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description cargo_idpath yes UUID of a cargo piece within an order. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example itemsarray<object>yes The public-contract value “items”; its accepted type and requirement are shown alongside it. [{"id": "00000000-0000-4000-8000-000000000001", "event_type": "string", "branch_id": "00000000-0000-4000-8000-000000000001", "branch_name": "string", "quantity_before": 1, "quantity_after": 1, "weight_before": "string", "weight_after": "string", "payload": {}, "occurred_at": "2026-11-30T10:00:00Z"}]items.idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001items.event_typestringyes The public-contract value “event type”; its accepted type and requirement are shown alongside it. stringitems.branch_idstringyes The public-contract value “branch id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001items.branch_namestring | nullyes The public-contract value “branch name”; its accepted type and requirement are shown alongside it. stringitems.quantity_beforeinteger | nullyes The public-contract value “quantity before”; its accepted type and requirement are shown alongside it. 1items.quantity_afterinteger | nullyes The public-contract value “quantity after”; its accepted type and requirement are shown alongside it. 1items.weight_beforestring | nullyes The public-contract value “weight before”; its accepted type and requirement are shown alongside it. stringitems.weight_afterstring | nullyes The public-contract value “weight after”; its accepted type and requirement are shown alongside it. stringitems.payloadobjectyes The public-contract value “payload”; its accepted type and requirement are shown alongside it. {}items.occurred_atstringyes Business event time in ISO 8601 with timezone. 2026-11-30T10:00:00Z
{
"items": [
{
"id": null,
"event_type": null,
"branch_id": null,
"branch_name": null,
"quantity_before": null,
"quantity_after": null,
"weight_before": null,
"weight_after": null,
"payload": null,
"occurred_at": null
}
]
}
GET /api/partner/v1/clients
Clients
Clients Returns partner clients.
Access X-Havvo-Api-Key
Required scope clients:read
Idempotency Not required
Access is limited to current-partner clients; a foreign UUID returns 404.
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/clients" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description qquery no The public-contract value “q”; its accepted type and requirement are shown alongside it. limitquery no Maximum number of items in the page. offsetquery no The public-contract value “offset”; its accepted type and requirement are shown alongside it. before_idquery no The public-contract value “before id”; its accepted type and requirement are shown alongside it. updated_fromquery no The public-contract value “updated from”; its accepted type and requirement are shown alongside it. statusquery no Current public resource state. contactquery no The public-contract value “contact”; its accepted type and requirement are shown alongside it. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example itemsarray<object>yes The public-contract value “items”; its accepted type and requirement are shown alongside it. [{"id": "00000000-0000-4000-8000-000000000001", "custom_id": "string", "client_type": "string", "display_name": "string", "first_name": "string", "last_name": "string", "patronymic": "string", "legal_name": "string", "tax_number": "string", "country_id": "00000000-0000-4000-8000-000000000001", "language_code": "string", "status": "string", "can_create_orders": true, "version": 1, "created_at": "2026-11-30T10:00:00Z", "updated_at": "2026-11-30T10:00:00Z", "contacts": [], "private_data": null}]items.idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001items.custom_idstring | nullyes The public-contract value “custom id”; its accepted type and requirement are shown alongside it. stringitems.client_typestringyes Client type: individual for a person or legal for an organization. individualitems.display_namestringyes Display name of the person or organization. ООО Partner Demoitems.first_namestring | nullyes Person's first name. Алишерitems.last_namestring | nullyes Person's last name. Каримовitems.patronymicstring | nullyes Person's patronymic; omit when it is not used. Акмаловичitems.legal_namestring | nullyes Full registered name; required only when client_type=legal. ООО Partner Demoitems.tax_numberstring | nullyes Organization tax number; omit when it is not applicable in the client's country. 309123456items.country_idstringyes UUID of an active country from geography. 00000000-0000-4000-8000-000000000010items.language_codestringyes Language used for client notifications and documents. Omit it to use the default Russian language; supported values are ru, uz, and en. ruitems.statusstringyes Current public resource state. activeitems.can_create_ordersbooleanyes The public-contract value “can create orders”; its accepted type and requirement are shown alongside it. Trueitems.versionintegeryes The public-contract value “version”; its accepted type and requirement are shown alongside it. 1items.created_atstringyes Server record creation time in ISO 8601 UTC. 2026-11-30T10:00:00Zitems.updated_atstringyes Last record update time in ISO 8601 UTC. 2026-11-30T10:05:00Zitems.contactsarray<object>yes Client phone numbers and email addresses; send only current contacts and mark one per type as primary. [{"type":"phone","value":"+998901234567","is_primary":true}]items.contacts.idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001items.contacts.typestringyes Value type from the relevant reference catalog or operation enum. phoneitems.contacts.valuestringyes Value formatted for the selected type. +998901234567items.contacts.is_primarybooleanyes Marks the primary contact or address; keep only one primary value per type. trueitems.contacts.is_verifiedbooleanyes The public-contract value “is verified”; its accepted type and requirement are shown alongside it. Trueitems.private_dataobject | nullyes Personal identity data. Send only when required for delivery and covered by your lawful basis for processing. nulltotalintegeryes The public-contract value “total”; its accepted type and requirement are shown alongside it. 1limitintegeryes Maximum number of items in the page. 50offsetintegeryes The public-contract value “offset”; its accepted type and requirement are shown alongside it. 1next_cursorstring | nullyes Next-page cursor; null means the end of the collection. cursor-value
{
"items": [
{
"id": null,
"custom_id": null,
"client_type": null,
"display_name": null,
"first_name": null,
"last_name": null,
"patronymic": null,
"legal_name": null,
"tax_number": null,
"country_id": null,
"language_code": null,
"status": null,
"can_create_orders": null,
"version": null,
"created_at": null,
"updated_at": null,
"contacts": null,
"private_data": null
}
],
"total": 1,
"limit": 1,
"offset": 1,
"next_cursor": "00000000-0000-4000-8000-000000000001"
}
POST /api/partner/v1/clients
Clients
Create Client Creates or starts partner clients.
Access X-Havvo-Api-Key
Required scope clients:write
Idempotency Required. A retry with the same key and body returns the same result.
Access is limited to current-partner clients; a foreign UUID returns 404.
Data schema: request Field Type Required Description Example client_typestringyes Client type: individual for a person or legal for an organization. individualdisplay_namestringyes Display name of the person or organization. ООО Partner Demofirst_namestring | nullno Person's first name. Алишерlast_namestring | nullno Person's last name. Каримовpatronymicstring | nullno Person's patronymic; omit when it is not used. Акмаловичlegal_namestring | nullno Full registered name; required only when client_type=legal. ООО Partner Demotax_numberstring | nullno Organization tax number; omit when it is not applicable in the client's country. 309123456country_idstringyes UUID of an active country from geography. 00000000-0000-4000-8000-000000000010language_codestringno Language used for client notifications and documents. Omit it to use the default Russian language; supported values are ru, uz, and en. rucontactsarray<object>no Client phone numbers and email addresses; send only current contacts and mark one per type as primary. [{"type":"phone","value":"+998901234567","is_primary":true}]contacts.typestringyes Value type from the relevant reference catalog or operation enum. phonecontacts.valuestringyes Value formatted for the selected type. +998901234567contacts.is_primarybooleanno Marks the primary contact or address; keep only one primary value per type. trueprivate_dataobject | nullno Personal identity data. Send only when required for delivery and covered by your lawful basis for processing. null
curl -X POST "$HAVVO_BASE_URL/api/partner/v1/clients" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
--data '{
"client_type": "string",
"display_name": "string",
"country_id": "00000000-0000-4000-8000-000000000001"
}'
Parameters Name Location Required Description Idempotency-Keyheader no Unique command key. Reuse it only when retrying the unchanged request after a network failure. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 201, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001custom_idstring | nullyes The public-contract value “custom id”; its accepted type and requirement are shown alongside it. stringclient_typestringyes Client type: individual for a person or legal for an organization. individualdisplay_namestringyes Display name of the person or organization. ООО Partner Demofirst_namestring | nullyes Person's first name. Алишерlast_namestring | nullyes Person's last name. Каримовpatronymicstring | nullyes Person's patronymic; omit when it is not used. Акмаловичlegal_namestring | nullyes Full registered name; required only when client_type=legal. ООО Partner Demotax_numberstring | nullyes Organization tax number; omit when it is not applicable in the client's country. 309123456country_idstringyes UUID of an active country from geography. 00000000-0000-4000-8000-000000000010language_codestringyes Language used for client notifications and documents. Omit it to use the default Russian language; supported values are ru, uz, and en. rustatusstringyes Current public resource state. activecan_create_ordersbooleanyes The public-contract value “can create orders”; its accepted type and requirement are shown alongside it. Trueversionintegeryes The public-contract value “version”; its accepted type and requirement are shown alongside it. 1created_atstringyes Server record creation time in ISO 8601 UTC. 2026-11-30T10:00:00Zupdated_atstringyes Last record update time in ISO 8601 UTC. 2026-11-30T10:05:00Zcontactsarray<object>yes Client phone numbers and email addresses; send only current contacts and mark one per type as primary. [{"type":"phone","value":"+998901234567","is_primary":true}]contacts.idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001contacts.typestringyes Value type from the relevant reference catalog or operation enum. phonecontacts.valuestringyes Value formatted for the selected type. +998901234567contacts.is_primarybooleanyes Marks the primary contact or address; keep only one primary value per type. truecontacts.is_verifiedbooleanyes The public-contract value “is verified”; its accepted type and requirement are shown alongside it. Trueprivate_dataobject | nullyes Personal identity data. Send only when required for delivery and covered by your lawful basis for processing. null
{
"id": "00000000-0000-4000-8000-000000000001",
"custom_id": "string",
"client_type": "string",
"display_name": "string",
"first_name": "string",
"last_name": "string",
"patronymic": "string",
"legal_name": "string",
"tax_number": "string",
"country_id": "00000000-0000-4000-8000-000000000001",
"language_code": "string",
"status": "string",
"can_create_orders": true,
"version": 1,
"created_at": "2026-11-30T10:00:00Z",
"updated_at": "2026-11-30T10:00:00Z",
"contacts": [
{
"id": null,
"type": null,
"value": null,
"is_primary": null,
"is_verified": null
}
],
"private_data": {
"passport_series": null,
"passport_number": null,
"passport_iin": null,
"passport_issued_by": null,
"passport_issued_date": null
}
}
GET /api/partner/v1/clients/{client_id}
Clients
Client Returns partner clients.
Access X-Havvo-Api-Key
Required scope clients:read
Idempotency Not required
Access is limited to current-partner clients; a foreign UUID returns 404.
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/clients/{client_id}" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description client_idpath yes UUID of a client linked to the current partner. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001custom_idstring | nullyes The public-contract value “custom id”; its accepted type and requirement are shown alongside it. stringclient_typestringyes Client type: individual for a person or legal for an organization. individualdisplay_namestringyes Display name of the person or organization. ООО Partner Demofirst_namestring | nullyes Person's first name. Алишерlast_namestring | nullyes Person's last name. Каримовpatronymicstring | nullyes Person's patronymic; omit when it is not used. Акмаловичlegal_namestring | nullyes Full registered name; required only when client_type=legal. ООО Partner Demotax_numberstring | nullyes Organization tax number; omit when it is not applicable in the client's country. 309123456country_idstringyes UUID of an active country from geography. 00000000-0000-4000-8000-000000000010language_codestringyes Language used for client notifications and documents. Omit it to use the default Russian language; supported values are ru, uz, and en. rustatusstringyes Current public resource state. activecan_create_ordersbooleanyes The public-contract value “can create orders”; its accepted type and requirement are shown alongside it. Trueversionintegeryes The public-contract value “version”; its accepted type and requirement are shown alongside it. 1created_atstringyes Server record creation time in ISO 8601 UTC. 2026-11-30T10:00:00Zupdated_atstringyes Last record update time in ISO 8601 UTC. 2026-11-30T10:05:00Zcontactsarray<object>yes Client phone numbers and email addresses; send only current contacts and mark one per type as primary. [{"type":"phone","value":"+998901234567","is_primary":true}]contacts.idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001contacts.typestringyes Value type from the relevant reference catalog or operation enum. phonecontacts.valuestringyes Value formatted for the selected type. +998901234567contacts.is_primarybooleanyes Marks the primary contact or address; keep only one primary value per type. truecontacts.is_verifiedbooleanyes The public-contract value “is verified”; its accepted type and requirement are shown alongside it. Trueprivate_dataobject | nullyes Personal identity data. Send only when required for delivery and covered by your lawful basis for processing. null
{
"id": "00000000-0000-4000-8000-000000000001",
"custom_id": "string",
"client_type": "string",
"display_name": "string",
"first_name": "string",
"last_name": "string",
"patronymic": "string",
"legal_name": "string",
"tax_number": "string",
"country_id": "00000000-0000-4000-8000-000000000001",
"language_code": "string",
"status": "string",
"can_create_orders": true,
"version": 1,
"created_at": "2026-11-30T10:00:00Z",
"updated_at": "2026-11-30T10:00:00Z",
"contacts": [
{
"id": null,
"type": null,
"value": null,
"is_primary": null,
"is_verified": null
}
],
"private_data": {
"passport_series": null,
"passport_number": null,
"passport_iin": null,
"passport_issued_by": null,
"passport_issued_date": null
}
}
PATCH /api/partner/v1/clients/{client_id}
Clients
Update Client Partially updates partner clients.
Access X-Havvo-Api-Key
Required scope clients:write
Idempotency Not required
Access is limited to current-partner clients; a foreign UUID returns 404.
Data schema: request Field Type Required Description Example display_namestring | nullno Display name of the person or organization. ООО Partner Demofirst_namestring | nullno Person's first name. Алишерlast_namestring | nullno Person's last name. Каримовpatronymicstring | nullno Person's patronymic; omit when it is not used. Акмаловичlegal_namestring | nullno Full registered name; required only when client_type=legal. ООО Partner Demotax_numberstring | nullno Organization tax number; omit when it is not applicable in the client's country. 309123456language_codestring | nullno Language used for client notifications and documents. Omit it to use the default Russian language; supported values are ru, uz, and en. ru
curl -X PATCH "$HAVVO_BASE_URL/api/partner/v1/clients/{client_id}" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
--data '{
"display_name": "string",
"first_name": "string",
"last_name": "string",
"patronymic": "string",
"legal_name": "string",
"tax_number": "string",
"language_code": "string"
}'
Parameters Name Location Required Description client_idpath yes UUID of a client linked to the current partner. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001custom_idstring | nullyes The public-contract value “custom id”; its accepted type and requirement are shown alongside it. stringclient_typestringyes Client type: individual for a person or legal for an organization. individualdisplay_namestringyes Display name of the person or organization. ООО Partner Demofirst_namestring | nullyes Person's first name. Алишерlast_namestring | nullyes Person's last name. Каримовpatronymicstring | nullyes Person's patronymic; omit when it is not used. Акмаловичlegal_namestring | nullyes Full registered name; required only when client_type=legal. ООО Partner Demotax_numberstring | nullyes Organization tax number; omit when it is not applicable in the client's country. 309123456country_idstringyes UUID of an active country from geography. 00000000-0000-4000-8000-000000000010language_codestringyes Language used for client notifications and documents. Omit it to use the default Russian language; supported values are ru, uz, and en. rustatusstringyes Current public resource state. activecan_create_ordersbooleanyes The public-contract value “can create orders”; its accepted type and requirement are shown alongside it. Trueversionintegeryes The public-contract value “version”; its accepted type and requirement are shown alongside it. 1created_atstringyes Server record creation time in ISO 8601 UTC. 2026-11-30T10:00:00Zupdated_atstringyes Last record update time in ISO 8601 UTC. 2026-11-30T10:05:00Zcontactsarray<object>yes Client phone numbers and email addresses; send only current contacts and mark one per type as primary. [{"type":"phone","value":"+998901234567","is_primary":true}]contacts.idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001contacts.typestringyes Value type from the relevant reference catalog or operation enum. phonecontacts.valuestringyes Value formatted for the selected type. +998901234567contacts.is_primarybooleanyes Marks the primary contact or address; keep only one primary value per type. truecontacts.is_verifiedbooleanyes The public-contract value “is verified”; its accepted type and requirement are shown alongside it. Trueprivate_dataobject | nullyes Personal identity data. Send only when required for delivery and covered by your lawful basis for processing. null
{
"id": "00000000-0000-4000-8000-000000000001",
"custom_id": "string",
"client_type": "string",
"display_name": "string",
"first_name": "string",
"last_name": "string",
"patronymic": "string",
"legal_name": "string",
"tax_number": "string",
"country_id": "00000000-0000-4000-8000-000000000001",
"language_code": "string",
"status": "string",
"can_create_orders": true,
"version": 1,
"created_at": "2026-11-30T10:00:00Z",
"updated_at": "2026-11-30T10:00:00Z",
"contacts": [
{
"id": null,
"type": null,
"value": null,
"is_primary": null,
"is_verified": null
}
],
"private_data": {
"passport_series": null,
"passport_number": null,
"passport_iin": null,
"passport_issued_by": null,
"passport_issued_date": null
}
}
DELETE /api/partner/v1/clients/{client_id}
Clients
Unlink Client Archive the relationship through the legacy client DELETE endpoint.
Access X-Havvo-Api-Key
Required scope clients:write
Idempotency Not required
Access is limited to current-partner clients; a foreign UUID returns 404.
curl -X DELETE "$HAVVO_BASE_URL/api/partner/v1/clients/{client_id}" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description client_idpath yes UUID of a client linked to the current partner. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 204, 422
Error handling 422 — correct fields listed in detail
GET /api/partner/v1/clients/{client_id}/addresses
Clients
Client Addresses Returns partner clients.
Access X-Havvo-Api-Key
Required scope clients:read
Idempotency Not required
Access is limited to current-partner clients; a foreign UUID returns 404.
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/clients/{client_id}/addresses" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description client_idpath yes UUID of a client linked to the current partner. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example itemsarray<object>yes The public-contract value “items”; its accepted type and requirement are shown alongside it. [{"id": "00000000-0000-4000-8000-000000000001", "label": "string", "country_id": "00000000-0000-4000-8000-000000000001", "region_id": "00000000-0000-4000-8000-000000000001", "city_id": "00000000-0000-4000-8000-000000000001", "region_name": "string", "city_name": "string", "address_line": "string", "street": "string", "house": "string", "apartment": "string", "landmark": "string", "postal_code": "string", "latitude": "string", "longitude": "string", "is_primary": true, "status": "string"}]items.idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001items.labelstring | nullyes The public-contract value “label”; its accepted type and requirement are shown alongside it. stringitems.country_idstringyes UUID of an active country from geography. 00000000-0000-4000-8000-000000000010items.region_idstring | nullyes The public-contract value “region id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001items.city_idstring | nullyes City UUID from the reference catalog. 00000000-0000-4000-8000-000000000011items.region_namestring | nullyes The public-contract value “region name”; its accepted type and requirement are shown alongside it. stringitems.city_namestringyes The public-contract value “city name”; its accepted type and requirement are shown alongside it. stringitems.address_linestringyes Full one-line address for display and printing. Tashkent, Amir Temur 1items.streetstring | nullyes The public-contract value “street”; its accepted type and requirement are shown alongside it. stringitems.housestring | nullyes The public-contract value “house”; its accepted type and requirement are shown alongside it. stringitems.apartmentstring | nullyes The public-contract value “apartment”; its accepted type and requirement are shown alongside it. stringitems.landmarkstring | nullyes The public-contract value “landmark”; its accepted type and requirement are shown alongside it. stringitems.postal_codestring | nullyes Address postal code. 100000items.latitudestring | nullyes The public-contract value “latitude”; its accepted type and requirement are shown alongside it. stringitems.longitudestring | nullyes The public-contract value “longitude”; its accepted type and requirement are shown alongside it. stringitems.is_primarybooleanyes Marks the primary contact or address; keep only one primary value per type. trueitems.statusstringyes Current public resource state. active
{
"items": [
{
"id": null,
"label": null,
"country_id": null,
"region_id": null,
"city_id": null,
"region_name": null,
"city_name": null,
"address_line": null,
"street": null,
"house": null,
"apartment": null,
"landmark": null,
"postal_code": null,
"latitude": null,
"longitude": null,
"is_primary": null,
"status": null
}
]
}
POST /api/partner/v1/clients/{client_id}/addresses
Clients
Create Client Address Creates or starts partner clients.
Access X-Havvo-Api-Key
Required scope clients:write
Idempotency Required. A retry with the same key and body returns the same result.
Access is limited to current-partner clients; a foreign UUID returns 404.
Data schema: request Field Type Required Description Example labelstring | nullno The public-contract value “label”; its accepted type and requirement are shown alongside it. stringcountry_idstringyes UUID of an active country from geography. 00000000-0000-4000-8000-000000000010region_idstring | nullno The public-contract value “region id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001city_idstring | nullno City UUID from the reference catalog. 00000000-0000-4000-8000-000000000011region_namestring | nullno The public-contract value “region name”; its accepted type and requirement are shown alongside it. stringcity_namestringyes The public-contract value “city name”; its accepted type and requirement are shown alongside it. stringaddress_linestringno Full one-line address for display and printing. Tashkent, Amir Temur 1streetstring | nullno The public-contract value “street”; its accepted type and requirement are shown alongside it. stringhousestring | nullno The public-contract value “house”; its accepted type and requirement are shown alongside it. stringapartmentstring | nullno The public-contract value “apartment”; its accepted type and requirement are shown alongside it. stringlandmarkstring | nullno The public-contract value “landmark”; its accepted type and requirement are shown alongside it. stringpostal_codestring | nullno Address postal code. 100000latitudestring | nullno The public-contract value “latitude”; its accepted type and requirement are shown alongside it. stringlongitudestring | nullno The public-contract value “longitude”; its accepted type and requirement are shown alongside it. stringis_primarybooleanno Marks the primary contact or address; keep only one primary value per type. true
curl -X POST "$HAVVO_BASE_URL/api/partner/v1/clients/{client_id}/addresses" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
--data '{
"country_id": "00000000-0000-4000-8000-000000000001",
"city_name": "string"
}'
Parameters Name Location Required Description client_idpath yes UUID of a client linked to the current partner. Idempotency-Keyheader no Unique command key. Reuse it only when retrying the unchanged request after a network failure. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 201, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001labelstring | nullyes The public-contract value “label”; its accepted type and requirement are shown alongside it. stringcountry_idstringyes UUID of an active country from geography. 00000000-0000-4000-8000-000000000010region_idstring | nullyes The public-contract value “region id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001city_idstring | nullyes City UUID from the reference catalog. 00000000-0000-4000-8000-000000000011region_namestring | nullyes The public-contract value “region name”; its accepted type and requirement are shown alongside it. stringcity_namestringyes The public-contract value “city name”; its accepted type and requirement are shown alongside it. stringaddress_linestringyes Full one-line address for display and printing. Tashkent, Amir Temur 1streetstring | nullyes The public-contract value “street”; its accepted type and requirement are shown alongside it. stringhousestring | nullyes The public-contract value “house”; its accepted type and requirement are shown alongside it. stringapartmentstring | nullyes The public-contract value “apartment”; its accepted type and requirement are shown alongside it. stringlandmarkstring | nullyes The public-contract value “landmark”; its accepted type and requirement are shown alongside it. stringpostal_codestring | nullyes Address postal code. 100000latitudestring | nullyes The public-contract value “latitude”; its accepted type and requirement are shown alongside it. stringlongitudestring | nullyes The public-contract value “longitude”; its accepted type and requirement are shown alongside it. stringis_primarybooleanyes Marks the primary contact or address; keep only one primary value per type. truestatusstringyes Current public resource state. active
{
"id": "00000000-0000-4000-8000-000000000001",
"label": "string",
"country_id": "00000000-0000-4000-8000-000000000001",
"region_id": "00000000-0000-4000-8000-000000000001",
"city_id": "00000000-0000-4000-8000-000000000001",
"region_name": "string",
"city_name": "string",
"address_line": "string",
"street": "string",
"house": "string",
"apartment": "string",
"landmark": "string",
"postal_code": "string",
"latitude": "string",
"longitude": "string",
"is_primary": true,
"status": "string"
}
PUT /api/partner/v1/clients/{client_id}/addresses/{address_id}
Clients
Replace Client Address Fully replaces partner clients.
Access X-Havvo-Api-Key
Required scope clients:write
Idempotency Not required
Access is limited to current-partner clients; a foreign UUID returns 404.
Data schema: request Field Type Required Description Example labelstring | nullno The public-contract value “label”; its accepted type and requirement are shown alongside it. stringcountry_idstringyes UUID of an active country from geography. 00000000-0000-4000-8000-000000000010region_idstring | nullno The public-contract value “region id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001city_idstring | nullno City UUID from the reference catalog. 00000000-0000-4000-8000-000000000011region_namestring | nullno The public-contract value “region name”; its accepted type and requirement are shown alongside it. stringcity_namestringyes The public-contract value “city name”; its accepted type and requirement are shown alongside it. stringaddress_linestringno Full one-line address for display and printing. Tashkent, Amir Temur 1streetstring | nullno The public-contract value “street”; its accepted type and requirement are shown alongside it. stringhousestring | nullno The public-contract value “house”; its accepted type and requirement are shown alongside it. stringapartmentstring | nullno The public-contract value “apartment”; its accepted type and requirement are shown alongside it. stringlandmarkstring | nullno The public-contract value “landmark”; its accepted type and requirement are shown alongside it. stringpostal_codestring | nullno Address postal code. 100000latitudestring | nullno The public-contract value “latitude”; its accepted type and requirement are shown alongside it. stringlongitudestring | nullno The public-contract value “longitude”; its accepted type and requirement are shown alongside it. stringis_primarybooleanno Marks the primary contact or address; keep only one primary value per type. true
curl -X PUT "$HAVVO_BASE_URL/api/partner/v1/clients/{client_id}/addresses/{address_id}" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
--data '{
"country_id": "00000000-0000-4000-8000-000000000001",
"city_name": "string"
}'
Parameters Name Location Required Description client_idpath yes UUID of a client linked to the current partner. address_idpath yes The public-contract value “address id”; its accepted type and requirement are shown alongside it. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001labelstring | nullyes The public-contract value “label”; its accepted type and requirement are shown alongside it. stringcountry_idstringyes UUID of an active country from geography. 00000000-0000-4000-8000-000000000010region_idstring | nullyes The public-contract value “region id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001city_idstring | nullyes City UUID from the reference catalog. 00000000-0000-4000-8000-000000000011region_namestring | nullyes The public-contract value “region name”; its accepted type and requirement are shown alongside it. stringcity_namestringyes The public-contract value “city name”; its accepted type and requirement are shown alongside it. stringaddress_linestringyes Full one-line address for display and printing. Tashkent, Amir Temur 1streetstring | nullyes The public-contract value “street”; its accepted type and requirement are shown alongside it. stringhousestring | nullyes The public-contract value “house”; its accepted type and requirement are shown alongside it. stringapartmentstring | nullyes The public-contract value “apartment”; its accepted type and requirement are shown alongside it. stringlandmarkstring | nullyes The public-contract value “landmark”; its accepted type and requirement are shown alongside it. stringpostal_codestring | nullyes Address postal code. 100000latitudestring | nullyes The public-contract value “latitude”; its accepted type and requirement are shown alongside it. stringlongitudestring | nullyes The public-contract value “longitude”; its accepted type and requirement are shown alongside it. stringis_primarybooleanyes Marks the primary contact or address; keep only one primary value per type. truestatusstringyes Current public resource state. active
{
"id": "00000000-0000-4000-8000-000000000001",
"label": "string",
"country_id": "00000000-0000-4000-8000-000000000001",
"region_id": "00000000-0000-4000-8000-000000000001",
"city_id": "00000000-0000-4000-8000-000000000001",
"region_name": "string",
"city_name": "string",
"address_line": "string",
"street": "string",
"house": "string",
"apartment": "string",
"landmark": "string",
"postal_code": "string",
"latitude": "string",
"longitude": "string",
"is_primary": true,
"status": "string"
}
DELETE /api/partner/v1/clients/{client_id}/addresses/{address_id}
Clients
Deactivate Client Address Revokes or archives partner clients.
Access X-Havvo-Api-Key
Required scope clients:write
Idempotency Not required
Access is limited to current-partner clients; a foreign UUID returns 404.
curl -X DELETE "$HAVVO_BASE_URL/api/partner/v1/clients/{client_id}/addresses/{address_id}" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description client_idpath yes UUID of a client linked to the current partner. address_idpath yes The public-contract value “address id”; its accepted type and requirement are shown alongside it. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 204, 422
Error handling 422 — correct fields listed in detail
POST /api/partner/v1/clients/{client_id}/archive
Clients
Archive Client Archives the relationship with an owned client without deleting the client or historical orders.
Access X-Havvo-Api-Key
Required scope clients:write
Idempotency Not required
Access is limited to current-partner clients; a foreign UUID returns 404.
curl -X POST "$HAVVO_BASE_URL/api/partner/v1/clients/{client_id}/archive" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description client_idpath yes UUID of a client linked to the current partner. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001custom_idstring | nullyes The public-contract value “custom id”; its accepted type and requirement are shown alongside it. stringclient_typestringyes Client type: individual for a person or legal for an organization. individualdisplay_namestringyes Display name of the person or organization. ООО Partner Demofirst_namestring | nullyes Person's first name. Алишерlast_namestring | nullyes Person's last name. Каримовpatronymicstring | nullyes Person's patronymic; omit when it is not used. Акмаловичlegal_namestring | nullyes Full registered name; required only when client_type=legal. ООО Partner Demotax_numberstring | nullyes Organization tax number; omit when it is not applicable in the client's country. 309123456country_idstringyes UUID of an active country from geography. 00000000-0000-4000-8000-000000000010language_codestringyes Language used for client notifications and documents. Omit it to use the default Russian language; supported values are ru, uz, and en. rustatusstringyes Current public resource state. activecan_create_ordersbooleanyes The public-contract value “can create orders”; its accepted type and requirement are shown alongside it. Trueversionintegeryes The public-contract value “version”; its accepted type and requirement are shown alongside it. 1created_atstringyes Server record creation time in ISO 8601 UTC. 2026-11-30T10:00:00Zupdated_atstringyes Last record update time in ISO 8601 UTC. 2026-11-30T10:05:00Zcontactsarray<object>yes Client phone numbers and email addresses; send only current contacts and mark one per type as primary. [{"type":"phone","value":"+998901234567","is_primary":true}]contacts.idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001contacts.typestringyes Value type from the relevant reference catalog or operation enum. phonecontacts.valuestringyes Value formatted for the selected type. +998901234567contacts.is_primarybooleanyes Marks the primary contact or address; keep only one primary value per type. truecontacts.is_verifiedbooleanyes The public-contract value “is verified”; its accepted type and requirement are shown alongside it. Trueprivate_dataobject | nullyes Personal identity data. Send only when required for delivery and covered by your lawful basis for processing. null
{
"id": "00000000-0000-4000-8000-000000000001",
"custom_id": "string",
"client_type": "string",
"display_name": "string",
"first_name": "string",
"last_name": "string",
"patronymic": "string",
"legal_name": "string",
"tax_number": "string",
"country_id": "00000000-0000-4000-8000-000000000001",
"language_code": "string",
"status": "string",
"can_create_orders": true,
"version": 1,
"created_at": "2026-11-30T10:00:00Z",
"updated_at": "2026-11-30T10:00:00Z",
"contacts": [
{
"id": null,
"type": null,
"value": null,
"is_primary": null,
"is_verified": null
}
],
"private_data": {
"passport_series": null,
"passport_number": null,
"passport_iin": null,
"passport_issued_by": null,
"passport_issued_date": null
}
}
PUT /api/partner/v1/clients/{client_id}/contacts
Clients
Replace Client Contacts Fully replaces partner clients.
Access X-Havvo-Api-Key
Required scope clients:write
Idempotency Not required
Access is limited to current-partner clients; a foreign UUID returns 404.
Data schema: request Field Type Required Description Example contactsarray<object>yes Client phone numbers and email addresses; send only current contacts and mark one per type as primary. [{"type":"phone","value":"+998901234567","is_primary":true}]contacts.typestringyes Value type from the relevant reference catalog or operation enum. phonecontacts.valuestringyes Value formatted for the selected type. +998901234567contacts.is_primarybooleanno Marks the primary contact or address; keep only one primary value per type. true
curl -X PUT "$HAVVO_BASE_URL/api/partner/v1/clients/{client_id}/contacts" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
--data '{
"contacts": [
{
"type": null,
"value": null
}
]
}'
Parameters Name Location Required Description client_idpath yes UUID of a client linked to the current partner. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001versionintegeryes The public-contract value “version”; its accepted type and requirement are shown alongside it. 1prohibited_goods_evaluationobject | nullno The public-contract value “prohibited goods evaluation”; its accepted type and requirement are shown alongside it. {"enforcement_mode": "off", "direction_id": "00000000-0000-4000-8000-000000000001", "app_code": "crm", "effective_mode": "block"}
{
"id": "00000000-0000-4000-8000-000000000001",
"version": 1
}
PUT /api/partner/v1/clients/{client_id}/private-data
Clients
Replace Client Private Data Fully replaces partner clients.
Access X-Havvo-Api-Key
Required scope clients:write
Idempotency Not required
Access is limited to current-partner clients; a foreign UUID returns 404.
Data schema: request Field Type Required Description Example passport_seriesstring | nullno The public-contract value “passport series”; its accepted type and requirement are shown alongside it. stringpassport_numberstring | nullno The public-contract value “passport number”; its accepted type and requirement are shown alongside it. stringpassport_iinstring | nullno The public-contract value “passport iin”; its accepted type and requirement are shown alongside it. stringpassport_issued_bystring | nullno The public-contract value “passport issued by”; its accepted type and requirement are shown alongside it. stringpassport_issued_datestring | nullno The public-contract value “passport issued date”; its accepted type and requirement are shown alongside it. 2026-11-30
curl -X PUT "$HAVVO_BASE_URL/api/partner/v1/clients/{client_id}/private-data" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
--data '{
"passport_series": "string",
"passport_number": "string",
"passport_iin": "string",
"passport_issued_by": "string",
"passport_issued_date": "2026-11-30"
}'
Parameters Name Location Required Description client_idpath yes UUID of a client linked to the current partner. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001versionintegeryes The public-contract value “version”; its accepted type and requirement are shown alongside it. 1prohibited_goods_evaluationobject | nullno The public-contract value “prohibited goods evaluation”; its accepted type and requirement are shown alongside it. {"enforcement_mode": "off", "direction_id": "00000000-0000-4000-8000-000000000001", "app_code": "crm", "effective_mode": "block"}
{
"id": "00000000-0000-4000-8000-000000000001",
"version": 1
}
GET /api/partner/v1/finance/debts
Finance
Finance Debts Returns debt for owned orders and cargo with filters and separate currencies.
Access X-Havvo-Api-Key
Required scope finance:read
Idempotency Not required
Read-only; amounts are decimal strings and currencies remain separate.
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/finance/debts" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description limitquery no Maximum number of items in the page. cursorquery no The public-contract value “cursor”; its accepted type and requirement are shown alongside it. order_idquery no UUID of the current partner's order. client_idquery no UUID of a client linked to the current partner. cargo_idquery no UUID of a cargo piece within an order. currencyquery no Three-letter currency code; balances are never combined. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example itemsarray<object>yes The public-contract value “items”; its accepted type and requirement are shown alongside it. [{"order_id": "00000000-0000-4000-8000-000000000001", "client_ids": ["00000000-0000-4000-8000-000000000001"], "cargo": [], "currency": "string", "charged": "string", "allocated": "string", "amount": "string"}]items.order_idstringyes UUID of the current partner's order. 00000000-0000-4000-8000-000000000003items.client_idsarray<string>yes Related partner clients, including archived links. Amount is per order. ["00000000-0000-4000-8000-000000000001"]items.cargoarray<object>yes The public-contract value “cargo”; its accepted type and requirement are shown alongside it. [{"cargo_id": "00000000-0000-4000-8000-000000000001", "charged": "string", "amount": "string"}]items.cargo.cargo_idstringyes UUID of a cargo piece within an order. 00000000-0000-4000-8000-000000000004items.cargo.chargedstring | nullyes The public-contract value “charged”; its accepted type and requirement are shown alongside it. stringitems.cargo.amountstring | nullyes Monetary amount as a decimal string, never float. 125.50items.currencystring | nullyes Three-letter currency code; balances are never combined. USDitems.chargedstringyes The public-contract value “charged”; its accepted type and requirement are shown alongside it. stringitems.allocatedstringyes The public-contract value “allocated”; its accepted type and requirement are shown alongside it. stringitems.amountstringyes Monetary amount as a decimal string, never float. 125.50next_cursorstring | nullyes Next-page cursor; null means the end of the collection. cursor-value
{
"items": [
{
"order_id": null,
"client_ids": null,
"cargo": null,
"currency": null,
"charged": null,
"allocated": null,
"amount": null
}
],
"next_cursor": "00000000-0000-4000-8000-000000000001"
}
GET /api/partner/v1/finance/ledger
Finance
Finance Ledger Returns the complete newest-first financial ledger using cursor pagination.
Access X-Havvo-Api-Key
Required scope finance:read
Idempotency Not required
Read-only; amounts are decimal strings and currencies remain separate.
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/finance/ledger" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description limitquery no Maximum number of items in the page. cursorquery no The public-contract value “cursor”; its accepted type and requirement are shown alongside it. order_idquery no UUID of the current partner's order. client_idquery no UUID of a client linked to the current partner. cargo_idquery no UUID of a cargo piece within an order. currencyquery no Three-letter currency code; balances are never combined. occurred_fromquery no The public-contract value “occurred from”; its accepted type and requirement are shown alongside it. occurred_toquery no The public-contract value “occurred to”; its accepted type and requirement are shown alongside it. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example itemsarray<object>yes The public-contract value “items”; its accepted type and requirement are shown alongside it. [{"operation_id": "string", "operation_type": "charge", "occurred_at": "2026-11-30T10:00:00Z", "currency": "string", "amount": "string", "balance_type": "wallet", "balance_id": "00000000-0000-4000-8000-000000000001", "balance_change": "string", "balance_before": "string", "balance_after": "string", "payment_id": "00000000-0000-4000-8000-000000000001", "status": "string", "client_ids": ["00000000-0000-4000-8000-000000000001"], "order_ids": ["00000000-0000-4000-8000-000000000001"], "cargo_ids": ["00000000-0000-4000-8000-000000000001"]}]items.operation_idstringyes Stable operation identifier for deduplication. op:00000000-0000-4000-8000-000000000001items.operation_typestringyes The public-contract value “operation type”; its accepted type and requirement are shown alongside it. Enum: charge, recalculation, price_snapshot, payment, adjustment, refund, wallet, wallet_opening, wallet_snapshot, allocation, allocation_reversal chargeitems.occurred_atstringyes Business event time in ISO 8601 with timezone. 2026-11-30T10:00:00Zitems.currencystring | nullyes Three-letter currency code; balances are never combined. USDitems.amountstringyes Monetary amount as a decimal string, never float. 125.50items.balance_typestringyes The public-contract value “balance type”; its accepted type and requirement are shown alongside it. Enum: wallet, order, payment walletitems.balance_idstringyes ID of the wallet, order or payment whose balance changed. 00000000-0000-4000-8000-000000000001items.balance_changestring | nullyes Signed change, in the currency and balance identified by this row. stringitems.balance_beforestring | nullyes The public-contract value “balance before”; its accepted type and requirement are shown alongside it. stringitems.balance_afterstring | nullyes The public-contract value “balance after”; its accepted type and requirement are shown alongside it. stringitems.payment_idstring | nullyes The public-contract value “payment id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001items.statusstring | nullyes Current public resource state. activeitems.client_idsarray<string>yes The public-contract value “client ids”; its accepted type and requirement are shown alongside it. ["00000000-0000-4000-8000-000000000001"]items.order_idsarray<string>yes The public-contract value “order ids”; its accepted type and requirement are shown alongside it. ["00000000-0000-4000-8000-000000000001"]items.cargo_idsarray<string>yes The public-contract value “cargo ids”; its accepted type and requirement are shown alongside it. ["00000000-0000-4000-8000-000000000001"]next_cursorstring | nullyes Next-page cursor; null means the end of the collection. cursor-value
{
"items": [
{
"operation_id": null,
"operation_type": null,
"occurred_at": null,
"currency": null,
"amount": null,
"balance_type": null,
"balance_id": null,
"balance_change": null,
"balance_before": null,
"balance_after": null,
"payment_id": null,
"status": null,
"client_ids": null,
"order_ids": null,
"cargo_ids": null
}
],
"next_cursor": "string"
}
GET /api/partner/v1/finance/payments
Finance
Payments Returns the per-currency financial ledger, debt, and payments.
Access X-Havvo-Api-Key
Required scope finance:read
Idempotency Not required
Read-only; amounts are decimal strings and currencies remain separate.
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/finance/payments" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description limitquery no Maximum number of items in the page. offsetquery no The public-contract value “offset”; its accepted type and requirement are shown alongside it. occurred_fromquery no The public-contract value “occurred from”; its accepted type and requirement are shown alongside it. occurred_toquery no The public-contract value “occurred to”; its accepted type and requirement are shown alongside it. statusquery no Current public resource state. currencyquery no Three-letter currency code; balances are never combined. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example itemsarray<object>yes The public-contract value “items”; its accepted type and requirement are shown alongside it. [{"id": "00000000-0000-4000-8000-000000000001", "amount": "string", "unallocated_amount": "string", "method": "string", "currency": "string", "status": "string", "comment": "string", "occurred_at": "2026-11-30T10:00:00Z", "allocations": []}]items.idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001items.amountstringyes Monetary amount as a decimal string, never float. 125.50items.unallocated_amountstringyes The public-contract value “unallocated amount”; its accepted type and requirement are shown alongside it. stringitems.methodstringyes The public-contract value “method”; its accepted type and requirement are shown alongside it. stringitems.currencystring | nullyes Three-letter currency code; balances are never combined. USDitems.statusstringyes Current public resource state. activeitems.commentstring | nullyes Partner order comment; do not include secrets. Handle with careitems.occurred_atstringyes Business event time in ISO 8601 with timezone. 2026-11-30T10:00:00Zitems.allocationsarray<object>yes The public-contract value “allocations”; its accepted type and requirement are shown alongside it. [{"order_id": "00000000-0000-4000-8000-000000000001", "amount": "string", "currency": "string"}]items.allocations.order_idstringyes UUID of the current partner's order. 00000000-0000-4000-8000-000000000003items.allocations.amountstringyes Monetary amount as a decimal string, never float. 125.50items.allocations.currencystring | nullyes Three-letter currency code; balances are never combined. USDtotalintegeryes The public-contract value “total”; its accepted type and requirement are shown alongside it. 1limitintegeryes Maximum number of items in the page. 50offsetintegeryes The public-contract value “offset”; its accepted type and requirement are shown alongside it. 1
{
"items": [
{
"id": null,
"amount": null,
"unallocated_amount": null,
"method": null,
"currency": null,
"status": null,
"comment": null,
"occurred_at": null,
"allocations": null
}
],
"total": 1,
"limit": 1,
"offset": 1
}
GET /api/partner/v1/finance/payments/{payment_id}/statement.pdf
Finance
Payment Statement Returns the per-currency financial ledger, debt, and payments.
Access X-Havvo-Api-Key
Required scope finance:read
Idempotency Not required
Read-only; amounts are decimal strings and currencies remain separate.
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/finance/payments/{payment_id}/statement.pdf" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description payment_idpath yes The public-contract value “payment id”; its accepted type and requirement are shown alongside it. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
GET /api/partner/v1/finance/summary
Finance
Finance Summary Returns the per-currency financial ledger, debt, and payments.
Access X-Havvo-Api-Key
Required scope finance:read
Idempotency Not required
Read-only; amounts are decimal strings and currencies remain separate.
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/finance/summary" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example walletsarray<object>yes The public-contract value “wallets”; its accepted type and requirement are shown alongside it. [{"currency": "string", "balance": "string", "updated_at": "2026-11-30T10:00:00Z"}]wallets.currencystringyes Three-letter currency code; balances are never combined. USDwallets.balancestringyes Running balance after the operation in the same currency. 250.00wallets.updated_atstringyes Last record update time in ISO 8601 UTC. 2026-11-30T10:05:00Zdebtsarray<object>yes The public-contract value “debts”; its accepted type and requirement are shown alongside it. [{"currency": "string", "amount": "string"}]debts.currencystringyes Three-letter currency code; balances are never combined. USDdebts.amountstringyes Monetary amount as a decimal string, never float. 125.50
{
"wallets": [
{
"currency": null,
"balance": null,
"updated_at": null
}
],
"debts": [
{
"currency": null,
"amount": null
}
]
}
POST /api/partner/v1/keys/current/rotate
Account and keys
Rotate Current Key Creates or starts rotation of the current API key without changing the partner.
Access X-Havvo-Api-Key
Required scope scope from GET /capabilities
Idempotency Required. A retry with the same key and body returns the same result.
Data schema: request Field Type Required Description Example grace_secondsintegerno The public-contract value “grace seconds”; its accepted type and requirement are shown alongside it. 300
curl -X POST "$HAVVO_BASE_URL/api/partner/v1/keys/current/rotate" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
--data '{
"grace_seconds": 300
}'
Parameters Name Location Required Description Idempotency-Keyheader yes Unique command key. Reuse it only when retrying the unchanged request after a network failure. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001namestringyes The public-contract value “name”; its accepted type and requirement are shown alongside it. stringprefixstringyes The public-contract value “prefix”; its accepted type and requirement are shown alongside it. stringmasked_keystringyes The public-contract value “masked key”; its accepted type and requirement are shown alongside it. stringscopesarray<string>yes The public-contract value “scopes”; its accepted type and requirement are shown alongside it. ["string"]statusstringyes Current public resource state. activeexpires_atstring | nullyes The public-contract value “expires at”; its accepted type and requirement are shown alongside it. 2026-11-30T10:00:00Zlast_used_atstring | nullyes The public-contract value “last used at”; its accepted type and requirement are shown alongside it. 2026-11-30T10:00:00Zcreated_atstringyes Server record creation time in ISO 8601 UTC. 2026-11-30T10:00:00Ztokenstring | nullno The public-contract value “token”; its accepted type and requirement are shown alongside it. stringprevious_valid_untilstringyes The public-contract value “previous valid until”; its accepted type and requirement are shown alongside it. 2026-11-30T10:00:00Z
{
"id": "00000000-0000-4000-8000-000000000001",
"name": "string",
"prefix": "string",
"masked_key": "string",
"scopes": [
"string"
],
"status": "string",
"expires_at": "2026-11-30T10:00:00Z",
"last_used_at": "2026-11-30T10:00:00Z",
"created_at": "2026-11-30T10:00:00Z",
"previous_valid_until": "2026-11-30T10:00:00Z"
}
GET /api/partner/v1/orders
Orders and cargo
Orders Returns partner orders and their lifecycle.
Access X-Havvo-Api-Key
Required scope orders:read
Idempotency Not required
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/orders" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description limitquery no Maximum number of items in the page. offsetquery no The public-contract value “offset”; its accepted type and requirement are shown alongside it. operational_statusquery no Operational order status from the public status catalog. created_fromquery no The public-contract value “created from”; its accepted type and requirement are shown alongside it. created_toquery no The public-contract value “created to”; its accepted type and requirement are shown alongside it. updated_fromquery no The public-contract value “updated from”; its accepted type and requirement are shown alongside it. tracking_codequery no Public Havvo tracking code. before_idquery no The public-contract value “before id”; its accepted type and requirement are shown alongside it. external_tracking_codequery no The public-contract value “external tracking code”; its accepted type and requirement are shown alongside it. legacy_idquery no The public-contract value “legacy id”; its accepted type and requirement are shown alongside it. external_idquery no Stable order identifier in the partner system. sortquery no The public-contract value “sort”; its accepted type and requirement are shown alongside it. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example itemsarray<object>yes The public-contract value “items”; its accepted type and requirement are shown alongside it. [{"id": "00000000-0000-4000-8000-000000000001", "number": 1, "tracking_code": "string", "operational_status": "string", "fulfillment_state": "string", "financial_status": "string", "lifecycle_state": "string", "estimated_total": "string", "currency": "string", "created_at": "2026-11-30T10:00:00Z", "updated_at": "2026-11-30T10:00:00Z"}]items.idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001items.numberintegeryes The public-contract value “number”; its accepted type and requirement are shown alongside it. 1items.tracking_codestringyes Public Havvo tracking code. HV260001234items.operational_statusstringyes Operational order status from the public status catalog. NEWitems.fulfillment_statestringyes Delivery fulfillment state. pendingitems.financial_statusstringyes Order payment or debt state. unpaiditems.lifecycle_statestringyes Lifecycle state: active, cancelled, or deleted. activeitems.estimated_totalstringyes The public-contract value “estimated total”; its accepted type and requirement are shown alongside it. stringitems.currencystringyes Three-letter currency code; balances are never combined. USDitems.created_atstringyes Server record creation time in ISO 8601 UTC. 2026-11-30T10:00:00Zitems.updated_atstringyes Last record update time in ISO 8601 UTC. 2026-11-30T10:05:00Ztotalintegeryes The public-contract value “total”; its accepted type and requirement are shown alongside it. 1limitintegeryes Maximum number of items in the page. 50offsetintegeryes The public-contract value “offset”; its accepted type and requirement are shown alongside it. 1next_cursorstring | nullyes Next-page cursor; null means the end of the collection. cursor-value
{
"items": [
{
"id": null,
"number": null,
"tracking_code": null,
"operational_status": null,
"fulfillment_state": null,
"financial_status": null,
"lifecycle_state": null,
"estimated_total": null,
"currency": null,
"created_at": null,
"updated_at": null
}
],
"total": 1,
"limit": 1,
"offset": 1,
"next_cursor": "00000000-0000-4000-8000-000000000001"
}
POST /api/partner/v1/orders
Orders and cargo
Create Order Create a partner-owned order using the same validation and price lock as the CRM.
Access X-Havvo-Api-Key
Required scope orders:write
Idempotency Required. A retry with the same key and body returns the same result.
The command enforces order-state and per-cargo receipt rules.
Data schema: request Field Type Required Description Example source_channelstringyes The public-contract value “source channel”; its accepted type and requirement are shown alongside it. stringdirection_idstringyes The public-contract value “direction id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001route_version_idstringyes The public-contract value “route version id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001tariff_version_idstringyes The public-contract value “tariff version id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001partiesarray<object>no The public-contract value “parties”; its accepted type and requirement are shown alongside it. [{"role": "string"}]parties.rolestringyes The public-contract value “role”; its accepted type and requirement are shown alongside it. stringparties.client_idstring | nullno UUID of a client linked to the current partner. 00000000-0000-4000-8000-000000000002parties.partner_idstring | nullno Immutable public partner identifier. partner-demoparties.payment_sharenumber | string | nullno The public-contract value “payment share”; its accepted type and requirement are shown alongside it. 1.00parties.address_idstring | nullno The public-contract value “address id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001parties.cdek_delivery_point_codestring | nullno The public-contract value “cdek delivery point code”; its accepted type and requirement are shown alongside it. stringparties.cdek_delivery_pointobject | nullno The public-contract value “cdek delivery point”; its accepted type and requirement are shown alongside it. {"code": "string", "name": "string", "selection_source": "automatic"}itemsarray<object>yes The public-contract value “items”; its accepted type and requirement are shown alongside it. [{"cargo_type_id": "00000000-0000-4000-8000-000000000001", "declared_weight": "1.00"}]items.prohibited_goods_rule_idsarray<string>no The public-contract value “prohibited goods rule ids”; its accepted type and requirement are shown alongside it. ["00000000-0000-4000-8000-000000000001"]items.entry_typestringno The public-contract value “entry type”; its accepted type and requirement are shown alongside it. packageitems.package_keystring | nullno The public-contract value “package key”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001items.packaging_namestring | nullno The public-contract value “packaging name”; its accepted type and requirement are shown alongside it. stringitems.cargo_type_idstringyes The public-contract value “cargo type id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001items.external_tracking_codestring | nullno The public-contract value “external tracking code”; its accepted type and requirement are shown alongside it. stringitems.additional_tracking_codesarray<string>no The public-contract value “additional tracking codes”; its accepted type and requirement are shown alongside it. ["string"]items.additional_tracking_commentsarray<string | null>no The public-contract value “additional tracking comments”; its accepted type and requirement are shown alongside it. ["string"]items.descriptionstring | nullno The public-contract value “description”; its accepted type and requirement are shown alongside it. stringitems.quantityintegerno Number of units; must be positive. 1items.declared_weightnumber | stringyes The public-contract value “declared weight”; its accepted type and requirement are shown alongside it. 1.00items.length_cmnumber | string | nullno The public-contract value “length cm”; its accepted type and requirement are shown alongside it. 1.00items.width_cmnumber | string | nullno The public-contract value “width cm”; its accepted type and requirement are shown alongside it. 1.00items.height_cmnumber | string | nullno The public-contract value “height cm”; its accepted type and requirement are shown alongside it. 1.00items.declared_valuenumber | string | nullno The public-contract value “declared value”; its accepted type and requirement are shown alongside it. 1.00servicesarray<object>no The public-contract value “services”; its accepted type and requirement are shown alongside it. [{"service_id": "00000000-0000-4000-8000-000000000001"}]services.service_idstringyes The public-contract value “service id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001services.quantitynumber | stringno Number of units; must be positive. 1services.override_amountnumber | string | nullno The public-contract value “override amount”; its accepted type and requirement are shown alongside it. 1.00commentstring | nullno Partner order comment; do not include secrets. Handle with carepricing_client_idstring | nullno The public-contract value “pricing client id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001pricing_partner_idstring | nullno The public-contract value “pricing partner id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001prohibited_goods_confirmationsarray<string>no The public-contract value “prohibited goods confirmations”; its accepted type and requirement are shown alongside it. ["string"]expected_totalnumber | stringyes Expected order total after the change; use the value returned by preview. 125.50
curl -X POST "$HAVVO_BASE_URL/api/partner/v1/orders" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
--data '{
"source_channel": "string",
"direction_id": "00000000-0000-4000-8000-000000000001",
"route_version_id": "00000000-0000-4000-8000-000000000001",
"tariff_version_id": "00000000-0000-4000-8000-000000000001",
"items": [
{
"cargo_type_id": null,
"declared_weight": null
}
],
"expected_total": "1.00"
}'
Parameters Name Location Required Description Idempotency-Keyheader yes Unique command key. Reuse it only when retrying the unchanged request after a network failure. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 201, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example prohibited_goods_evaluationobject | nullno The public-contract value “prohibited goods evaluation”; its accepted type and requirement are shown alongside it. {"enforcement_mode": "off", "direction_id": "00000000-0000-4000-8000-000000000001", "app_code": "crm", "effective_mode": "block"}idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001public_numberintegeryes The public-contract value “public number”; its accepted type and requirement are shown alongside it. 1tracking_codestringyes Public Havvo tracking code. HV260001234operational_statusstringyes Operational order status from the public status catalog. NEWfulfillment_statestringyes Delivery fulfillment state. pendingfinancial_statusstringyes Order payment or debt state. unpaidlifecycle_statestringyes Lifecycle state: active, cancelled, or deleted. activeestimated_totalstringyes The public-contract value “estimated total”; its accepted type and requirement are shown alongside it. stringpaid_totalstringno The public-contract value “paid total”; its accepted type and requirement are shown alongside it. 0external_paidstringno The public-contract value “external paid”; its accepted type and requirement are shown alongside it. 0balance_paidstringno The public-contract value “balance paid”; its accepted type and requirement are shown alongside it. 0bonus_paidstringno The public-contract value “bonus paid”; its accepted type and requirement are shown alongside it. 0currency_codestringyes The public-contract value “currency code”; its accepted type and requirement are shown alongside it. stringversionintegeryes The public-contract value “version”; its accepted type and requirement are shown alongside it. 1tariff_recalculatedbooleanno The public-contract value “tariff recalculated”; its accepted type and requirement are shown alongside it. False
{
"id": "00000000-0000-4000-8000-000000000001",
"public_number": 1,
"tracking_code": "string",
"operational_status": "string",
"fulfillment_state": "string",
"financial_status": "string",
"lifecycle_state": "string",
"estimated_total": "string",
"currency_code": "string",
"version": 1
}
POST /api/partner/v1/orders/preview
Orders and cargo
Preview Order Calculate a partner's order without creating an order or a payment.
Access X-Havvo-Api-Key
Required scope orders:write
Idempotency Not required
The command enforces order-state and per-cargo receipt rules.
Data schema: request Field Type Required Description Example source_channelstringyes The public-contract value “source channel”; its accepted type and requirement are shown alongside it. stringdirection_idstringyes The public-contract value “direction id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001route_version_idstringyes The public-contract value “route version id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001tariff_version_idstringyes The public-contract value “tariff version id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001partiesarray<object>no The public-contract value “parties”; its accepted type and requirement are shown alongside it. [{"role": "string"}]parties.rolestringyes The public-contract value “role”; its accepted type and requirement are shown alongside it. stringparties.client_idstring | nullno UUID of a client linked to the current partner. 00000000-0000-4000-8000-000000000002parties.partner_idstring | nullno Immutable public partner identifier. partner-demoparties.payment_sharenumber | string | nullno The public-contract value “payment share”; its accepted type and requirement are shown alongside it. 1.00parties.address_idstring | nullno The public-contract value “address id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001parties.cdek_delivery_point_codestring | nullno The public-contract value “cdek delivery point code”; its accepted type and requirement are shown alongside it. stringparties.cdek_delivery_pointobject | nullno The public-contract value “cdek delivery point”; its accepted type and requirement are shown alongside it. {"code": "string", "name": "string", "selection_source": "automatic"}itemsarray<object>yes The public-contract value “items”; its accepted type and requirement are shown alongside it. [{"cargo_type_id": "00000000-0000-4000-8000-000000000001", "declared_weight": "1.00"}]items.prohibited_goods_rule_idsarray<string>no The public-contract value “prohibited goods rule ids”; its accepted type and requirement are shown alongside it. ["00000000-0000-4000-8000-000000000001"]items.entry_typestringno The public-contract value “entry type”; its accepted type and requirement are shown alongside it. packageitems.package_keystring | nullno The public-contract value “package key”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001items.packaging_namestring | nullno The public-contract value “packaging name”; its accepted type and requirement are shown alongside it. stringitems.cargo_type_idstringyes The public-contract value “cargo type id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001items.external_tracking_codestring | nullno The public-contract value “external tracking code”; its accepted type and requirement are shown alongside it. stringitems.additional_tracking_codesarray<string>no The public-contract value “additional tracking codes”; its accepted type and requirement are shown alongside it. ["string"]items.additional_tracking_commentsarray<string | null>no The public-contract value “additional tracking comments”; its accepted type and requirement are shown alongside it. ["string"]items.descriptionstring | nullno The public-contract value “description”; its accepted type and requirement are shown alongside it. stringitems.quantityintegerno Number of units; must be positive. 1items.declared_weightnumber | stringyes The public-contract value “declared weight”; its accepted type and requirement are shown alongside it. 1.00items.length_cmnumber | string | nullno The public-contract value “length cm”; its accepted type and requirement are shown alongside it. 1.00items.width_cmnumber | string | nullno The public-contract value “width cm”; its accepted type and requirement are shown alongside it. 1.00items.height_cmnumber | string | nullno The public-contract value “height cm”; its accepted type and requirement are shown alongside it. 1.00items.declared_valuenumber | string | nullno The public-contract value “declared value”; its accepted type and requirement are shown alongside it. 1.00servicesarray<object>no The public-contract value “services”; its accepted type and requirement are shown alongside it. [{"service_id": "00000000-0000-4000-8000-000000000001"}]services.service_idstringyes The public-contract value “service id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001services.quantitynumber | stringno Number of units; must be positive. 1services.override_amountnumber | string | nullno The public-contract value “override amount”; its accepted type and requirement are shown alongside it. 1.00commentstring | nullno Partner order comment; do not include secrets. Handle with carepricing_client_idstring | nullno The public-contract value “pricing client id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001pricing_partner_idstring | nullno The public-contract value “pricing partner id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001
curl -X POST "$HAVVO_BASE_URL/api/partner/v1/orders/preview" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
--data '{
"source_channel": "string",
"direction_id": "00000000-0000-4000-8000-000000000001",
"route_version_id": "00000000-0000-4000-8000-000000000001",
"tariff_version_id": "00000000-0000-4000-8000-000000000001",
"items": [
{
"cargo_type_id": null,
"declared_weight": null
}
]
}'
Parameters Name Location Required Description X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example prohibited_goods_evaluationobject | nullno The public-contract value “prohibited goods evaluation”; its accepted type and requirement are shown alongside it. {"enforcement_mode": "off", "direction_id": "00000000-0000-4000-8000-000000000001", "app_code": "crm", "effective_mode": "block"}tariff_plan_idstringyes The public-contract value “tariff plan id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001tariff_version_idstringyes The public-contract value “tariff version id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001route_version_idstringyes The public-contract value “route version id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001currency_codestringyes The public-contract value “currency code”; its accepted type and requirement are shown alongside it. stringitemsarray<object>yes The public-contract value “items”; its accepted type and requirement are shown alongside it. [{"cargo_type_id": "00000000-0000-4000-8000-000000000001", "external_tracking_code": "string", "actual_weight": "string", "volumetric_weight": "string", "calculation_weight": "string", "unit_price": "string", "amount": "string", "source": "string"}]items.cargo_type_idstringyes The public-contract value “cargo type id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001items.external_tracking_codestring | nullyes The public-contract value “external tracking code”; its accepted type and requirement are shown alongside it. stringitems.entry_typestring | nullno The public-contract value “entry type”; its accepted type and requirement are shown alongside it. packageitems.package_keystring | nullno The public-contract value “package key”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001items.quantityintegerno Number of units; must be positive. 1items.pricing_quantityintegerno The public-contract value “pricing quantity”; its accepted type and requirement are shown alongside it. 1items.logistic_quantityintegerno The public-contract value “logistic quantity”; its accepted type and requirement are shown alongside it. 1items.measurement_basisstringno The public-contract value “measurement basis”; its accepted type and requirement are shown alongside it. Enum: per_unit, total totalitems.actual_weightstringyes The public-contract value “actual weight”; its accepted type and requirement are shown alongside it. stringitems.volumetric_weightstring | nullyes The public-contract value “volumetric weight”; its accepted type and requirement are shown alongside it. stringitems.calculation_weightstringyes The public-contract value “calculation weight”; its accepted type and requirement are shown alongside it. stringitems.calculation_unitstringno The public-contract value “calculation unit”; its accepted type and requirement are shown alongside it. kgitems.unit_actual_weightstring | nullno The public-contract value “unit actual weight”; its accepted type and requirement are shown alongside it. stringitems.total_actual_weightstring | nullno The public-contract value “total actual weight”; its accepted type and requirement are shown alongside it. stringitems.unit_volumetric_weightstring | nullno The public-contract value “unit volumetric weight”; its accepted type and requirement are shown alongside it. stringitems.total_volumetric_weightstring | nullno The public-contract value “total volumetric weight”; its accepted type and requirement are shown alongside it. stringitems.unit_calculation_weightstring | nullno The public-contract value “unit calculation weight”; its accepted type and requirement are shown alongside it. stringitems.total_calculation_weightstring | nullno The public-contract value “total calculation weight”; its accepted type and requirement are shown alongside it. stringitems.unit_declared_valuestring | nullno The public-contract value “unit declared value”; its accepted type and requirement are shown alongside it. stringitems.total_declared_valuestring | nullno The public-contract value “total declared value”; its accepted type and requirement are shown alongside it. stringitems.unit_pricestringyes The public-contract value “unit price”; its accepted type and requirement are shown alongside it. stringitems.amountstringyes Monetary amount as a decimal string, never float. 125.50items.sourcestringyes The public-contract value “source”; its accepted type and requirement are shown alongside it. stringservicesarray<object>no The public-contract value “services”; its accepted type and requirement are shown alongside it. [{"service_id": "00000000-0000-4000-8000-000000000001", "quantity": "string", "unit_amount": "string", "amount": "string", "currency_code": "string", "source": "string"}]services.service_idstringyes The public-contract value “service id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001services.calculation_unitstring | nullno The public-contract value “calculation unit”; its accepted type and requirement are shown alongside it. stringservices.base_amountstring | nullno The public-contract value “base amount”; its accepted type and requirement are shown alongside it. stringservices.quantitystringyes Number of units; must be positive. 1services.unit_amountstringyes The public-contract value “unit amount”; its accepted type and requirement are shown alongside it. stringservices.amountstringyes Monetary amount as a decimal string, never float. 125.50services.currency_codestringyes The public-contract value “currency code”; its accepted type and requirement are shown alongside it. stringservices.sourcestringyes The public-contract value “source”; its accepted type and requirement are shown alongside it. stringestimated_totalstringyes The public-contract value “estimated total”; its accepted type and requirement are shown alongside it. stringwarningsarray<string>yes The public-contract value “warnings”; its accepted type and requirement are shown alongside it. ["string"]quantity_semanticsstringno The public-contract value “quantity semantics”; its accepted type and requirement are shown alongside it. total
{
"tariff_plan_id": "00000000-0000-4000-8000-000000000001",
"tariff_version_id": "00000000-0000-4000-8000-000000000001",
"route_version_id": "00000000-0000-4000-8000-000000000001",
"currency_code": "string",
"items": [
{
"cargo_type_id": null,
"external_tracking_code": null,
"actual_weight": null,
"volumetric_weight": null,
"calculation_weight": null,
"unit_price": null,
"amount": null,
"source": null
}
],
"estimated_total": "string",
"warnings": [
"string"
]
}
GET /api/partner/v1/orders/{order_id}
Orders and cargo
Order Returns partner orders and their lifecycle.
Access X-Havvo-Api-Key
Required scope orders:read
Idempotency Not required
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/orders/{order_id}" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description order_idpath yes UUID of the current partner's order. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001numberintegeryes The public-contract value “number”; its accepted type and requirement are shown alongside it. 1tracking_codestringyes Public Havvo tracking code. HV260001234operational_statusstringyes Operational order status from the public status catalog. NEWfulfillment_statestringyes Delivery fulfillment state. pendingfinancial_statusstringyes Order payment or debt state. unpaidlifecycle_statestringyes Lifecycle state: active, cancelled, or deleted. activeitemsarray<object>yes The public-contract value “items”; its accepted type and requirement are shown alongside it. [{"is_editable": true, "can_cancel": true, "can_delete": true, "locked_at": "2026-11-30T10:00:00Z", "lock_reason": null, "id": "00000000-0000-4000-8000-000000000001", "cargo_type_id": "00000000-0000-4000-8000-000000000001", "external_tracking_code": "string", "packaging_name": "string", "description": "string", "quantity": 1, "declared_weight": "string", "length_cm": "string", "width_cm": "string", "height_cm": "string", "declared_value": "string", "status": "string", "lifecycle_state": "string", "version": 1}]items.is_editablebooleanyes Whether the declared cargo item can currently be edited. trueitems.can_cancelbooleanyes Whether the declared cargo item can currently be cancelled. trueitems.can_deletebooleanyes Whether the declared cargo item can currently be soft-deleted. trueitems.locked_atstring | nullyes Time at which cargo mutations became locked; null means no lock. 2026-11-30T10:00:00Zitems.lock_reasonstring | nullyes Reason cargo mutations are locked, for example CARGO_ACCEPTED. CARGO_ACCEPTEDitems.idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001items.cargo_type_idstringyes The public-contract value “cargo type id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001items.external_tracking_codestring | nullyes The public-contract value “external tracking code”; its accepted type and requirement are shown alongside it. stringitems.packaging_namestring | nullyes The public-contract value “packaging name”; its accepted type and requirement are shown alongside it. stringitems.descriptionstring | nullyes The public-contract value “description”; its accepted type and requirement are shown alongside it. stringitems.quantityintegeryes Number of units; must be positive. 1items.declared_weightstringyes The public-contract value “declared weight”; its accepted type and requirement are shown alongside it. stringitems.length_cmstring | nullyes The public-contract value “length cm”; its accepted type and requirement are shown alongside it. stringitems.width_cmstring | nullyes The public-contract value “width cm”; its accepted type and requirement are shown alongside it. stringitems.height_cmstring | nullyes The public-contract value “height cm”; its accepted type and requirement are shown alongside it. stringitems.declared_valuestring | nullyes The public-contract value “declared value”; its accepted type and requirement are shown alongside it. stringitems.statusstringyes Current public resource state. activeitems.lifecycle_statestringyes Lifecycle state: active, cancelled, or deleted. activeitems.versionintegeryes The public-contract value “version”; its accepted type and requirement are shown alongside it. 1eventsarray<object>yes Webhook events listed by GET /capabilities. ["order.status_changed"]events.idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001events.typestringyes Value type from the relevant reference catalog or operation enum. phoneevents.payloadobjectyes The public-contract value “payload”; its accepted type and requirement are shown alongside it. {}events.occurred_atstringyes Business event time in ISO 8601 with timezone. 2026-11-30T10:00:00Zpartiesarray<object>yes The public-contract value “parties”; its accepted type and requirement are shown alongside it. [{"role": "string", "client_id": "00000000-0000-4000-8000-000000000001", "partner_id": "00000000-0000-4000-8000-000000000001", "name": "string", "custom_id": "string", "phone": "string", "email": "string", "address": null, "payment_share": "string"}]parties.rolestringyes The public-contract value “role”; its accepted type and requirement are shown alongside it. stringparties.client_idstring | nullyes UUID of a client linked to the current partner. 00000000-0000-4000-8000-000000000002parties.partner_idstring | nullyes Immutable public partner identifier. partner-demoparties.namestringyes The public-contract value “name”; its accepted type and requirement are shown alongside it. stringparties.custom_idstring | nullyes The public-contract value “custom id”; its accepted type and requirement are shown alongside it. stringparties.phonestring | nullyes Phone number in international format. +998901234567parties.emailstring | nullyes Contact email; not a resource identifier. integration@example.comparties.addressobject | nullyes The public-contract value “address”; its accepted type and requirement are shown alongside it. {"label": "string", "country_id": "00000000-0000-4000-8000-000000000001", "region_name": "string", "city_name": "string", "address_line": "string", "postal_code": "string"}parties.payment_sharestring | nullyes The public-contract value “payment share”; its accepted type and requirement are shown alongside it. stringprice_componentsarray<object> | nullyes The public-contract value “price components”; its accepted type and requirement are shown alongside it. [{"id": "00000000-0000-4000-8000-000000000001", "type": "string", "description": "string", "amount": "string", "currency": "string", "status": "string"}]estimated_totalstringyes The public-contract value “estimated total”; its accepted type and requirement are shown alongside it. stringcurrencystringyes Three-letter currency code; balances are never combined. USDversionintegeryes The public-contract value “version”; its accepted type and requirement are shown alongside it. 1created_atstringyes Server record creation time in ISO 8601 UTC. 2026-11-30T10:00:00Zupdated_atstringyes Last record update time in ISO 8601 UTC. 2026-11-30T10:05:00Z
{
"id": "00000000-0000-4000-8000-000000000001",
"number": 1,
"tracking_code": "string",
"operational_status": "string",
"fulfillment_state": "string",
"financial_status": "string",
"lifecycle_state": "string",
"items": [
{
"is_editable": null,
"can_cancel": null,
"can_delete": null,
"locked_at": null,
"lock_reason": null,
"id": null,
"cargo_type_id": null,
"external_tracking_code": null,
"packaging_name": null,
"description": null,
"quantity": null,
"declared_weight": null,
"length_cm": null,
"width_cm": null,
"height_cm": null,
"declared_value": null,
"status": null,
"lifecycle_state": null,
"version": null
}
],
"events": [
{
"id": null,
"type": null,
"payload": null,
"occurred_at": null
}
],
"parties": [
{
"role": null,
"client_id": null,
"partner_id": null,
"name": null,
"custom_id": null,
"phone": null,
"email": null,
"address": null,
"payment_share": null
}
],
"price_components": [],
"estimated_total": "string",
"currency": "string",
"version": 1,
"created_at": "2026-11-30T10:00:00Z",
"updated_at": "2026-11-30T10:00:00Z"
}
PUT /api/partner/v1/orders/{order_id}
Orders and cargo
Replace Partner Order Replace a NEW order through shared price, ownership and received-cargo checks.
Access X-Havvo-Api-Key
Required scope orders:write
Idempotency Not required
The command enforces order-state and per-cargo receipt rules.
Data schema: request Field Type Required Description Example source_channelstringyes The public-contract value “source channel”; its accepted type and requirement are shown alongside it. stringdirection_idstringyes The public-contract value “direction id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001route_version_idstringyes The public-contract value “route version id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001tariff_version_idstringyes The public-contract value “tariff version id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001partiesarray<object>no The public-contract value “parties”; its accepted type and requirement are shown alongside it. [{"role": "string"}]parties.rolestringyes The public-contract value “role”; its accepted type and requirement are shown alongside it. stringparties.client_idstring | nullno UUID of a client linked to the current partner. 00000000-0000-4000-8000-000000000002parties.partner_idstring | nullno Immutable public partner identifier. partner-demoparties.payment_sharenumber | string | nullno The public-contract value “payment share”; its accepted type and requirement are shown alongside it. 1.00parties.address_idstring | nullno The public-contract value “address id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001parties.cdek_delivery_point_codestring | nullno The public-contract value “cdek delivery point code”; its accepted type and requirement are shown alongside it. stringparties.cdek_delivery_pointobject | nullno The public-contract value “cdek delivery point”; its accepted type and requirement are shown alongside it. {"code": "string", "name": "string", "selection_source": "automatic"}itemsarray<object>yes The public-contract value “items”; its accepted type and requirement are shown alongside it. [{"cargo_type_id": "00000000-0000-4000-8000-000000000001", "declared_weight": "1.00"}]items.prohibited_goods_rule_idsarray<string>no The public-contract value “prohibited goods rule ids”; its accepted type and requirement are shown alongside it. ["00000000-0000-4000-8000-000000000001"]items.entry_typestringno The public-contract value “entry type”; its accepted type and requirement are shown alongside it. packageitems.package_keystring | nullno The public-contract value “package key”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001items.packaging_namestring | nullno The public-contract value “packaging name”; its accepted type and requirement are shown alongside it. stringitems.cargo_type_idstringyes The public-contract value “cargo type id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001items.external_tracking_codestring | nullno The public-contract value “external tracking code”; its accepted type and requirement are shown alongside it. stringitems.additional_tracking_codesarray<string>no The public-contract value “additional tracking codes”; its accepted type and requirement are shown alongside it. ["string"]items.additional_tracking_commentsarray<string | null>no The public-contract value “additional tracking comments”; its accepted type and requirement are shown alongside it. ["string"]items.descriptionstring | nullno The public-contract value “description”; its accepted type and requirement are shown alongside it. stringitems.quantityintegerno Number of units; must be positive. 1items.declared_weightnumber | stringyes The public-contract value “declared weight”; its accepted type and requirement are shown alongside it. 1.00items.length_cmnumber | string | nullno The public-contract value “length cm”; its accepted type and requirement are shown alongside it. 1.00items.width_cmnumber | string | nullno The public-contract value “width cm”; its accepted type and requirement are shown alongside it. 1.00items.height_cmnumber | string | nullno The public-contract value “height cm”; its accepted type and requirement are shown alongside it. 1.00items.declared_valuenumber | string | nullno The public-contract value “declared value”; its accepted type and requirement are shown alongside it. 1.00servicesarray<object>no The public-contract value “services”; its accepted type and requirement are shown alongside it. [{"service_id": "00000000-0000-4000-8000-000000000001"}]services.service_idstringyes The public-contract value “service id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001services.quantitynumber | stringno Number of units; must be positive. 1services.override_amountnumber | string | nullno The public-contract value “override amount”; its accepted type and requirement are shown alongside it. 1.00commentstring | nullno Partner order comment; do not include secrets. Handle with carepricing_client_idstring | nullno The public-contract value “pricing client id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001pricing_partner_idstring | nullno The public-contract value “pricing partner id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001prohibited_goods_confirmationsarray<string>no The public-contract value “prohibited goods confirmations”; its accepted type and requirement are shown alongside it. ["string"]expected_totalnumber | stringyes Expected order total after the change; use the value returned by preview. 125.50
curl -X PUT "$HAVVO_BASE_URL/api/partner/v1/orders/{order_id}" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
--data '{
"source_channel": "string",
"direction_id": "00000000-0000-4000-8000-000000000001",
"route_version_id": "00000000-0000-4000-8000-000000000001",
"tariff_version_id": "00000000-0000-4000-8000-000000000001",
"items": [
{
"cargo_type_id": null,
"declared_weight": null
}
],
"expected_total": "1.00"
}'
Parameters Name Location Required Description order_idpath yes UUID of the current partner's order. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001versionintegeryes The public-contract value “version”; its accepted type and requirement are shown alongside it. 1prohibited_goods_evaluationobject | nullno The public-contract value “prohibited goods evaluation”; its accepted type and requirement are shown alongside it. {"enforcement_mode": "off", "direction_id": "00000000-0000-4000-8000-000000000001", "app_code": "crm", "effective_mode": "block"}
{
"id": "00000000-0000-4000-8000-000000000001",
"version": 1
}
PATCH /api/partner/v1/orders/{order_id}
Orders and cargo
Update Partner Order Edit the comment using the portal's permissions and lifecycle rules.
Access X-Havvo-Api-Key
Required scope orders:write
Idempotency Not required
The command enforces order-state and per-cargo receipt rules.
Data schema: request Field Type Required Description Example commentstring | nullno Partner order comment; do not include secrets. Handle with care
curl -X PATCH "$HAVVO_BASE_URL/api/partner/v1/orders/{order_id}" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
--data '{
"comment": "string"
}'
Parameters Name Location Required Description order_idpath yes UUID of the current partner's order. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001versionintegeryes The public-contract value “version”; its accepted type and requirement are shown alongside it. 1prohibited_goods_evaluationobject | nullno The public-contract value “prohibited goods evaluation”; its accepted type and requirement are shown alongside it. {"enforcement_mode": "off", "direction_id": "00000000-0000-4000-8000-000000000001", "app_code": "crm", "effective_mode": "block"}
{
"id": "00000000-0000-4000-8000-000000000001",
"version": 1
}
DELETE /api/partner/v1/orders/{order_id}
Orders and cargo
Delete Order Soft-delete an own order only while it is NEW; the retention policy still applies.
Access X-Havvo-Api-Key
Required scope orders:write
Idempotency Not required
The command enforces order-state and per-cargo receipt rules.
Data schema: request Field Type Required Description Example reasonstringyes Required human-readable reason for cancellation or deletion audit history. Cargo is no longer required
curl -X DELETE "$HAVVO_BASE_URL/api/partner/v1/orders/{order_id}" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
--data '{
"reason": "string"
}'
Parameters Name Location Required Description order_idpath yes UUID of the current partner's order. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 204, 422
Error handling 422 — correct fields listed in detail
POST /api/partner/v1/orders/{order_id}/cancel
Orders and cargo
Cancel Order Business cancellation: NEW, active and no received cargo; preserve the order.
Access X-Havvo-Api-Key
Required scope orders:write
Idempotency Not required
The command enforces order-state and per-cargo receipt rules.
Data schema: request Field Type Required Description Example reasonstringyes Required human-readable reason for cancellation or deletion audit history. Cargo is no longer required
curl -X POST "$HAVVO_BASE_URL/api/partner/v1/orders/{order_id}/cancel" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
--data '{
"reason": "string"
}'
Parameters Name Location Required Description order_idpath yes UUID of the current partner's order. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001versionintegeryes The public-contract value “version”; its accepted type and requirement are shown alongside it. 1prohibited_goods_evaluationobject | nullno The public-contract value “prohibited goods evaluation”; its accepted type and requirement are shown alongside it. {"enforcement_mode": "off", "direction_id": "00000000-0000-4000-8000-000000000001", "app_code": "crm", "effective_mode": "block"}operational_statusstringyes Operational order status from the public status catalog. NEW
{
"id": "00000000-0000-4000-8000-000000000001",
"version": 1,
"operational_status": "string"
}
GET /api/partner/v1/orders/{order_id}/cargo
Orders and cargo
Order Cargo Return accepted cargo pieces, their dimensions, current stage and package.
Access X-Havvo-Api-Key
Required scope cargo:read
Idempotency Not required
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/orders/{order_id}/cargo" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description order_idpath yes UUID of the current partner's order. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example itemsarray<object>yes The public-contract value “items”; its accepted type and requirement are shown alongside it. [{"id": "00000000-0000-4000-8000-000000000001", "barcode": "string", "cargo_type_id": "00000000-0000-4000-8000-000000000001", "quantity": 1, "actual_weight": "string", "volumetric_weight": "string", "calculation_weight": "string", "dimensions_cm": {"length": null, "width": null, "height": null}, "current_stage": "string", "package": null, "created_at": "2026-11-30T10:00:00Z", "updated_at": "2026-11-30T10:00:00Z"}]items.idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001items.barcodestringyes Cargo-piece or package barcode. HV-CARGO-0001items.cargo_type_idstringyes The public-contract value “cargo type id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001items.quantityintegeryes Number of units; must be positive. 1items.actual_weightstringyes The public-contract value “actual weight”; its accepted type and requirement are shown alongside it. stringitems.volumetric_weightstring | nullyes The public-contract value “volumetric weight”; its accepted type and requirement are shown alongside it. stringitems.calculation_weightstringyes The public-contract value “calculation weight”; its accepted type and requirement are shown alongside it. stringitems.dimensions_cmobjectyes The public-contract value “dimensions cm”; its accepted type and requirement are shown alongside it. {"length": "string", "width": "string", "height": "string"}items.dimensions_cm.lengthstring | nullyes The public-contract value “length”; its accepted type and requirement are shown alongside it. stringitems.dimensions_cm.widthstring | nullyes The public-contract value “width”; its accepted type and requirement are shown alongside it. stringitems.dimensions_cm.heightstring | nullyes The public-contract value “height”; its accepted type and requirement are shown alongside it. stringitems.current_stagestringyes The public-contract value “current stage”; its accepted type and requirement are shown alongside it. stringitems.packageobject | nullyes The public-contract value “package”; its accepted type and requirement are shown alongside it. {"id": "00000000-0000-4000-8000-000000000001", "barcode": "string", "status": "string"}items.created_atstringyes Server record creation time in ISO 8601 UTC. 2026-11-30T10:00:00Zitems.updated_atstringyes Last record update time in ISO 8601 UTC. 2026-11-30T10:05:00Z
{
"items": [
{
"id": null,
"barcode": null,
"cargo_type_id": null,
"quantity": null,
"actual_weight": null,
"volumetric_weight": null,
"calculation_weight": null,
"dimensions_cm": null,
"current_stage": null,
"package": null,
"created_at": null,
"updated_at": null
}
]
}
GET /api/partner/v1/orders/{order_id}/external-id
Orders and cargo
External Order Id Returns partner orders and their lifecycle.
Access X-Havvo-Api-Key
Required scope orders:read
Idempotency Not required
The value must be unique within the partner and stable across retries.
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/orders/{order_id}/external-id" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description order_idpath yes UUID of the current partner's order. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example external_idstringyes Stable order identifier in the partner system. ORDER-2026-0001
{
"external_id": "string"
}
PUT /api/partner/v1/orders/{order_id}/external-id
Orders and cargo
Set External Order Id Fully replaces partner orders and their lifecycle.
Access X-Havvo-Api-Key
Required scope orders:write
Idempotency Not required
The command enforces order-state and per-cargo receipt rules. The value must be unique within the partner and stable across retries.
Data schema: request Field Type Required Description Example external_idstringyes Stable order identifier in the partner system. ORDER-2026-0001
curl -X PUT "$HAVVO_BASE_URL/api/partner/v1/orders/{order_id}/external-id" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
--data '{
"external_id": "string"
}'
Parameters Name Location Required Description order_idpath yes UUID of the current partner's order. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example external_idstringyes Stable order identifier in the partner system. ORDER-2026-0001
{
"external_id": "string"
}
GET /api/partner/v1/orders/{order_id}/items/{item_id}
Orders and cargo
Declared Item Return one declared cargo item and its current mutation capabilities.
Access X-Havvo-Api-Key
Required scope orders:read
Idempotency Not required
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/orders/{order_id}/items/{item_id}" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description order_idpath yes UUID of the current partner's order. item_idpath yes The public-contract value “item id”; its accepted type and requirement are shown alongside it. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example is_editablebooleanyes Whether the declared cargo item can currently be edited. truecan_cancelbooleanyes Whether the declared cargo item can currently be cancelled. truecan_deletebooleanyes Whether the declared cargo item can currently be soft-deleted. truelocked_atstring | nullyes Time at which cargo mutations became locked; null means no lock. 2026-11-30T10:00:00Zlock_reasonstring | nullyes Reason cargo mutations are locked, for example CARGO_ACCEPTED. CARGO_ACCEPTEDidstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001cargo_type_idstringyes The public-contract value “cargo type id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001external_tracking_codestring | nullyes The public-contract value “external tracking code”; its accepted type and requirement are shown alongside it. stringpackaging_namestring | nullyes The public-contract value “packaging name”; its accepted type and requirement are shown alongside it. stringdescriptionstring | nullyes The public-contract value “description”; its accepted type and requirement are shown alongside it. stringquantityintegeryes Number of units; must be positive. 1declared_weightstringyes The public-contract value “declared weight”; its accepted type and requirement are shown alongside it. stringlength_cmstring | nullyes The public-contract value “length cm”; its accepted type and requirement are shown alongside it. stringwidth_cmstring | nullyes The public-contract value “width cm”; its accepted type and requirement are shown alongside it. stringheight_cmstring | nullyes The public-contract value “height cm”; its accepted type and requirement are shown alongside it. stringdeclared_valuestring | nullyes The public-contract value “declared value”; its accepted type and requirement are shown alongside it. stringstatusstringyes Current public resource state. activelifecycle_statestringyes Lifecycle state: active, cancelled, or deleted. activeversionintegeryes The public-contract value “version”; its accepted type and requirement are shown alongside it. 1
{
"is_editable": true,
"can_cancel": true,
"can_delete": true,
"locked_at": "2026-11-30T10:00:00Z",
"lock_reason": "CARGO_ACCEPTED",
"id": "00000000-0000-4000-8000-000000000001",
"cargo_type_id": "00000000-0000-4000-8000-000000000001",
"external_tracking_code": "string",
"packaging_name": "string",
"description": "string",
"quantity": 1,
"declared_weight": "string",
"length_cm": "string",
"width_cm": "string",
"height_cm": "string",
"declared_value": "string",
"status": "string",
"lifecycle_state": "string",
"version": 1
}
PATCH /api/partner/v1/orders/{order_id}/items/{item_id}
Orders and cargo
Patch Declared Item Edit one unreceived cargo item without replacing the rest of the order.
Access X-Havvo-Api-Key
Required scope orders:write
Idempotency Required. A retry with the same key and body returns the same result.
The command enforces order-state and per-cargo receipt rules.
Data schema: request Field Type Required Description Example descriptionstring | nullno The public-contract value “description”; its accepted type and requirement are shown alongside it. stringexternal_tracking_codestring | nullno The public-contract value “external tracking code”; its accepted type and requirement are shown alongside it. stringcargo_type_idstring | nullno The public-contract value “cargo type id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001packaging_namestring | nullno The public-contract value “packaging name”; its accepted type and requirement are shown alongside it. stringquantityinteger | nullno Number of units; must be positive. 1declared_weightnumber | string | nullno The public-contract value “declared weight”; its accepted type and requirement are shown alongside it. 1.00length_cmnumber | string | nullno The public-contract value “length cm”; its accepted type and requirement are shown alongside it. 1.00width_cmnumber | string | nullno The public-contract value “width cm”; its accepted type and requirement are shown alongside it. 1.00height_cmnumber | string | nullno The public-contract value “height cm”; its accepted type and requirement are shown alongside it. 1.00declared_valuenumber | string | nullno The public-contract value “declared value”; its accepted type and requirement are shown alongside it. 1.00expected_totalnumber | string | nullno Expected order total after the change; use the value returned by preview. 125.50expected_versionintegeryes Cargo item version returned by the latest GET; prevents overwriting concurrent changes. 1
curl -X PATCH "$HAVVO_BASE_URL/api/partner/v1/orders/{order_id}/items/{item_id}" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
--data '{
"expected_version": 1
}'
Parameters Name Location Required Description order_idpath yes UUID of the current partner's order. item_idpath yes The public-contract value “item id”; its accepted type and requirement are shown alongside it. Idempotency-Keyheader yes Unique command key. Reuse it only when retrying the unchanged request after a network failure. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example is_editablebooleanyes Whether the declared cargo item can currently be edited. truecan_cancelbooleanyes Whether the declared cargo item can currently be cancelled. truecan_deletebooleanyes Whether the declared cargo item can currently be soft-deleted. truelocked_atstring | nullyes Time at which cargo mutations became locked; null means no lock. 2026-11-30T10:00:00Zlock_reasonstring | nullyes Reason cargo mutations are locked, for example CARGO_ACCEPTED. CARGO_ACCEPTEDidstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001cargo_type_idstringyes The public-contract value “cargo type id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001external_tracking_codestring | nullyes The public-contract value “external tracking code”; its accepted type and requirement are shown alongside it. stringpackaging_namestring | nullyes The public-contract value “packaging name”; its accepted type and requirement are shown alongside it. stringdescriptionstring | nullyes The public-contract value “description”; its accepted type and requirement are shown alongside it. stringquantityintegeryes Number of units; must be positive. 1declared_weightstringyes The public-contract value “declared weight”; its accepted type and requirement are shown alongside it. stringlength_cmstring | nullyes The public-contract value “length cm”; its accepted type and requirement are shown alongside it. stringwidth_cmstring | nullyes The public-contract value “width cm”; its accepted type and requirement are shown alongside it. stringheight_cmstring | nullyes The public-contract value “height cm”; its accepted type and requirement are shown alongside it. stringdeclared_valuestring | nullyes The public-contract value “declared value”; its accepted type and requirement are shown alongside it. stringstatusstringyes Current public resource state. activelifecycle_statestringyes Lifecycle state: active, cancelled, or deleted. activeversionintegeryes The public-contract value “version”; its accepted type and requirement are shown alongside it. 1
{
"is_editable": true,
"can_cancel": true,
"can_delete": true,
"locked_at": "2026-11-30T10:00:00Z",
"lock_reason": "CARGO_ACCEPTED",
"id": "00000000-0000-4000-8000-000000000001",
"cargo_type_id": "00000000-0000-4000-8000-000000000001",
"external_tracking_code": "string",
"packaging_name": "string",
"description": "string",
"quantity": 1,
"declared_weight": "string",
"length_cm": "string",
"width_cm": "string",
"height_cm": "string",
"declared_value": "string",
"status": "string",
"lifecycle_state": "string",
"version": 1
}
DELETE /api/partner/v1/orders/{order_id}/items/{item_id}
Orders and cargo
Delete Declared Item Soft-delete one unreceived cargo item while preserving audit and finance history.
Access X-Havvo-Api-Key
Required scope orders:write
Idempotency Required. A retry with the same key and body returns the same result.
The command enforces order-state and per-cargo receipt rules.
Data schema: request Field Type Required Description Example expected_versionintegeryes Cargo item version returned by the latest GET; prevents overwriting concurrent changes. 1expected_totalnumber | stringyes Expected order total after the change; use the value returned by preview. 125.50reasonstringyes Required human-readable reason for cancellation or deletion audit history. Cargo is no longer required
curl -X DELETE "$HAVVO_BASE_URL/api/partner/v1/orders/{order_id}/items/{item_id}" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
--data '{
"expected_version": 1,
"expected_total": "1.00",
"reason": "string"
}'
Parameters Name Location Required Description order_idpath yes UUID of the current partner's order. item_idpath yes The public-contract value “item id”; its accepted type and requirement are shown alongside it. Idempotency-Keyheader yes Unique command key. Reuse it only when retrying the unchanged request after a network failure. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example is_editablebooleanyes Whether the declared cargo item can currently be edited. truecan_cancelbooleanyes Whether the declared cargo item can currently be cancelled. truecan_deletebooleanyes Whether the declared cargo item can currently be soft-deleted. truelocked_atstring | nullyes Time at which cargo mutations became locked; null means no lock. 2026-11-30T10:00:00Zlock_reasonstring | nullyes Reason cargo mutations are locked, for example CARGO_ACCEPTED. CARGO_ACCEPTEDidstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001cargo_type_idstringyes The public-contract value “cargo type id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001external_tracking_codestring | nullyes The public-contract value “external tracking code”; its accepted type and requirement are shown alongside it. stringpackaging_namestring | nullyes The public-contract value “packaging name”; its accepted type and requirement are shown alongside it. stringdescriptionstring | nullyes The public-contract value “description”; its accepted type and requirement are shown alongside it. stringquantityintegeryes Number of units; must be positive. 1declared_weightstringyes The public-contract value “declared weight”; its accepted type and requirement are shown alongside it. stringlength_cmstring | nullyes The public-contract value “length cm”; its accepted type and requirement are shown alongside it. stringwidth_cmstring | nullyes The public-contract value “width cm”; its accepted type and requirement are shown alongside it. stringheight_cmstring | nullyes The public-contract value “height cm”; its accepted type and requirement are shown alongside it. stringdeclared_valuestring | nullyes The public-contract value “declared value”; its accepted type and requirement are shown alongside it. stringstatusstringyes Current public resource state. activelifecycle_statestringyes Lifecycle state: active, cancelled, or deleted. activeversionintegeryes The public-contract value “version”; its accepted type and requirement are shown alongside it. 1
{
"is_editable": true,
"can_cancel": true,
"can_delete": true,
"locked_at": "2026-11-30T10:00:00Z",
"lock_reason": "CARGO_ACCEPTED",
"id": "00000000-0000-4000-8000-000000000001",
"cargo_type_id": "00000000-0000-4000-8000-000000000001",
"external_tracking_code": "string",
"packaging_name": "string",
"description": "string",
"quantity": 1,
"declared_weight": "string",
"length_cm": "string",
"width_cm": "string",
"height_cm": "string",
"declared_value": "string",
"status": "string",
"lifecycle_state": "string",
"version": 1
}
POST /api/partner/v1/orders/{order_id}/items/{item_id}/cancel
Orders and cargo
Cancel Declared Item Cancel one unreceived cargo item while preserving the order history.
Access X-Havvo-Api-Key
Required scope orders:write
Idempotency Required. A retry with the same key and body returns the same result.
The command enforces order-state and per-cargo receipt rules.
Data schema: request Field Type Required Description Example expected_versionintegeryes Cargo item version returned by the latest GET; prevents overwriting concurrent changes. 1expected_totalnumber | stringyes Expected order total after the change; use the value returned by preview. 125.50reasonstringyes Required human-readable reason for cancellation or deletion audit history. Cargo is no longer required
curl -X POST "$HAVVO_BASE_URL/api/partner/v1/orders/{order_id}/items/{item_id}/cancel" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
--data '{
"expected_version": 1,
"expected_total": "1.00",
"reason": "string"
}'
Parameters Name Location Required Description order_idpath yes UUID of the current partner's order. item_idpath yes The public-contract value “item id”; its accepted type and requirement are shown alongside it. Idempotency-Keyheader yes Unique command key. Reuse it only when retrying the unchanged request after a network failure. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example is_editablebooleanyes Whether the declared cargo item can currently be edited. truecan_cancelbooleanyes Whether the declared cargo item can currently be cancelled. truecan_deletebooleanyes Whether the declared cargo item can currently be soft-deleted. truelocked_atstring | nullyes Time at which cargo mutations became locked; null means no lock. 2026-11-30T10:00:00Zlock_reasonstring | nullyes Reason cargo mutations are locked, for example CARGO_ACCEPTED. CARGO_ACCEPTEDidstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001cargo_type_idstringyes The public-contract value “cargo type id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001external_tracking_codestring | nullyes The public-contract value “external tracking code”; its accepted type and requirement are shown alongside it. stringpackaging_namestring | nullyes The public-contract value “packaging name”; its accepted type and requirement are shown alongside it. stringdescriptionstring | nullyes The public-contract value “description”; its accepted type and requirement are shown alongside it. stringquantityintegeryes Number of units; must be positive. 1declared_weightstringyes The public-contract value “declared weight”; its accepted type and requirement are shown alongside it. stringlength_cmstring | nullyes The public-contract value “length cm”; its accepted type and requirement are shown alongside it. stringwidth_cmstring | nullyes The public-contract value “width cm”; its accepted type and requirement are shown alongside it. stringheight_cmstring | nullyes The public-contract value “height cm”; its accepted type and requirement are shown alongside it. stringdeclared_valuestring | nullyes The public-contract value “declared value”; its accepted type and requirement are shown alongside it. stringstatusstringyes Current public resource state. activelifecycle_statestringyes Lifecycle state: active, cancelled, or deleted. activeversionintegeryes The public-contract value “version”; its accepted type and requirement are shown alongside it. 1
{
"is_editable": true,
"can_cancel": true,
"can_delete": true,
"locked_at": "2026-11-30T10:00:00Z",
"lock_reason": "CARGO_ACCEPTED",
"id": "00000000-0000-4000-8000-000000000001",
"cargo_type_id": "00000000-0000-4000-8000-000000000001",
"external_tracking_code": "string",
"packaging_name": "string",
"description": "string",
"quantity": 1,
"declared_weight": "string",
"length_cm": "string",
"width_cm": "string",
"height_cm": "string",
"declared_value": "string",
"status": "string",
"lifecycle_state": "string",
"version": 1
}
GET /api/partner/v1/orders/{order_id}/labels
Labels
Labels Return print-ready label data for every cargo piece and package of an order.
Access X-Havvo-Api-Key
Required scope labels:read
Idempotency Not required
Labels are available only for partner-owned orders.
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/orders/{order_id}/labels" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description order_idpath yes UUID of the current partner's order. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example orderobjectyes The public-contract value “order”; its accepted type and requirement are shown alongside it. {"id": "00000000-0000-4000-8000-000000000001", "number": 1, "tracking_code": "string"}order.idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001order.numberintegeryes The public-contract value “number”; its accepted type and requirement are shown alongside it. 1order.tracking_codestringyes Public Havvo tracking code. HV260001234cargo_labelsarray<object>yes The public-contract value “cargo labels”; its accepted type and requirement are shown alongside it. [{"entity_type": "string", "entity_id": "00000000-0000-4000-8000-000000000001", "barcode": "string", "caption": "string", "weight": "string"}]cargo_labels.entity_typestringyes The public-contract value “entity type”; its accepted type and requirement are shown alongside it. stringcargo_labels.entity_idstringyes The public-contract value “entity id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001cargo_labels.barcodestringyes Cargo-piece or package barcode. HV-CARGO-0001cargo_labels.captionstringyes The public-contract value “caption”; its accepted type and requirement are shown alongside it. stringcargo_labels.weightstringyes Weight in the contract unit as a decimal string. 2.50package_labelsarray<object>yes The public-contract value “package labels”; its accepted type and requirement are shown alongside it. [{"entity_type": "string", "entity_id": "00000000-0000-4000-8000-000000000001", "barcode": "string", "caption": "string", "weight": "string"}]package_labels.entity_typestringyes The public-contract value “entity type”; its accepted type and requirement are shown alongside it. stringpackage_labels.entity_idstringyes The public-contract value “entity id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001package_labels.barcodestringyes Cargo-piece or package barcode. HV-CARGO-0001package_labels.captionstringyes The public-contract value “caption”; its accepted type and requirement are shown alongside it. stringpackage_labels.weightstringyes Weight in the contract unit as a decimal string. 2.50
{
"order": {
"id": "00000000-0000-4000-8000-000000000001",
"number": 1,
"tracking_code": "string"
},
"cargo_labels": [
{
"entity_type": null,
"entity_id": null,
"barcode": null,
"caption": null,
"weight": null
}
],
"package_labels": [
{
"entity_type": null,
"entity_id": null,
"barcode": null,
"caption": null,
"weight": null
}
]
}
GET /api/partner/v1/orders/{order_id}/labels.pdf
Labels
Labels Pdf Returns print-ready cargo and package labels.
Access X-Havvo-Api-Key
Required scope labels:read
Idempotency Not required
Labels are available only for partner-owned orders.
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/orders/{order_id}/labels.pdf" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description order_idpath yes UUID of the current partner's order. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
GET /api/partner/v1/orders/{order_id}/labels.zpl
Labels
Labels Zpl Returns print-ready cargo and package labels.
Access X-Havvo-Api-Key
Required scope labels:read
Idempotency Not required
Labels are available only for partner-owned orders.
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/orders/{order_id}/labels.zpl" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description order_idpath yes UUID of the current partner's order. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
GET /api/partner/v1/pricing
References and pricing
Pricing Published partner prices with fallback to the common tariff performed by pricing core.
Access X-Havvo-Api-Key
Required scope pricing:read
Idempotency Not required
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/pricing" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description direction_idquery no The public-contract value “direction id”; its accepted type and requirement are shown alongside it. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example scopestringyes The public-contract value “scope”; its accepted type and requirement are shown alongside it. stringpartner_idstringyes Immutable public partner identifier. partner-demoitemsarray<object>yes The public-contract value “items”; its accepted type and requirement are shown alongside it. [{"id": "00000000-0000-4000-8000-000000000001", "code": "string", "name": "string", "name_i18n": {}, "direction_id": "00000000-0000-4000-8000-000000000001", "direction_name": "string", "delivery_mode_id": "00000000-0000-4000-8000-000000000001", "delivery_mode_code": "string", "delivery_mode_name_i18n": {}, "currency_code": "string", "version": 1, "tariff_version_id": "00000000-0000-4000-8000-000000000001", "route_version_id": "00000000-0000-4000-8000-000000000001", "effective_from": "2026-11-30T10:00:00Z", "average_delivery_days": 1, "prices": []}]items.idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001items.codestringyes The public-contract value “code”; its accepted type and requirement are shown alongside it. stringitems.namestringyes The public-contract value “name”; its accepted type and requirement are shown alongside it. stringitems.name_i18nobjectyes The public-contract value “name i18n”; its accepted type and requirement are shown alongside it. {}items.direction_idstringyes The public-contract value “direction id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001items.direction_namestringyes The public-contract value “direction name”; its accepted type and requirement are shown alongside it. stringitems.delivery_mode_idstringyes The public-contract value “delivery mode id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001items.delivery_mode_codestringyes The public-contract value “delivery mode code”; its accepted type and requirement are shown alongside it. stringitems.delivery_mode_name_i18nobjectyes The public-contract value “delivery mode name i18n”; its accepted type and requirement are shown alongside it. {}items.currency_codestringyes The public-contract value “currency code”; its accepted type and requirement are shown alongside it. stringitems.versionintegeryes The public-contract value “version”; its accepted type and requirement are shown alongside it. 1items.tariff_version_idstringyes The public-contract value “tariff version id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001items.route_version_idstringyes The public-contract value “route version id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001items.effective_fromstringyes The public-contract value “effective from”; its accepted type and requirement are shown alongside it. 2026-11-30T10:00:00Zitems.average_delivery_daysinteger | nullyes The public-contract value “average delivery days”; its accepted type and requirement are shown alongside it. 1items.pricesarray<object>yes The public-contract value “prices”; its accepted type and requirement are shown alongside it. [{"cargo_type_id": "00000000-0000-4000-8000-000000000001", "cargo_type_code": "string", "cargo_type_name_i18n": {}, "calculation_unit": "string", "base_price": "string", "minimum_weight": "string", "price_source": "string", "override_weight_from": "string", "override_weight_to": "string", "tiers": []}]items.prices.cargo_type_idstringyes The public-contract value “cargo type id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001items.prices.cargo_type_codestringyes The public-contract value “cargo type code”; its accepted type and requirement are shown alongside it. stringitems.prices.cargo_type_name_i18nobjectyes The public-contract value “cargo type name i18n”; its accepted type and requirement are shown alongside it. {}items.prices.calculation_unitstringyes The public-contract value “calculation unit”; its accepted type and requirement are shown alongside it. stringitems.prices.base_pricestringyes The public-contract value “base price”; its accepted type and requirement are shown alongside it. stringitems.prices.minimum_weightstring | nullyes The public-contract value “minimum weight”; its accepted type and requirement are shown alongside it. stringitems.prices.price_sourcestringyes The public-contract value “price source”; its accepted type and requirement are shown alongside it. stringitems.prices.override_weight_fromstring | nullyes The public-contract value “override weight from”; its accepted type and requirement are shown alongside it. stringitems.prices.override_weight_tostring | nullyes The public-contract value “override weight to”; its accepted type and requirement are shown alongside it. stringitems.prices.tiersarray<object>yes The public-contract value “tiers”; its accepted type and requirement are shown alongside it. [{"weight_from": "string", "weight_to": "string", "price": "string", "aggregation_scope": "string"}]
{
"scope": "string",
"partner_id": "00000000-0000-4000-8000-000000000001",
"items": [
{
"id": null,
"code": null,
"name": null,
"name_i18n": null,
"direction_id": null,
"direction_name": null,
"delivery_mode_id": null,
"delivery_mode_code": null,
"delivery_mode_name_i18n": null,
"currency_code": null,
"version": null,
"tariff_version_id": null,
"route_version_id": null,
"effective_from": null,
"average_delivery_days": null,
"prices": null
}
]
}
GET /api/partner/v1/reference/branches
References and pricing
Branches Returns reference data used to populate request identifiers.
Access X-Havvo-Api-Key
Required scope reference:read
Idempotency Not required
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/reference/branches" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example itemsarray<object>yes The public-contract value “items”; its accepted type and requirement are shown alongside it. [{"id": "00000000-0000-4000-8000-000000000001", "code": "string", "name": "string", "country_id": "00000000-0000-4000-8000-000000000001", "region_id": "00000000-0000-4000-8000-000000000001", "city_id": "00000000-0000-4000-8000-000000000001", "timezone": "string", "address": {}, "can_origin": true, "can_destination": true, "can_transit": true, "status": "string"}]items.idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001items.codestringyes The public-contract value “code”; its accepted type and requirement are shown alongside it. stringitems.namestringyes The public-contract value “name”; its accepted type and requirement are shown alongside it. stringitems.country_idstringyes UUID of an active country from geography. 00000000-0000-4000-8000-000000000010items.region_idstring | nullyes The public-contract value “region id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001items.city_idstring | nullyes City UUID from the reference catalog. 00000000-0000-4000-8000-000000000011items.timezonestringyes The public-contract value “timezone”; its accepted type and requirement are shown alongside it. stringitems.addressobject | nullyes The public-contract value “address”; its accepted type and requirement are shown alongside it. {}items.can_originbooleanyes The public-contract value “can origin”; its accepted type and requirement are shown alongside it. Trueitems.can_destinationbooleanyes The public-contract value “can destination”; its accepted type and requirement are shown alongside it. Trueitems.can_transitbooleanyes The public-contract value “can transit”; its accepted type and requirement are shown alongside it. Trueitems.statusstringyes Current public resource state. active
{
"items": [
{
"id": null,
"code": null,
"name": null,
"country_id": null,
"region_id": null,
"city_id": null,
"timezone": null,
"address": null,
"can_origin": null,
"can_destination": null,
"can_transit": null,
"status": null
}
]
}
GET /api/partner/v1/reference/cancellation-reasons
References and pricing
Cancellation Reasons Returns reference data used to populate request identifiers.
Access X-Havvo-Api-Key
Required scope reference:read
Idempotency Not required
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/reference/cancellation-reasons" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example modestringyes The public-contract value “mode”; its accepted type and requirement are shown alongside it. stringmin_lengthintegeryes The public-contract value “min length”; its accepted type and requirement are shown alongside it. 1max_lengthintegeryes The public-contract value “max length”; its accepted type and requirement are shown alongside it. 1
{
"mode": "string",
"min_length": 1,
"max_length": 1
}
GET /api/partner/v1/reference/cargo-types
Orders and cargo
Cargo Types Returns cargo, warehouse receipt, and movements.
Access X-Havvo-Api-Key
Required scope cargo:read
Idempotency Not required
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/reference/cargo-types" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description direction_idquery no The public-contract value “direction id”; its accepted type and requirement are shown alongside it. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example itemsarray<object>yes The public-contract value “items”; its accepted type and requirement are shown alongside it. [{"code": "string", "name": {}, "id": "00000000-0000-4000-8000-000000000001", "status": "string"}]items.codestringyes The public-contract value “code”; its accepted type and requirement are shown alongside it. stringitems.nameobjectyes The public-contract value “name”; its accepted type and requirement are shown alongside it. {}items.idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001items.statusstringyes Current public resource state. active
{
"items": [
{
"code": null,
"name": null,
"id": null,
"status": null
}
]
}
GET /api/partner/v1/reference/cities
References and pricing
Reference Cities Bounded city sync; use next_cursor as after_id for the next page.
Access X-Havvo-Api-Key
Required scope reference:read
Idempotency Not required
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/reference/cities" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description country_idquery yes UUID of an active country from geography. region_idquery no The public-contract value “region id”; its accepted type and requirement are shown alongside it. after_idquery no The public-contract value “after id”; its accepted type and requirement are shown alongside it. qquery no The public-contract value “q”; its accepted type and requirement are shown alongside it. limitquery no Maximum number of items in the page. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example itemsarray<object>yes The public-contract value “items”; its accepted type and requirement are shown alongside it. [{"id": "00000000-0000-4000-8000-000000000001", "country_id": "00000000-0000-4000-8000-000000000001", "name": "string", "name_i18n": {}, "region_id": "00000000-0000-4000-8000-000000000001"}]items.idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001items.country_idstringyes UUID of an active country from geography. 00000000-0000-4000-8000-000000000010items.namestringyes The public-contract value “name”; its accepted type and requirement are shown alongside it. stringitems.name_i18nobject | nullyes The public-contract value “name i18n”; its accepted type and requirement are shown alongside it. {}items.region_idstring | nullyes The public-contract value “region id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001next_cursorstring | nullyes Next-page cursor; null means the end of the collection. cursor-value
{
"items": [
{
"id": null,
"country_id": null,
"name": null,
"name_i18n": null,
"region_id": null
}
],
"next_cursor": "00000000-0000-4000-8000-000000000001"
}
GET /api/partner/v1/reference/client-types
References and pricing
Client Types Returns reference data used to populate request identifiers.
Access X-Havvo-Api-Key
Required scope reference:read
Idempotency Not required
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/reference/client-types" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example itemsarray<object>yes The public-contract value “items”; its accepted type and requirement are shown alongside it. [{"code": "string", "name": {}}]items.codestringyes The public-contract value “code”; its accepted type and requirement are shown alongside it. stringitems.nameobjectyes The public-contract value “name”; its accepted type and requirement are shown alongside it. {}
{
"items": [
{
"code": null,
"name": null
}
]
}
GET /api/partner/v1/reference/directions
References and pricing
Directions Returns reference data used to populate request identifiers.
Access X-Havvo-Api-Key
Required scope reference:read
Idempotency Not required
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/reference/directions" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example itemsarray<object>yes The public-contract value “items”; its accepted type and requirement are shown alongside it. [{"id": "00000000-0000-4000-8000-000000000001", "code": "string", "name": "string", "origin_branch_id": "00000000-0000-4000-8000-000000000001", "destination_branch_id": "00000000-0000-4000-8000-000000000001", "route_template_id": "00000000-0000-4000-8000-000000000001", "delivery_mode": null}]items.idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001items.codestringyes The public-contract value “code”; its accepted type and requirement are shown alongside it. stringitems.namestringyes The public-contract value “name”; its accepted type and requirement are shown alongside it. stringitems.origin_branch_idstringyes The public-contract value “origin branch id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001items.destination_branch_idstring | nullyes The public-contract value “destination branch id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001items.route_template_idstring | nullyes The public-contract value “route template id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001items.delivery_modeobject | nullyes The public-contract value “delivery mode”; its accepted type and requirement are shown alongside it. {"code": "string", "name": {}, "id": "00000000-0000-4000-8000-000000000001"}
{
"items": [
{
"id": null,
"code": null,
"name": null,
"origin_branch_id": null,
"destination_branch_id": null,
"route_template_id": null,
"delivery_mode": null
}
]
}
GET /api/partner/v1/reference/geography
References and pricing
Geography Returns reference data used to populate request identifiers.
Access X-Havvo-Api-Key
Required scope reference:read
Idempotency Not required
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/reference/geography" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description country_idquery no UUID of an active country from geography. region_idquery no The public-contract value “region id”; its accepted type and requirement are shown alongside it. include_citiesquery no The public-contract value “include cities”; its accepted type and requirement are shown alongside it. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example countriesarray<object>yes The public-contract value “countries”; its accepted type and requirement are shown alongside it. [{"id": "00000000-0000-4000-8000-000000000001", "iso2": "string", "iso3": "string", "name": {}}]countries.idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001countries.iso2stringyes The public-contract value “iso2”; its accepted type and requirement are shown alongside it. stringcountries.iso3stringyes The public-contract value “iso3”; its accepted type and requirement are shown alongside it. stringcountries.nameobjectyes The public-contract value “name”; its accepted type and requirement are shown alongside it. {}regionsarray<object>yes The public-contract value “regions”; its accepted type and requirement are shown alongside it. [{"id": "00000000-0000-4000-8000-000000000001", "country_id": "00000000-0000-4000-8000-000000000001", "name": "string", "name_i18n": {}}]regions.idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001regions.country_idstringyes UUID of an active country from geography. 00000000-0000-4000-8000-000000000010regions.namestringyes The public-contract value “name”; its accepted type and requirement are shown alongside it. stringregions.name_i18nobject | nullyes The public-contract value “name i18n”; its accepted type and requirement are shown alongside it. {}citiesarray<object>yes The public-contract value “cities”; its accepted type and requirement are shown alongside it. [{"id": "00000000-0000-4000-8000-000000000001", "country_id": "00000000-0000-4000-8000-000000000001", "name": "string", "name_i18n": {}, "region_id": "00000000-0000-4000-8000-000000000001"}]cities.idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001cities.country_idstringyes UUID of an active country from geography. 00000000-0000-4000-8000-000000000010cities.namestringyes The public-contract value “name”; its accepted type and requirement are shown alongside it. stringcities.name_i18nobject | nullyes The public-contract value “name i18n”; its accepted type and requirement are shown alongside it. {}cities.region_idstring | nullyes The public-contract value “region id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001
{
"countries": [
{
"id": null,
"iso2": null,
"iso3": null,
"name": null
}
],
"regions": [
{
"id": null,
"country_id": null,
"name": null,
"name_i18n": null
}
],
"cities": [
{
"id": null,
"country_id": null,
"name": null,
"name_i18n": null,
"region_id": null
}
]
}
GET /api/partner/v1/reference/prohibited-goods
References and pricing
Prohibited Goods Catalog Published partner restrictions, grouped by authorized direction; one page counts rules.
Access X-Havvo-Api-Key
Required scope reference:read
Idempotency Not required
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/reference/prohibited-goods" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description direction_idquery no The public-contract value “direction id”; its accepted type and requirement are shown alongside it. limitquery no Maximum number of items in the page. offsetquery no The public-contract value “offset”; its accepted type and requirement are shown alongside it. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example global_rulesarray<object>yes The public-contract value “global rules”; its accepted type and requirement are shown alongside it. [{"id": "00000000-0000-4000-8000-000000000001", "code": "string", "version": 1, "action_mode": "block", "scope_mode": "all_directions", "direction_ids": ["00000000-0000-4000-8000-000000000001"], "priority": 1, "starts_at": "2026-11-30T10:00:00Z", "ends_at": "2026-11-30T10:00:00Z", "title_i18n": {}, "client_message_i18n": {}}]global_rules.idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001global_rules.codestringyes The public-contract value “code”; its accepted type and requirement are shown alongside it. stringglobal_rules.versionintegeryes The public-contract value “version”; its accepted type and requirement are shown alongside it. 1global_rules.action_modestringyes The public-contract value “action mode”; its accepted type and requirement are shown alongside it. Enum: block, confirm, inform blockglobal_rules.scope_modestringyes The public-contract value “scope mode”; its accepted type and requirement are shown alongside it. Enum: all_directions, selected_directions all_directionsglobal_rules.direction_idsarray<string>yes The public-contract value “direction ids”; its accepted type and requirement are shown alongside it. ["00000000-0000-4000-8000-000000000001"]global_rules.priorityintegeryes The public-contract value “priority”; its accepted type and requirement are shown alongside it. 1global_rules.starts_atstring | nullyes The public-contract value “starts at”; its accepted type and requirement are shown alongside it. 2026-11-30T10:00:00Zglobal_rules.ends_atstring | nullyes The public-contract value “ends at”; its accepted type and requirement are shown alongside it. 2026-11-30T10:00:00Zglobal_rules.title_i18nobjectyes The public-contract value “title i18n”; its accepted type and requirement are shown alongside it. {}global_rules.client_message_i18nobjectyes The public-contract value “client message i18n”; its accepted type and requirement are shown alongside it. {}direction_rulesobjectyes The public-contract value “direction rules”; its accepted type and requirement are shown alongside it. {}limitintegeryes Maximum number of items in the page. 50offsetintegeryes The public-contract value “offset”; its accepted type and requirement are shown alongside it. 1next_offsetinteger | nullyes The public-contract value “next offset”; its accepted type and requirement are shown alongside it. 1
{
"global_rules": [
{
"id": null,
"code": null,
"version": null,
"action_mode": null,
"scope_mode": null,
"direction_ids": null,
"priority": null,
"starts_at": null,
"ends_at": null,
"title_i18n": null,
"client_message_i18n": null
}
],
"direction_rules": {},
"limit": 1,
"offset": 1,
"next_offset": 1
}
GET /api/partner/v1/reference/services
References and pricing
Services Returns reference data used to populate request identifiers.
Access X-Havvo-Api-Key
Required scope reference:read
Idempotency Not required
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/reference/services" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description direction_idquery no The public-contract value “direction id”; its accepted type and requirement are shown alongside it. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example itemsarray<object>yes The public-contract value “items”; its accepted type and requirement are shown alongside it. [{"code": "string", "name": {}, "id": "00000000-0000-4000-8000-000000000001", "status": "string", "description": {}, "calculation_unit": "string", "application_scope": "string", "requires_process": true}]items.codestringyes The public-contract value “code”; its accepted type and requirement are shown alongside it. stringitems.nameobjectyes The public-contract value “name”; its accepted type and requirement are shown alongside it. {}items.idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001items.statusstringyes Current public resource state. activeitems.descriptionobject | nullyes The public-contract value “description”; its accepted type and requirement are shown alongside it. {}items.calculation_unitstringyes The public-contract value “calculation unit”; its accepted type and requirement are shown alongside it. stringitems.application_scopestringyes The public-contract value “application scope”; its accepted type and requirement are shown alongside it. stringitems.requires_processbooleanyes The public-contract value “requires process”; its accepted type and requirement are shown alongside it. True
{
"items": [
{
"code": null,
"name": null,
"id": null,
"status": null,
"description": null,
"calculation_unit": null,
"application_scope": null,
"requires_process": null
}
]
}
GET /api/partner/v1/reference/statuses
References and pricing
Public Statuses Returns reference data used to populate request identifiers.
Access X-Havvo-Api-Key
Required scope reference:read
Idempotency Not required
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/reference/statuses" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example operationalarray<string>yes The public-contract value “operational”; its accepted type and requirement are shown alongside it. ["string"]financialarray<string>yes The public-contract value “financial”; its accepted type and requirement are shown alongside it. ["string"]lifecyclearray<string>yes The public-contract value “lifecycle”; its accepted type and requirement are shown alongside it. ["string"]cargoarray<string>yes The public-contract value “cargo”; its accepted type and requirement are shown alongside it. ["string"]unknown_values_allowedbooleanyes The public-contract value “unknown values allowed”; its accepted type and requirement are shown alongside it. Truepublic_transitionsarray<object>yes The public-contract value “public transitions”; its accepted type and requirement are shown alongside it. [{"action": "string", "source": "string", "target": "string", "requirements": ["string"]}]public_transitions.actionstringyes The public-contract value “action”; its accepted type and requirement are shown alongside it. stringpublic_transitions.sourcestringyes The public-contract value “source”; its accepted type and requirement are shown alongside it. stringpublic_transitions.targetstringyes The public-contract value “target”; its accepted type and requirement are shown alongside it. stringpublic_transitions.requirementsarray<string>yes The public-contract value “requirements”; its accepted type and requirement are shown alongside it. ["string"]
{
"operational": [
"string"
],
"financial": [
"string"
],
"lifecycle": [
"string"
],
"cargo": [
"string"
],
"unknown_values_allowed": true,
"public_transitions": [
{
"action": null,
"source": null,
"target": null,
"requirements": null
}
]
}
GET /api/partner/v1/webhooks
Webhooks
Api Webhooks Returns webhook subscriptions, delivery, and retries.
Access X-Havvo-Api-Key
Required scope webhooks:manage
Idempotency Not required
Requires webhooks:manage; ordinary GET responses never return secrets.
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/webhooks" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001urlstringyes Public HTTPS webhook URL without redirects or private IPs. https://partner.example.com/havvo/eventseventsarray<string>yes Webhook events listed by GET /capabilities. ["order.status_changed"]statusstringyes Current public resource state. activecreated_atstringyes Server record creation time in ISO 8601 UTC. 2026-11-30T10:00:00Zsigning_secretstring | nullno HMAC secret returned on create/rotation; store in a secret manager. whsec_example
[
{
"id": "00000000-0000-4000-8000-000000000001",
"url": "string",
"events": [
"string"
],
"status": "string",
"created_at": "2026-11-30T10:00:00Z"
}
]
POST /api/partner/v1/webhooks
Webhooks
Api Create Webhook Creates or starts webhook subscriptions, delivery, and retries.
Access X-Havvo-Api-Key
Required scope webhooks:manage
Idempotency Required. A retry with the same key and body returns the same result.
Requires webhooks:manage; ordinary GET responses never return secrets.
Data schema: request Field Type Required Description Example urlstringyes Public HTTPS webhook URL without redirects or private IPs. https://partner.example.com/havvo/eventseventsarray<string>yes Webhook events listed by GET /capabilities. ["order.status_changed"]
curl -X POST "$HAVVO_BASE_URL/api/partner/v1/webhooks" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
--data '{
"url": "string",
"events": [
"cargo.moved"
]
}'
Parameters Name Location Required Description Idempotency-Keyheader no Unique command key. Reuse it only when retrying the unchanged request after a network failure. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 201, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001urlstringyes Public HTTPS webhook URL without redirects or private IPs. https://partner.example.com/havvo/eventseventsarray<string>yes Webhook events listed by GET /capabilities. ["order.status_changed"]statusstringyes Current public resource state. activecreated_atstringyes Server record creation time in ISO 8601 UTC. 2026-11-30T10:00:00Zsigning_secretstring | nullno HMAC secret returned on create/rotation; store in a secret manager. whsec_example
{
"id": "00000000-0000-4000-8000-000000000001",
"url": "string",
"events": [
"string"
],
"status": "string",
"created_at": "2026-11-30T10:00:00Z"
}
GET /api/partner/v1/webhooks/{webhook_id}
Webhooks
Api Webhook Returns webhook subscriptions, delivery, and retries.
Access X-Havvo-Api-Key
Required scope webhooks:manage
Idempotency Not required
Requires webhooks:manage; ordinary GET responses never return secrets.
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/webhooks/{webhook_id}" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description webhook_idpath yes The public-contract value “webhook id”; its accepted type and requirement are shown alongside it. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001urlstringyes Public HTTPS webhook URL without redirects or private IPs. https://partner.example.com/havvo/eventseventsarray<string>yes Webhook events listed by GET /capabilities. ["order.status_changed"]statusstringyes Current public resource state. activecreated_atstringyes Server record creation time in ISO 8601 UTC. 2026-11-30T10:00:00Zsigning_secretstring | nullno HMAC secret returned on create/rotation; store in a secret manager. whsec_example
{
"id": "00000000-0000-4000-8000-000000000001",
"url": "string",
"events": [
"string"
],
"status": "string",
"created_at": "2026-11-30T10:00:00Z"
}
PATCH /api/partner/v1/webhooks/{webhook_id}
Webhooks
Update Webhook Events Partially updates webhook subscriptions, delivery, and retries.
Access X-Havvo-Api-Key
Required scope webhooks:manage
Idempotency Not required
Requires webhooks:manage; ordinary GET responses never return secrets.
Data schema: request Field Type Required Description Example eventsarray<string>yes Webhook events listed by GET /capabilities. ["order.status_changed"]
curl -X PATCH "$HAVVO_BASE_URL/api/partner/v1/webhooks/{webhook_id}" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
--data '{
"events": [
"string"
]
}'
Parameters Name Location Required Description webhook_idpath yes The public-contract value “webhook id”; its accepted type and requirement are shown alongside it. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001urlstringyes Public HTTPS webhook URL without redirects or private IPs. https://partner.example.com/havvo/eventseventsarray<string>yes Webhook events listed by GET /capabilities. ["order.status_changed"]statusstringyes Current public resource state. activecreated_atstringyes Server record creation time in ISO 8601 UTC. 2026-11-30T10:00:00Zsigning_secretstring | nullno HMAC secret returned on create/rotation; store in a secret manager. whsec_example
{
"id": "00000000-0000-4000-8000-000000000001",
"url": "string",
"events": [
"string"
],
"status": "string",
"created_at": "2026-11-30T10:00:00Z"
}
DELETE /api/partner/v1/webhooks/{webhook_id}
Webhooks
Api Delete Webhook Revokes or archives webhook subscriptions, delivery, and retries.
Access X-Havvo-Api-Key
Required scope webhooks:manage
Idempotency Not required
Requires webhooks:manage; ordinary GET responses never return secrets.
curl -X DELETE "$HAVVO_BASE_URL/api/partner/v1/webhooks/{webhook_id}" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description webhook_idpath yes The public-contract value “webhook id”; its accepted type and requirement are shown alongside it. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 204, 422
Error handling 422 — correct fields listed in detail
GET /api/partner/v1/webhooks/{webhook_id}/deliveries
Webhooks
Webhook Deliveries Returns webhook subscriptions, delivery, and retries.
Access X-Havvo-Api-Key
Required scope webhooks:manage
Idempotency Not required
Requires webhooks:manage; ordinary GET responses never return secrets.
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/webhooks/{webhook_id}/deliveries" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description webhook_idpath yes The public-contract value “webhook id”; its accepted type and requirement are shown alongside it. limitquery no Maximum number of items in the page. before_idquery no The public-contract value “before id”; its accepted type and requirement are shown alongside it. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example itemsarray<object>yes The public-contract value “items”; its accepted type and requirement are shown alongside it. [{"id": "00000000-0000-4000-8000-000000000001", "event_id": "00000000-0000-4000-8000-000000000001", "event_type": "string", "status": "string", "attempt_count": 1, "response_status": 1, "next_attempt_at": "2026-11-30T10:00:00Z", "delivered_at": "2026-11-30T10:00:00Z", "created_at": "2026-11-30T10:00:00Z"}]items.idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001items.event_idstringyes The public-contract value “event id”; its accepted type and requirement are shown alongside it. 00000000-0000-4000-8000-000000000001items.event_typestringyes The public-contract value “event type”; its accepted type and requirement are shown alongside it. stringitems.statusstringyes Current public resource state. activeitems.attempt_countintegeryes The public-contract value “attempt count”; its accepted type and requirement are shown alongside it. 1items.response_statusinteger | nullyes The public-contract value “response status”; its accepted type and requirement are shown alongside it. 1items.next_attempt_atstringyes The public-contract value “next attempt at”; its accepted type and requirement are shown alongside it. 2026-11-30T10:00:00Zitems.delivered_atstring | nullyes The public-contract value “delivered at”; its accepted type and requirement are shown alongside it. 2026-11-30T10:00:00Zitems.created_atstringyes Server record creation time in ISO 8601 UTC. 2026-11-30T10:00:00Znext_cursorstring | nullyes Next-page cursor; null means the end of the collection. cursor-value
{
"items": [
{
"id": null,
"event_id": null,
"event_type": null,
"status": null,
"attempt_count": null,
"response_status": null,
"next_attempt_at": null,
"delivered_at": null,
"created_at": null
}
],
"next_cursor": "00000000-0000-4000-8000-000000000001"
}
POST /api/partner/v1/webhooks/{webhook_id}/deliveries/{delivery_id}/retry
Webhooks
Retry Webhook Delivery Creates or starts webhook subscriptions, delivery, and retries.
Access X-Havvo-Api-Key
Required scope webhooks:manage
Idempotency Not required
Requires webhooks:manage; ordinary GET responses never return secrets.
curl -X POST "$HAVVO_BASE_URL/api/partner/v1/webhooks/{webhook_id}/deliveries/{delivery_id}/retry" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description webhook_idpath yes The public-contract value “webhook id”; its accepted type and requirement are shown alongside it. delivery_idpath yes The public-contract value “delivery id”; its accepted type and requirement are shown alongside it. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 202, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001statusstringyes Current public resource state. active
{
"id": "00000000-0000-4000-8000-000000000001",
"status": "string"
}
POST /api/partner/v1/webhooks/{webhook_id}/rotate-secret
Webhooks
Rotate Webhook Secret Creates or starts webhook subscriptions, delivery, and retries.
Access X-Havvo-Api-Key
Required scope webhooks:manage
Idempotency Required. A retry with the same key and body returns the same result.
Requires webhooks:manage; ordinary GET responses never return secrets.
curl -X POST "$HAVVO_BASE_URL/api/partner/v1/webhooks/{webhook_id}/rotate-secret" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description webhook_idpath yes The public-contract value “webhook id”; its accepted type and requirement are shown alongside it. Idempotency-Keyheader yes Unique command key. Reuse it only when retrying the unchanged request after a network failure. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 200, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001urlstringyes Public HTTPS webhook URL without redirects or private IPs. https://partner.example.com/havvo/eventseventsarray<string>yes Webhook events listed by GET /capabilities. ["order.status_changed"]statusstringyes Current public resource state. activecreated_atstringyes Server record creation time in ISO 8601 UTC. 2026-11-30T10:00:00Zsigning_secretstring | nullno HMAC secret returned on create/rotation; store in a secret manager. whsec_example
{
"id": "00000000-0000-4000-8000-000000000001",
"url": "string",
"events": [
"string"
],
"status": "string",
"created_at": "2026-11-30T10:00:00Z"
}
POST /api/partner/v1/webhooks/{webhook_id}/test
Webhooks
Test Webhook Endpoint Creates or starts webhook subscriptions, delivery, and retries.
Access X-Havvo-Api-Key
Required scope webhooks:manage
Idempotency Required. A retry with the same key and body returns the same result.
Requires webhooks:manage; ordinary GET responses never return secrets.
curl -X POST "$HAVVO_BASE_URL/api/partner/v1/webhooks/{webhook_id}/test" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description webhook_idpath yes The public-contract value “webhook id”; its accepted type and requirement are shown alongside it. Idempotency-Keyheader yes Unique command key. Reuse it only when retrying the unchanged request after a network failure. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 202, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001statusstringyes Current public resource state. active
{
"id": "00000000-0000-4000-8000-000000000001",
"status": "string"
}
POST /api/partner/v1/webhooks/{webhook_id}/verify
Webhooks
Verify Webhook Endpoint Creates or starts webhook subscriptions, delivery, and retries.
Access X-Havvo-Api-Key
Required scope webhooks:manage
Idempotency Required. A retry with the same key and body returns the same result.
Requires webhooks:manage; ordinary GET responses never return secrets.
curl -X POST "$HAVVO_BASE_URL/api/partner/v1/webhooks/{webhook_id}/verify" \
-H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
-H "Accept: application/json"
Parameters Name Location Required Description webhook_idpath yes The public-contract value “webhook id”; its accepted type and requirement are shown alongside it. Idempotency-Keyheader yes Unique command key. Reuse it only when retrying the unchanged request after a network failure. X-Havvo-Api-Keyheader no Partner API secret. Send it with every request and never expose it in client-side code or logs.
Responses: 202, 422
Error handling 422 — correct fields listed in detail
Data schema: response Field Type Required Description Example idstringyes Unique resource UUID. 00000000-0000-4000-8000-000000000001statusstringyes Current public resource state. active
{
"id": "00000000-0000-4000-8000-000000000001",
"status": "string"
}