Partner API v1

Partner integration documentation

Havvo Express Partner API

60 API operations · REST · Webhooks

  1. Key
  2. First request
  3. Orders
  4. Webhooks
  5. Go live

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

NameLocationRequiredDescription
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
partner_idstringyesImmutable public partner identifier.partner-demo
codestringyesAlias of the public partner ID.string
partner_uuidstringyesCompatibility UUID for existing order pricing and party inputs.00000000-0000-4000-8000-000000000001
namestringyesThe public-contract value “name”; its accepted type and requirement are shown alongside it.string
legal_namestring | nullyesFull registered name; required only when client_type=legal.ООО Partner Demo
country_idstringyesUUID of an active country from geography.00000000-0000-4000-8000-000000000010
statusstringyesCurrent public resource state.active
scopesarray<string>yesThe 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

NameLocationRequiredDescription
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
policyobjectyesThe 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> | nullyesThe public-contract value “direction ids”; its accepted type and requirement are shown alongside it.["00000000-0000-4000-8000-000000000001"]
policy.branch_idsarray<string> | nullyesThe public-contract value “branch ids”; its accepted type and requirement are shown alongside it.["00000000-0000-4000-8000-000000000001"]
policy.service_idsarray<string> | nullyesThe public-contract value “service ids”; its accepted type and requirement are shown alongside it.["00000000-0000-4000-8000-000000000001"]
policy.operationsarray<string> | nullyesThe public-contract value “operations”; its accepted type and requirement are shown alongside it.["string"]
scopesarray<string>yesThe public-contract value “scopes”; its accepted type and requirement are shown alongside it.["string"]
webhook_eventsarray<string>yesThe public-contract value “webhook events”; its accepted type and requirement are shown alongside it.["string"]
order_creation_principal_readybooleanyesThe public-contract value “order creation principal ready”; its accepted type and requirement are shown alongside it.True
finance_writebooleanyesThe public-contract value “finance write”; its accepted type and requirement are shown alongside it.True
limits_per_minuteobjectyesThe 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.partnerintegeryesThe public-contract value “partner”; its accepted type and requirement are shown alongside it.1
limits_per_minute.key_readintegeryesThe public-contract value “key read”; its accepted type and requirement are shown alongside it.1
limits_per_minute.key_writeintegeryesThe public-contract value “key write”; its accepted type and requirement are shown alongside it.1
rate_limit_enabledbooleanyesThe 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

NameLocationRequiredDescription
cargo_idpathyesUUID of a cargo piece within an order.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
itemsarray<object>yesThe 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.idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
items.event_typestringyesThe public-contract value “event type”; its accepted type and requirement are shown alongside it.string
items.branch_idstringyesThe public-contract value “branch id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
items.branch_namestring | nullyesThe public-contract value “branch name”; its accepted type and requirement are shown alongside it.string
items.quantity_beforeinteger | nullyesThe public-contract value “quantity before”; its accepted type and requirement are shown alongside it.1
items.quantity_afterinteger | nullyesThe public-contract value “quantity after”; its accepted type and requirement are shown alongside it.1
items.weight_beforestring | nullyesThe public-contract value “weight before”; its accepted type and requirement are shown alongside it.string
items.weight_afterstring | nullyesThe public-contract value “weight after”; its accepted type and requirement are shown alongside it.string
items.payloadobjectyesThe public-contract value “payload”; its accepted type and requirement are shown alongside it.{}
items.occurred_atstringyesBusiness 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
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/clients" \
  -H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
  -H "Accept: application/json"

Parameters

NameLocationRequiredDescription
qquerynoThe public-contract value “q”; its accepted type and requirement are shown alongside it.
limitquerynoMaximum number of items in the page.
offsetquerynoThe public-contract value “offset”; its accepted type and requirement are shown alongside it.
before_idquerynoThe public-contract value “before id”; its accepted type and requirement are shown alongside it.
updated_fromquerynoThe public-contract value “updated from”; its accepted type and requirement are shown alongside it.
statusquerynoCurrent public resource state.
contactquerynoThe public-contract value “contact”; its accepted type and requirement are shown alongside it.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
itemsarray<object>yesThe 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.idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
items.custom_idstring | nullyesThe public-contract value “custom id”; its accepted type and requirement are shown alongside it.string
items.client_typestringyesClient type: individual for a person or legal for an organization.individual
items.display_namestringyesDisplay name of the person or organization.ООО Partner Demo
items.first_namestring | nullyesPerson's first name.Алишер
items.last_namestring | nullyesPerson's last name.Каримов
items.patronymicstring | nullyesPerson's patronymic; omit when it is not used.Акмалович
items.legal_namestring | nullyesFull registered name; required only when client_type=legal.ООО Partner Demo
items.tax_numberstring | nullyesOrganization tax number; omit when it is not applicable in the client's country.309123456
items.country_idstringyesUUID of an active country from geography.00000000-0000-4000-8000-000000000010
items.language_codestringyesLanguage used for client notifications and documents. Omit it to use the default Russian language; supported values are ru, uz, and en.ru
items.statusstringyesCurrent public resource state.active
items.can_create_ordersbooleanyesThe public-contract value “can create orders”; its accepted type and requirement are shown alongside it.True
items.versionintegeryesThe public-contract value “version”; its accepted type and requirement are shown alongside it.1
items.created_atstringyesServer record creation time in ISO 8601 UTC.2026-11-30T10:00:00Z
items.updated_atstringyesLast record update time in ISO 8601 UTC.2026-11-30T10:05:00Z
items.contactsarray<object>yesClient 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.idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
items.contacts.typestringyesValue type from the relevant reference catalog or operation enum.phone
items.contacts.valuestringyesValue formatted for the selected type.+998901234567
items.contacts.is_primarybooleanyesMarks the primary contact or address; keep only one primary value per type.true
items.contacts.is_verifiedbooleanyesThe public-contract value “is verified”; its accepted type and requirement are shown alongside it.True
items.private_dataobject | nullyesPersonal identity data. Send only when required for delivery and covered by your lawful basis for processing.null
totalintegeryesThe public-contract value “total”; its accepted type and requirement are shown alongside it.1
limitintegeryesMaximum number of items in the page.50
offsetintegeryesThe public-contract value “offset”; its accepted type and requirement are shown alongside it.1
next_cursorstring | nullyesNext-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.

Data schema: request

FieldTypeRequiredDescriptionExample
client_typestringyesClient type: individual for a person or legal for an organization.individual
display_namestringyesDisplay name of the person or organization.ООО Partner Demo
first_namestring | nullnoPerson's first name.Алишер
last_namestring | nullnoPerson's last name.Каримов
patronymicstring | nullnoPerson's patronymic; omit when it is not used.Акмалович
legal_namestring | nullnoFull registered name; required only when client_type=legal.ООО Partner Demo
tax_numberstring | nullnoOrganization tax number; omit when it is not applicable in the client's country.309123456
country_idstringyesUUID of an active country from geography.00000000-0000-4000-8000-000000000010
language_codestringnoLanguage used for client notifications and documents. Omit it to use the default Russian language; supported values are ru, uz, and en.ru
contactsarray<object>noClient phone numbers and email addresses; send only current contacts and mark one per type as primary.[{"type":"phone","value":"+998901234567","is_primary":true}]
contacts.typestringyesValue type from the relevant reference catalog or operation enum.phone
contacts.valuestringyesValue formatted for the selected type.+998901234567
contacts.is_primarybooleannoMarks the primary contact or address; keep only one primary value per type.true
private_dataobject | nullnoPersonal 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

NameLocationRequiredDescription
Idempotency-KeyheadernoUnique command key. Reuse it only when retrying the unchanged request after a network failure.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
custom_idstring | nullyesThe public-contract value “custom id”; its accepted type and requirement are shown alongside it.string
client_typestringyesClient type: individual for a person or legal for an organization.individual
display_namestringyesDisplay name of the person or organization.ООО Partner Demo
first_namestring | nullyesPerson's first name.Алишер
last_namestring | nullyesPerson's last name.Каримов
patronymicstring | nullyesPerson's patronymic; omit when it is not used.Акмалович
legal_namestring | nullyesFull registered name; required only when client_type=legal.ООО Partner Demo
tax_numberstring | nullyesOrganization tax number; omit when it is not applicable in the client's country.309123456
country_idstringyesUUID of an active country from geography.00000000-0000-4000-8000-000000000010
language_codestringyesLanguage used for client notifications and documents. Omit it to use the default Russian language; supported values are ru, uz, and en.ru
statusstringyesCurrent public resource state.active
can_create_ordersbooleanyesThe public-contract value “can create orders”; its accepted type and requirement are shown alongside it.True
versionintegeryesThe public-contract value “version”; its accepted type and requirement are shown alongside it.1
created_atstringyesServer record creation time in ISO 8601 UTC.2026-11-30T10:00:00Z
updated_atstringyesLast record update time in ISO 8601 UTC.2026-11-30T10:05:00Z
contactsarray<object>yesClient phone numbers and email addresses; send only current contacts and mark one per type as primary.[{"type":"phone","value":"+998901234567","is_primary":true}]
contacts.idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
contacts.typestringyesValue type from the relevant reference catalog or operation enum.phone
contacts.valuestringyesValue formatted for the selected type.+998901234567
contacts.is_primarybooleanyesMarks the primary contact or address; keep only one primary value per type.true
contacts.is_verifiedbooleanyesThe public-contract value “is verified”; its accepted type and requirement are shown alongside it.True
private_dataobject | nullyesPersonal 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
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

NameLocationRequiredDescription
client_idpathyesUUID of a client linked to the current partner.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
custom_idstring | nullyesThe public-contract value “custom id”; its accepted type and requirement are shown alongside it.string
client_typestringyesClient type: individual for a person or legal for an organization.individual
display_namestringyesDisplay name of the person or organization.ООО Partner Demo
first_namestring | nullyesPerson's first name.Алишер
last_namestring | nullyesPerson's last name.Каримов
patronymicstring | nullyesPerson's patronymic; omit when it is not used.Акмалович
legal_namestring | nullyesFull registered name; required only when client_type=legal.ООО Partner Demo
tax_numberstring | nullyesOrganization tax number; omit when it is not applicable in the client's country.309123456
country_idstringyesUUID of an active country from geography.00000000-0000-4000-8000-000000000010
language_codestringyesLanguage used for client notifications and documents. Omit it to use the default Russian language; supported values are ru, uz, and en.ru
statusstringyesCurrent public resource state.active
can_create_ordersbooleanyesThe public-contract value “can create orders”; its accepted type and requirement are shown alongside it.True
versionintegeryesThe public-contract value “version”; its accepted type and requirement are shown alongside it.1
created_atstringyesServer record creation time in ISO 8601 UTC.2026-11-30T10:00:00Z
updated_atstringyesLast record update time in ISO 8601 UTC.2026-11-30T10:05:00Z
contactsarray<object>yesClient phone numbers and email addresses; send only current contacts and mark one per type as primary.[{"type":"phone","value":"+998901234567","is_primary":true}]
contacts.idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
contacts.typestringyesValue type from the relevant reference catalog or operation enum.phone
contacts.valuestringyesValue formatted for the selected type.+998901234567
contacts.is_primarybooleanyesMarks the primary contact or address; keep only one primary value per type.true
contacts.is_verifiedbooleanyesThe public-contract value “is verified”; its accepted type and requirement are shown alongside it.True
private_dataobject | nullyesPersonal 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

Data schema: request

FieldTypeRequiredDescriptionExample
display_namestring | nullnoDisplay name of the person or organization.ООО Partner Demo
first_namestring | nullnoPerson's first name.Алишер
last_namestring | nullnoPerson's last name.Каримов
patronymicstring | nullnoPerson's patronymic; omit when it is not used.Акмалович
legal_namestring | nullnoFull registered name; required only when client_type=legal.ООО Partner Demo
tax_numberstring | nullnoOrganization tax number; omit when it is not applicable in the client's country.309123456
language_codestring | nullnoLanguage 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

NameLocationRequiredDescription
client_idpathyesUUID of a client linked to the current partner.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
custom_idstring | nullyesThe public-contract value “custom id”; its accepted type and requirement are shown alongside it.string
client_typestringyesClient type: individual for a person or legal for an organization.individual
display_namestringyesDisplay name of the person or organization.ООО Partner Demo
first_namestring | nullyesPerson's first name.Алишер
last_namestring | nullyesPerson's last name.Каримов
patronymicstring | nullyesPerson's patronymic; omit when it is not used.Акмалович
legal_namestring | nullyesFull registered name; required only when client_type=legal.ООО Partner Demo
tax_numberstring | nullyesOrganization tax number; omit when it is not applicable in the client's country.309123456
country_idstringyesUUID of an active country from geography.00000000-0000-4000-8000-000000000010
language_codestringyesLanguage used for client notifications and documents. Omit it to use the default Russian language; supported values are ru, uz, and en.ru
statusstringyesCurrent public resource state.active
can_create_ordersbooleanyesThe public-contract value “can create orders”; its accepted type and requirement are shown alongside it.True
versionintegeryesThe public-contract value “version”; its accepted type and requirement are shown alongside it.1
created_atstringyesServer record creation time in ISO 8601 UTC.2026-11-30T10:00:00Z
updated_atstringyesLast record update time in ISO 8601 UTC.2026-11-30T10:05:00Z
contactsarray<object>yesClient phone numbers and email addresses; send only current contacts and mark one per type as primary.[{"type":"phone","value":"+998901234567","is_primary":true}]
contacts.idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
contacts.typestringyesValue type from the relevant reference catalog or operation enum.phone
contacts.valuestringyesValue formatted for the selected type.+998901234567
contacts.is_primarybooleanyesMarks the primary contact or address; keep only one primary value per type.true
contacts.is_verifiedbooleanyesThe public-contract value “is verified”; its accepted type and requirement are shown alongside it.True
private_dataobject | nullyesPersonal 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
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

NameLocationRequiredDescription
client_idpathyesUUID of a client linked to the current partner.
X-Havvo-Api-KeyheadernoPartner 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
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

NameLocationRequiredDescription
client_idpathyesUUID of a client linked to the current partner.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
itemsarray<object>yesThe 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.idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
items.labelstring | nullyesThe public-contract value “label”; its accepted type and requirement are shown alongside it.string
items.country_idstringyesUUID of an active country from geography.00000000-0000-4000-8000-000000000010
items.region_idstring | nullyesThe public-contract value “region id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
items.city_idstring | nullyesCity UUID from the reference catalog.00000000-0000-4000-8000-000000000011
items.region_namestring | nullyesThe public-contract value “region name”; its accepted type and requirement are shown alongside it.string
items.city_namestringyesThe public-contract value “city name”; its accepted type and requirement are shown alongside it.string
items.address_linestringyesFull one-line address for display and printing.Tashkent, Amir Temur 1
items.streetstring | nullyesThe public-contract value “street”; its accepted type and requirement are shown alongside it.string
items.housestring | nullyesThe public-contract value “house”; its accepted type and requirement are shown alongside it.string
items.apartmentstring | nullyesThe public-contract value “apartment”; its accepted type and requirement are shown alongside it.string
items.landmarkstring | nullyesThe public-contract value “landmark”; its accepted type and requirement are shown alongside it.string
items.postal_codestring | nullyesAddress postal code.100000
items.latitudestring | nullyesThe public-contract value “latitude”; its accepted type and requirement are shown alongside it.string
items.longitudestring | nullyesThe public-contract value “longitude”; its accepted type and requirement are shown alongside it.string
items.is_primarybooleanyesMarks the primary contact or address; keep only one primary value per type.true
items.statusstringyesCurrent 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.

Data schema: request

FieldTypeRequiredDescriptionExample
labelstring | nullnoThe public-contract value “label”; its accepted type and requirement are shown alongside it.string
country_idstringyesUUID of an active country from geography.00000000-0000-4000-8000-000000000010
region_idstring | nullnoThe public-contract value “region id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
city_idstring | nullnoCity UUID from the reference catalog.00000000-0000-4000-8000-000000000011
region_namestring | nullnoThe public-contract value “region name”; its accepted type and requirement are shown alongside it.string
city_namestringyesThe public-contract value “city name”; its accepted type and requirement are shown alongside it.string
address_linestringnoFull one-line address for display and printing.Tashkent, Amir Temur 1
streetstring | nullnoThe public-contract value “street”; its accepted type and requirement are shown alongside it.string
housestring | nullnoThe public-contract value “house”; its accepted type and requirement are shown alongside it.string
apartmentstring | nullnoThe public-contract value “apartment”; its accepted type and requirement are shown alongside it.string
landmarkstring | nullnoThe public-contract value “landmark”; its accepted type and requirement are shown alongside it.string
postal_codestring | nullnoAddress postal code.100000
latitudestring | nullnoThe public-contract value “latitude”; its accepted type and requirement are shown alongside it.string
longitudestring | nullnoThe public-contract value “longitude”; its accepted type and requirement are shown alongside it.string
is_primarybooleannoMarks 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

NameLocationRequiredDescription
client_idpathyesUUID of a client linked to the current partner.
Idempotency-KeyheadernoUnique command key. Reuse it only when retrying the unchanged request after a network failure.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
labelstring | nullyesThe public-contract value “label”; its accepted type and requirement are shown alongside it.string
country_idstringyesUUID of an active country from geography.00000000-0000-4000-8000-000000000010
region_idstring | nullyesThe public-contract value “region id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
city_idstring | nullyesCity UUID from the reference catalog.00000000-0000-4000-8000-000000000011
region_namestring | nullyesThe public-contract value “region name”; its accepted type and requirement are shown alongside it.string
city_namestringyesThe public-contract value “city name”; its accepted type and requirement are shown alongside it.string
address_linestringyesFull one-line address for display and printing.Tashkent, Amir Temur 1
streetstring | nullyesThe public-contract value “street”; its accepted type and requirement are shown alongside it.string
housestring | nullyesThe public-contract value “house”; its accepted type and requirement are shown alongside it.string
apartmentstring | nullyesThe public-contract value “apartment”; its accepted type and requirement are shown alongside it.string
landmarkstring | nullyesThe public-contract value “landmark”; its accepted type and requirement are shown alongside it.string
postal_codestring | nullyesAddress postal code.100000
latitudestring | nullyesThe public-contract value “latitude”; its accepted type and requirement are shown alongside it.string
longitudestring | nullyesThe public-contract value “longitude”; its accepted type and requirement are shown alongside it.string
is_primarybooleanyesMarks the primary contact or address; keep only one primary value per type.true
statusstringyesCurrent 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

Data schema: request

FieldTypeRequiredDescriptionExample
labelstring | nullnoThe public-contract value “label”; its accepted type and requirement are shown alongside it.string
country_idstringyesUUID of an active country from geography.00000000-0000-4000-8000-000000000010
region_idstring | nullnoThe public-contract value “region id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
city_idstring | nullnoCity UUID from the reference catalog.00000000-0000-4000-8000-000000000011
region_namestring | nullnoThe public-contract value “region name”; its accepted type and requirement are shown alongside it.string
city_namestringyesThe public-contract value “city name”; its accepted type and requirement are shown alongside it.string
address_linestringnoFull one-line address for display and printing.Tashkent, Amir Temur 1
streetstring | nullnoThe public-contract value “street”; its accepted type and requirement are shown alongside it.string
housestring | nullnoThe public-contract value “house”; its accepted type and requirement are shown alongside it.string
apartmentstring | nullnoThe public-contract value “apartment”; its accepted type and requirement are shown alongside it.string
landmarkstring | nullnoThe public-contract value “landmark”; its accepted type and requirement are shown alongside it.string
postal_codestring | nullnoAddress postal code.100000
latitudestring | nullnoThe public-contract value “latitude”; its accepted type and requirement are shown alongside it.string
longitudestring | nullnoThe public-contract value “longitude”; its accepted type and requirement are shown alongside it.string
is_primarybooleannoMarks 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

NameLocationRequiredDescription
client_idpathyesUUID of a client linked to the current partner.
address_idpathyesThe public-contract value “address id”; its accepted type and requirement are shown alongside it.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
labelstring | nullyesThe public-contract value “label”; its accepted type and requirement are shown alongside it.string
country_idstringyesUUID of an active country from geography.00000000-0000-4000-8000-000000000010
region_idstring | nullyesThe public-contract value “region id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
city_idstring | nullyesCity UUID from the reference catalog.00000000-0000-4000-8000-000000000011
region_namestring | nullyesThe public-contract value “region name”; its accepted type and requirement are shown alongside it.string
city_namestringyesThe public-contract value “city name”; its accepted type and requirement are shown alongside it.string
address_linestringyesFull one-line address for display and printing.Tashkent, Amir Temur 1
streetstring | nullyesThe public-contract value “street”; its accepted type and requirement are shown alongside it.string
housestring | nullyesThe public-contract value “house”; its accepted type and requirement are shown alongside it.string
apartmentstring | nullyesThe public-contract value “apartment”; its accepted type and requirement are shown alongside it.string
landmarkstring | nullyesThe public-contract value “landmark”; its accepted type and requirement are shown alongside it.string
postal_codestring | nullyesAddress postal code.100000
latitudestring | nullyesThe public-contract value “latitude”; its accepted type and requirement are shown alongside it.string
longitudestring | nullyesThe public-contract value “longitude”; its accepted type and requirement are shown alongside it.string
is_primarybooleanyesMarks the primary contact or address; keep only one primary value per type.true
statusstringyesCurrent 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
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

NameLocationRequiredDescription
client_idpathyesUUID of a client linked to the current partner.
address_idpathyesThe public-contract value “address id”; its accepted type and requirement are shown alongside it.
X-Havvo-Api-KeyheadernoPartner 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
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

NameLocationRequiredDescription
client_idpathyesUUID of a client linked to the current partner.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
custom_idstring | nullyesThe public-contract value “custom id”; its accepted type and requirement are shown alongside it.string
client_typestringyesClient type: individual for a person or legal for an organization.individual
display_namestringyesDisplay name of the person or organization.ООО Partner Demo
first_namestring | nullyesPerson's first name.Алишер
last_namestring | nullyesPerson's last name.Каримов
patronymicstring | nullyesPerson's patronymic; omit when it is not used.Акмалович
legal_namestring | nullyesFull registered name; required only when client_type=legal.ООО Partner Demo
tax_numberstring | nullyesOrganization tax number; omit when it is not applicable in the client's country.309123456
country_idstringyesUUID of an active country from geography.00000000-0000-4000-8000-000000000010
language_codestringyesLanguage used for client notifications and documents. Omit it to use the default Russian language; supported values are ru, uz, and en.ru
statusstringyesCurrent public resource state.active
can_create_ordersbooleanyesThe public-contract value “can create orders”; its accepted type and requirement are shown alongside it.True
versionintegeryesThe public-contract value “version”; its accepted type and requirement are shown alongside it.1
created_atstringyesServer record creation time in ISO 8601 UTC.2026-11-30T10:00:00Z
updated_atstringyesLast record update time in ISO 8601 UTC.2026-11-30T10:05:00Z
contactsarray<object>yesClient phone numbers and email addresses; send only current contacts and mark one per type as primary.[{"type":"phone","value":"+998901234567","is_primary":true}]
contacts.idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
contacts.typestringyesValue type from the relevant reference catalog or operation enum.phone
contacts.valuestringyesValue formatted for the selected type.+998901234567
contacts.is_primarybooleanyesMarks the primary contact or address; keep only one primary value per type.true
contacts.is_verifiedbooleanyesThe public-contract value “is verified”; its accepted type and requirement are shown alongside it.True
private_dataobject | nullyesPersonal 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

Data schema: request

FieldTypeRequiredDescriptionExample
contactsarray<object>yesClient phone numbers and email addresses; send only current contacts and mark one per type as primary.[{"type":"phone","value":"+998901234567","is_primary":true}]
contacts.typestringyesValue type from the relevant reference catalog or operation enum.phone
contacts.valuestringyesValue formatted for the selected type.+998901234567
contacts.is_primarybooleannoMarks 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

NameLocationRequiredDescription
client_idpathyesUUID of a client linked to the current partner.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
versionintegeryesThe public-contract value “version”; its accepted type and requirement are shown alongside it.1
prohibited_goods_evaluationobject | nullnoThe 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

Data schema: request

FieldTypeRequiredDescriptionExample
passport_seriesstring | nullnoThe public-contract value “passport series”; its accepted type and requirement are shown alongside it.string
passport_numberstring | nullnoThe public-contract value “passport number”; its accepted type and requirement are shown alongside it.string
passport_iinstring | nullnoThe public-contract value “passport iin”; its accepted type and requirement are shown alongside it.string
passport_issued_bystring | nullnoThe public-contract value “passport issued by”; its accepted type and requirement are shown alongside it.string
passport_issued_datestring | nullnoThe 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

NameLocationRequiredDescription
client_idpathyesUUID of a client linked to the current partner.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
versionintegeryesThe public-contract value “version”; its accepted type and requirement are shown alongside it.1
prohibited_goods_evaluationobject | nullnoThe 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
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/finance/debts" \
  -H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
  -H "Accept: application/json"

Parameters

NameLocationRequiredDescription
limitquerynoMaximum number of items in the page.
cursorquerynoThe public-contract value “cursor”; its accepted type and requirement are shown alongside it.
order_idquerynoUUID of the current partner's order.
client_idquerynoUUID of a client linked to the current partner.
cargo_idquerynoUUID of a cargo piece within an order.
currencyquerynoThree-letter currency code; balances are never combined.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
itemsarray<object>yesThe 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_idstringyesUUID of the current partner's order.00000000-0000-4000-8000-000000000003
items.client_idsarray<string>yesRelated partner clients, including archived links. Amount is per order.["00000000-0000-4000-8000-000000000001"]
items.cargoarray<object>yesThe 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_idstringyesUUID of a cargo piece within an order.00000000-0000-4000-8000-000000000004
items.cargo.chargedstring | nullyesThe public-contract value “charged”; its accepted type and requirement are shown alongside it.string
items.cargo.amountstring | nullyesMonetary amount as a decimal string, never float.125.50
items.currencystring | nullyesThree-letter currency code; balances are never combined.USD
items.chargedstringyesThe public-contract value “charged”; its accepted type and requirement are shown alongside it.string
items.allocatedstringyesThe public-contract value “allocated”; its accepted type and requirement are shown alongside it.string
items.amountstringyesMonetary amount as a decimal string, never float.125.50
next_cursorstring | nullyesNext-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
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/finance/ledger" \
  -H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
  -H "Accept: application/json"

Parameters

NameLocationRequiredDescription
limitquerynoMaximum number of items in the page.
cursorquerynoThe public-contract value “cursor”; its accepted type and requirement are shown alongside it.
order_idquerynoUUID of the current partner's order.
client_idquerynoUUID of a client linked to the current partner.
cargo_idquerynoUUID of a cargo piece within an order.
currencyquerynoThree-letter currency code; balances are never combined.
occurred_fromquerynoThe public-contract value “occurred from”; its accepted type and requirement are shown alongside it.
occurred_toquerynoThe public-contract value “occurred to”; its accepted type and requirement are shown alongside it.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
itemsarray<object>yesThe 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_idstringyesStable operation identifier for deduplication.op:00000000-0000-4000-8000-000000000001
items.operation_typestringyesThe 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_reversalcharge
items.occurred_atstringyesBusiness event time in ISO 8601 with timezone.2026-11-30T10:00:00Z
items.currencystring | nullyesThree-letter currency code; balances are never combined.USD
items.amountstringyesMonetary amount as a decimal string, never float.125.50
items.balance_typestringyesThe public-contract value “balance type”; its accepted type and requirement are shown alongside it. Enum: wallet, order, paymentwallet
items.balance_idstringyesID of the wallet, order or payment whose balance changed.00000000-0000-4000-8000-000000000001
items.balance_changestring | nullyesSigned change, in the currency and balance identified by this row.string
items.balance_beforestring | nullyesThe public-contract value “balance before”; its accepted type and requirement are shown alongside it.string
items.balance_afterstring | nullyesThe public-contract value “balance after”; its accepted type and requirement are shown alongside it.string
items.payment_idstring | nullyesThe public-contract value “payment id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
items.statusstring | nullyesCurrent public resource state.active
items.client_idsarray<string>yesThe public-contract value “client ids”; its accepted type and requirement are shown alongside it.["00000000-0000-4000-8000-000000000001"]
items.order_idsarray<string>yesThe public-contract value “order ids”; its accepted type and requirement are shown alongside it.["00000000-0000-4000-8000-000000000001"]
items.cargo_idsarray<string>yesThe public-contract value “cargo ids”; its accepted type and requirement are shown alongside it.["00000000-0000-4000-8000-000000000001"]
next_cursorstring | nullyesNext-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
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/finance/payments" \
  -H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
  -H "Accept: application/json"

Parameters

NameLocationRequiredDescription
limitquerynoMaximum number of items in the page.
offsetquerynoThe public-contract value “offset”; its accepted type and requirement are shown alongside it.
occurred_fromquerynoThe public-contract value “occurred from”; its accepted type and requirement are shown alongside it.
occurred_toquerynoThe public-contract value “occurred to”; its accepted type and requirement are shown alongside it.
statusquerynoCurrent public resource state.
currencyquerynoThree-letter currency code; balances are never combined.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
itemsarray<object>yesThe 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.idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
items.amountstringyesMonetary amount as a decimal string, never float.125.50
items.unallocated_amountstringyesThe public-contract value “unallocated amount”; its accepted type and requirement are shown alongside it.string
items.methodstringyesThe public-contract value “method”; its accepted type and requirement are shown alongside it.string
items.currencystring | nullyesThree-letter currency code; balances are never combined.USD
items.statusstringyesCurrent public resource state.active
items.commentstring | nullyesPartner order comment; do not include secrets.Handle with care
items.occurred_atstringyesBusiness event time in ISO 8601 with timezone.2026-11-30T10:00:00Z
items.allocationsarray<object>yesThe 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_idstringyesUUID of the current partner's order.00000000-0000-4000-8000-000000000003
items.allocations.amountstringyesMonetary amount as a decimal string, never float.125.50
items.allocations.currencystring | nullyesThree-letter currency code; balances are never combined.USD
totalintegeryesThe public-contract value “total”; its accepted type and requirement are shown alongside it.1
limitintegeryesMaximum number of items in the page.50
offsetintegeryesThe 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
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

NameLocationRequiredDescription
payment_idpathyesThe public-contract value “payment id”; its accepted type and requirement are shown alongside it.
X-Havvo-Api-KeyheadernoPartner 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
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/finance/summary" \
  -H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
  -H "Accept: application/json"

Parameters

NameLocationRequiredDescription
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
walletsarray<object>yesThe 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.currencystringyesThree-letter currency code; balances are never combined.USD
wallets.balancestringyesRunning balance after the operation in the same currency.250.00
wallets.updated_atstringyesLast record update time in ISO 8601 UTC.2026-11-30T10:05:00Z
debtsarray<object>yesThe public-contract value “debts”; its accepted type and requirement are shown alongside it.[{"currency": "string", "amount": "string"}]
debts.currencystringyesThree-letter currency code; balances are never combined.USD
debts.amountstringyesMonetary 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

FieldTypeRequiredDescriptionExample
grace_secondsintegernoThe 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

NameLocationRequiredDescription
Idempotency-KeyheaderyesUnique command key. Reuse it only when retrying the unchanged request after a network failure.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
namestringyesThe public-contract value “name”; its accepted type and requirement are shown alongside it.string
prefixstringyesThe public-contract value “prefix”; its accepted type and requirement are shown alongside it.string
masked_keystringyesThe public-contract value “masked key”; its accepted type and requirement are shown alongside it.string
scopesarray<string>yesThe public-contract value “scopes”; its accepted type and requirement are shown alongside it.["string"]
statusstringyesCurrent public resource state.active
expires_atstring | nullyesThe public-contract value “expires at”; its accepted type and requirement are shown alongside it.2026-11-30T10:00:00Z
last_used_atstring | nullyesThe public-contract value “last used at”; its accepted type and requirement are shown alongside it.2026-11-30T10:00:00Z
created_atstringyesServer record creation time in ISO 8601 UTC.2026-11-30T10:00:00Z
tokenstring | nullnoThe public-contract value “token”; its accepted type and requirement are shown alongside it.string
previous_valid_untilstringyesThe 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

NameLocationRequiredDescription
limitquerynoMaximum number of items in the page.
offsetquerynoThe public-contract value “offset”; its accepted type and requirement are shown alongside it.
operational_statusquerynoOperational order status from the public status catalog.
created_fromquerynoThe public-contract value “created from”; its accepted type and requirement are shown alongside it.
created_toquerynoThe public-contract value “created to”; its accepted type and requirement are shown alongside it.
updated_fromquerynoThe public-contract value “updated from”; its accepted type and requirement are shown alongside it.
tracking_codequerynoPublic Havvo tracking code.
before_idquerynoThe public-contract value “before id”; its accepted type and requirement are shown alongside it.
external_tracking_codequerynoThe public-contract value “external tracking code”; its accepted type and requirement are shown alongside it.
legacy_idquerynoThe public-contract value “legacy id”; its accepted type and requirement are shown alongside it.
external_idquerynoStable order identifier in the partner system.
sortquerynoThe public-contract value “sort”; its accepted type and requirement are shown alongside it.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
itemsarray<object>yesThe 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.idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
items.numberintegeryesThe public-contract value “number”; its accepted type and requirement are shown alongside it.1
items.tracking_codestringyesPublic Havvo tracking code.HV260001234
items.operational_statusstringyesOperational order status from the public status catalog.NEW
items.fulfillment_statestringyesDelivery fulfillment state.pending
items.financial_statusstringyesOrder payment or debt state.unpaid
items.lifecycle_statestringyesLifecycle state: active, cancelled, or deleted.active
items.estimated_totalstringyesThe public-contract value “estimated total”; its accepted type and requirement are shown alongside it.string
items.currencystringyesThree-letter currency code; balances are never combined.USD
items.created_atstringyesServer record creation time in ISO 8601 UTC.2026-11-30T10:00:00Z
items.updated_atstringyesLast record update time in ISO 8601 UTC.2026-11-30T10:05:00Z
totalintegeryesThe public-contract value “total”; its accepted type and requirement are shown alongside it.1
limitintegeryesMaximum number of items in the page.50
offsetintegeryesThe public-contract value “offset”; its accepted type and requirement are shown alongside it.1
next_cursorstring | nullyesNext-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.

Data schema: request

FieldTypeRequiredDescriptionExample
source_channelstringyesThe public-contract value “source channel”; its accepted type and requirement are shown alongside it.string
direction_idstringyesThe public-contract value “direction id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
route_version_idstringyesThe public-contract value “route version id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
tariff_version_idstringyesThe public-contract value “tariff version id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
partiesarray<object>noThe public-contract value “parties”; its accepted type and requirement are shown alongside it.[{"role": "string"}]
parties.rolestringyesThe public-contract value “role”; its accepted type and requirement are shown alongside it.string
parties.client_idstring | nullnoUUID of a client linked to the current partner.00000000-0000-4000-8000-000000000002
parties.partner_idstring | nullnoImmutable public partner identifier.partner-demo
parties.payment_sharenumber | string | nullnoThe public-contract value “payment share”; its accepted type and requirement are shown alongside it.1.00
parties.address_idstring | nullnoThe public-contract value “address id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
parties.cdek_delivery_point_codestring | nullnoThe public-contract value “cdek delivery point code”; its accepted type and requirement are shown alongside it.string
parties.cdek_delivery_pointobject | nullnoThe public-contract value “cdek delivery point”; its accepted type and requirement are shown alongside it.{"code": "string", "name": "string", "selection_source": "automatic"}
itemsarray<object>yesThe 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>noThe public-contract value “prohibited goods rule ids”; its accepted type and requirement are shown alongside it.["00000000-0000-4000-8000-000000000001"]
items.entry_typestringnoThe public-contract value “entry type”; its accepted type and requirement are shown alongside it.package
items.package_keystring | nullnoThe public-contract value “package key”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
items.packaging_namestring | nullnoThe public-contract value “packaging name”; its accepted type and requirement are shown alongside it.string
items.cargo_type_idstringyesThe public-contract value “cargo type id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
items.external_tracking_codestring | nullnoThe public-contract value “external tracking code”; its accepted type and requirement are shown alongside it.string
items.additional_tracking_codesarray<string>noThe public-contract value “additional tracking codes”; its accepted type and requirement are shown alongside it.["string"]
items.additional_tracking_commentsarray<string | null>noThe public-contract value “additional tracking comments”; its accepted type and requirement are shown alongside it.["string"]
items.descriptionstring | nullnoThe public-contract value “description”; its accepted type and requirement are shown alongside it.string
items.quantityintegernoNumber of units; must be positive.1
items.declared_weightnumber | stringyesThe public-contract value “declared weight”; its accepted type and requirement are shown alongside it.1.00
items.length_cmnumber | string | nullnoThe public-contract value “length cm”; its accepted type and requirement are shown alongside it.1.00
items.width_cmnumber | string | nullnoThe public-contract value “width cm”; its accepted type and requirement are shown alongside it.1.00
items.height_cmnumber | string | nullnoThe public-contract value “height cm”; its accepted type and requirement are shown alongside it.1.00
items.declared_valuenumber | string | nullnoThe public-contract value “declared value”; its accepted type and requirement are shown alongside it.1.00
servicesarray<object>noThe public-contract value “services”; its accepted type and requirement are shown alongside it.[{"service_id": "00000000-0000-4000-8000-000000000001"}]
services.service_idstringyesThe public-contract value “service id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
services.quantitynumber | stringnoNumber of units; must be positive.1
services.override_amountnumber | string | nullnoThe public-contract value “override amount”; its accepted type and requirement are shown alongside it.1.00
commentstring | nullnoPartner order comment; do not include secrets.Handle with care
pricing_client_idstring | nullnoThe public-contract value “pricing client id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
pricing_partner_idstring | nullnoThe public-contract value “pricing partner id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
prohibited_goods_confirmationsarray<string>noThe public-contract value “prohibited goods confirmations”; its accepted type and requirement are shown alongside it.["string"]
expected_totalnumber | stringyesExpected 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

NameLocationRequiredDescription
Idempotency-KeyheaderyesUnique command key. Reuse it only when retrying the unchanged request after a network failure.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
prohibited_goods_evaluationobject | nullnoThe 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"}
idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
public_numberintegeryesThe public-contract value “public number”; its accepted type and requirement are shown alongside it.1
tracking_codestringyesPublic Havvo tracking code.HV260001234
operational_statusstringyesOperational order status from the public status catalog.NEW
fulfillment_statestringyesDelivery fulfillment state.pending
financial_statusstringyesOrder payment or debt state.unpaid
lifecycle_statestringyesLifecycle state: active, cancelled, or deleted.active
estimated_totalstringyesThe public-contract value “estimated total”; its accepted type and requirement are shown alongside it.string
paid_totalstringnoThe public-contract value “paid total”; its accepted type and requirement are shown alongside it.0
external_paidstringnoThe public-contract value “external paid”; its accepted type and requirement are shown alongside it.0
balance_paidstringnoThe public-contract value “balance paid”; its accepted type and requirement are shown alongside it.0
bonus_paidstringnoThe public-contract value “bonus paid”; its accepted type and requirement are shown alongside it.0
currency_codestringyesThe public-contract value “currency code”; its accepted type and requirement are shown alongside it.string
versionintegeryesThe public-contract value “version”; its accepted type and requirement are shown alongside it.1
tariff_recalculatedbooleannoThe 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

Data schema: request

FieldTypeRequiredDescriptionExample
source_channelstringyesThe public-contract value “source channel”; its accepted type and requirement are shown alongside it.string
direction_idstringyesThe public-contract value “direction id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
route_version_idstringyesThe public-contract value “route version id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
tariff_version_idstringyesThe public-contract value “tariff version id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
partiesarray<object>noThe public-contract value “parties”; its accepted type and requirement are shown alongside it.[{"role": "string"}]
parties.rolestringyesThe public-contract value “role”; its accepted type and requirement are shown alongside it.string
parties.client_idstring | nullnoUUID of a client linked to the current partner.00000000-0000-4000-8000-000000000002
parties.partner_idstring | nullnoImmutable public partner identifier.partner-demo
parties.payment_sharenumber | string | nullnoThe public-contract value “payment share”; its accepted type and requirement are shown alongside it.1.00
parties.address_idstring | nullnoThe public-contract value “address id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
parties.cdek_delivery_point_codestring | nullnoThe public-contract value “cdek delivery point code”; its accepted type and requirement are shown alongside it.string
parties.cdek_delivery_pointobject | nullnoThe public-contract value “cdek delivery point”; its accepted type and requirement are shown alongside it.{"code": "string", "name": "string", "selection_source": "automatic"}
itemsarray<object>yesThe 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>noThe public-contract value “prohibited goods rule ids”; its accepted type and requirement are shown alongside it.["00000000-0000-4000-8000-000000000001"]
items.entry_typestringnoThe public-contract value “entry type”; its accepted type and requirement are shown alongside it.package
items.package_keystring | nullnoThe public-contract value “package key”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
items.packaging_namestring | nullnoThe public-contract value “packaging name”; its accepted type and requirement are shown alongside it.string
items.cargo_type_idstringyesThe public-contract value “cargo type id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
items.external_tracking_codestring | nullnoThe public-contract value “external tracking code”; its accepted type and requirement are shown alongside it.string
items.additional_tracking_codesarray<string>noThe public-contract value “additional tracking codes”; its accepted type and requirement are shown alongside it.["string"]
items.additional_tracking_commentsarray<string | null>noThe public-contract value “additional tracking comments”; its accepted type and requirement are shown alongside it.["string"]
items.descriptionstring | nullnoThe public-contract value “description”; its accepted type and requirement are shown alongside it.string
items.quantityintegernoNumber of units; must be positive.1
items.declared_weightnumber | stringyesThe public-contract value “declared weight”; its accepted type and requirement are shown alongside it.1.00
items.length_cmnumber | string | nullnoThe public-contract value “length cm”; its accepted type and requirement are shown alongside it.1.00
items.width_cmnumber | string | nullnoThe public-contract value “width cm”; its accepted type and requirement are shown alongside it.1.00
items.height_cmnumber | string | nullnoThe public-contract value “height cm”; its accepted type and requirement are shown alongside it.1.00
items.declared_valuenumber | string | nullnoThe public-contract value “declared value”; its accepted type and requirement are shown alongside it.1.00
servicesarray<object>noThe public-contract value “services”; its accepted type and requirement are shown alongside it.[{"service_id": "00000000-0000-4000-8000-000000000001"}]
services.service_idstringyesThe public-contract value “service id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
services.quantitynumber | stringnoNumber of units; must be positive.1
services.override_amountnumber | string | nullnoThe public-contract value “override amount”; its accepted type and requirement are shown alongside it.1.00
commentstring | nullnoPartner order comment; do not include secrets.Handle with care
pricing_client_idstring | nullnoThe public-contract value “pricing client id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
pricing_partner_idstring | nullnoThe 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

NameLocationRequiredDescription
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
prohibited_goods_evaluationobject | nullnoThe 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_idstringyesThe public-contract value “tariff plan id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
tariff_version_idstringyesThe public-contract value “tariff version id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
route_version_idstringyesThe public-contract value “route version id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
currency_codestringyesThe public-contract value “currency code”; its accepted type and requirement are shown alongside it.string
itemsarray<object>yesThe 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_idstringyesThe public-contract value “cargo type id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
items.external_tracking_codestring | nullyesThe public-contract value “external tracking code”; its accepted type and requirement are shown alongside it.string
items.entry_typestring | nullnoThe public-contract value “entry type”; its accepted type and requirement are shown alongside it.package
items.package_keystring | nullnoThe public-contract value “package key”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
items.quantityintegernoNumber of units; must be positive.1
items.pricing_quantityintegernoThe public-contract value “pricing quantity”; its accepted type and requirement are shown alongside it.1
items.logistic_quantityintegernoThe public-contract value “logistic quantity”; its accepted type and requirement are shown alongside it.1
items.measurement_basisstringnoThe public-contract value “measurement basis”; its accepted type and requirement are shown alongside it. Enum: per_unit, totaltotal
items.actual_weightstringyesThe public-contract value “actual weight”; its accepted type and requirement are shown alongside it.string
items.volumetric_weightstring | nullyesThe public-contract value “volumetric weight”; its accepted type and requirement are shown alongside it.string
items.calculation_weightstringyesThe public-contract value “calculation weight”; its accepted type and requirement are shown alongside it.string
items.calculation_unitstringnoThe public-contract value “calculation unit”; its accepted type and requirement are shown alongside it.kg
items.unit_actual_weightstring | nullnoThe public-contract value “unit actual weight”; its accepted type and requirement are shown alongside it.string
items.total_actual_weightstring | nullnoThe public-contract value “total actual weight”; its accepted type and requirement are shown alongside it.string
items.unit_volumetric_weightstring | nullnoThe public-contract value “unit volumetric weight”; its accepted type and requirement are shown alongside it.string
items.total_volumetric_weightstring | nullnoThe public-contract value “total volumetric weight”; its accepted type and requirement are shown alongside it.string
items.unit_calculation_weightstring | nullnoThe public-contract value “unit calculation weight”; its accepted type and requirement are shown alongside it.string
items.total_calculation_weightstring | nullnoThe public-contract value “total calculation weight”; its accepted type and requirement are shown alongside it.string
items.unit_declared_valuestring | nullnoThe public-contract value “unit declared value”; its accepted type and requirement are shown alongside it.string
items.total_declared_valuestring | nullnoThe public-contract value “total declared value”; its accepted type and requirement are shown alongside it.string
items.unit_pricestringyesThe public-contract value “unit price”; its accepted type and requirement are shown alongside it.string
items.amountstringyesMonetary amount as a decimal string, never float.125.50
items.sourcestringyesThe public-contract value “source”; its accepted type and requirement are shown alongside it.string
servicesarray<object>noThe 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_idstringyesThe public-contract value “service id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
services.calculation_unitstring | nullnoThe public-contract value “calculation unit”; its accepted type and requirement are shown alongside it.string
services.base_amountstring | nullnoThe public-contract value “base amount”; its accepted type and requirement are shown alongside it.string
services.quantitystringyesNumber of units; must be positive.1
services.unit_amountstringyesThe public-contract value “unit amount”; its accepted type and requirement are shown alongside it.string
services.amountstringyesMonetary amount as a decimal string, never float.125.50
services.currency_codestringyesThe public-contract value “currency code”; its accepted type and requirement are shown alongside it.string
services.sourcestringyesThe public-contract value “source”; its accepted type and requirement are shown alongside it.string
estimated_totalstringyesThe public-contract value “estimated total”; its accepted type and requirement are shown alongside it.string
warningsarray<string>yesThe public-contract value “warnings”; its accepted type and requirement are shown alongside it.["string"]
quantity_semanticsstringnoThe 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

NameLocationRequiredDescription
order_idpathyesUUID of the current partner's order.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
numberintegeryesThe public-contract value “number”; its accepted type and requirement are shown alongside it.1
tracking_codestringyesPublic Havvo tracking code.HV260001234
operational_statusstringyesOperational order status from the public status catalog.NEW
fulfillment_statestringyesDelivery fulfillment state.pending
financial_statusstringyesOrder payment or debt state.unpaid
lifecycle_statestringyesLifecycle state: active, cancelled, or deleted.active
itemsarray<object>yesThe 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_editablebooleanyesWhether the declared cargo item can currently be edited.true
items.can_cancelbooleanyesWhether the declared cargo item can currently be cancelled.true
items.can_deletebooleanyesWhether the declared cargo item can currently be soft-deleted.true
items.locked_atstring | nullyesTime at which cargo mutations became locked; null means no lock.2026-11-30T10:00:00Z
items.lock_reasonstring | nullyesReason cargo mutations are locked, for example CARGO_ACCEPTED.CARGO_ACCEPTED
items.idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
items.cargo_type_idstringyesThe public-contract value “cargo type id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
items.external_tracking_codestring | nullyesThe public-contract value “external tracking code”; its accepted type and requirement are shown alongside it.string
items.packaging_namestring | nullyesThe public-contract value “packaging name”; its accepted type and requirement are shown alongside it.string
items.descriptionstring | nullyesThe public-contract value “description”; its accepted type and requirement are shown alongside it.string
items.quantityintegeryesNumber of units; must be positive.1
items.declared_weightstringyesThe public-contract value “declared weight”; its accepted type and requirement are shown alongside it.string
items.length_cmstring | nullyesThe public-contract value “length cm”; its accepted type and requirement are shown alongside it.string
items.width_cmstring | nullyesThe public-contract value “width cm”; its accepted type and requirement are shown alongside it.string
items.height_cmstring | nullyesThe public-contract value “height cm”; its accepted type and requirement are shown alongside it.string
items.declared_valuestring | nullyesThe public-contract value “declared value”; its accepted type and requirement are shown alongside it.string
items.statusstringyesCurrent public resource state.active
items.lifecycle_statestringyesLifecycle state: active, cancelled, or deleted.active
items.versionintegeryesThe public-contract value “version”; its accepted type and requirement are shown alongside it.1
eventsarray<object>yesWebhook events listed by GET /capabilities.["order.status_changed"]
events.idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
events.typestringyesValue type from the relevant reference catalog or operation enum.phone
events.payloadobjectyesThe public-contract value “payload”; its accepted type and requirement are shown alongside it.{}
events.occurred_atstringyesBusiness event time in ISO 8601 with timezone.2026-11-30T10:00:00Z
partiesarray<object>yesThe 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.rolestringyesThe public-contract value “role”; its accepted type and requirement are shown alongside it.string
parties.client_idstring | nullyesUUID of a client linked to the current partner.00000000-0000-4000-8000-000000000002
parties.partner_idstring | nullyesImmutable public partner identifier.partner-demo
parties.namestringyesThe public-contract value “name”; its accepted type and requirement are shown alongside it.string
parties.custom_idstring | nullyesThe public-contract value “custom id”; its accepted type and requirement are shown alongside it.string
parties.phonestring | nullyesPhone number in international format.+998901234567
parties.emailstring | nullyesContact email; not a resource identifier.integration@example.com
parties.addressobject | nullyesThe 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 | nullyesThe public-contract value “payment share”; its accepted type and requirement are shown alongside it.string
price_componentsarray<object> | nullyesThe 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_totalstringyesThe public-contract value “estimated total”; its accepted type and requirement are shown alongside it.string
currencystringyesThree-letter currency code; balances are never combined.USD
versionintegeryesThe public-contract value “version”; its accepted type and requirement are shown alongside it.1
created_atstringyesServer record creation time in ISO 8601 UTC.2026-11-30T10:00:00Z
updated_atstringyesLast 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

Data schema: request

FieldTypeRequiredDescriptionExample
source_channelstringyesThe public-contract value “source channel”; its accepted type and requirement are shown alongside it.string
direction_idstringyesThe public-contract value “direction id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
route_version_idstringyesThe public-contract value “route version id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
tariff_version_idstringyesThe public-contract value “tariff version id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
partiesarray<object>noThe public-contract value “parties”; its accepted type and requirement are shown alongside it.[{"role": "string"}]
parties.rolestringyesThe public-contract value “role”; its accepted type and requirement are shown alongside it.string
parties.client_idstring | nullnoUUID of a client linked to the current partner.00000000-0000-4000-8000-000000000002
parties.partner_idstring | nullnoImmutable public partner identifier.partner-demo
parties.payment_sharenumber | string | nullnoThe public-contract value “payment share”; its accepted type and requirement are shown alongside it.1.00
parties.address_idstring | nullnoThe public-contract value “address id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
parties.cdek_delivery_point_codestring | nullnoThe public-contract value “cdek delivery point code”; its accepted type and requirement are shown alongside it.string
parties.cdek_delivery_pointobject | nullnoThe public-contract value “cdek delivery point”; its accepted type and requirement are shown alongside it.{"code": "string", "name": "string", "selection_source": "automatic"}
itemsarray<object>yesThe 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>noThe public-contract value “prohibited goods rule ids”; its accepted type and requirement are shown alongside it.["00000000-0000-4000-8000-000000000001"]
items.entry_typestringnoThe public-contract value “entry type”; its accepted type and requirement are shown alongside it.package
items.package_keystring | nullnoThe public-contract value “package key”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
items.packaging_namestring | nullnoThe public-contract value “packaging name”; its accepted type and requirement are shown alongside it.string
items.cargo_type_idstringyesThe public-contract value “cargo type id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
items.external_tracking_codestring | nullnoThe public-contract value “external tracking code”; its accepted type and requirement are shown alongside it.string
items.additional_tracking_codesarray<string>noThe public-contract value “additional tracking codes”; its accepted type and requirement are shown alongside it.["string"]
items.additional_tracking_commentsarray<string | null>noThe public-contract value “additional tracking comments”; its accepted type and requirement are shown alongside it.["string"]
items.descriptionstring | nullnoThe public-contract value “description”; its accepted type and requirement are shown alongside it.string
items.quantityintegernoNumber of units; must be positive.1
items.declared_weightnumber | stringyesThe public-contract value “declared weight”; its accepted type and requirement are shown alongside it.1.00
items.length_cmnumber | string | nullnoThe public-contract value “length cm”; its accepted type and requirement are shown alongside it.1.00
items.width_cmnumber | string | nullnoThe public-contract value “width cm”; its accepted type and requirement are shown alongside it.1.00
items.height_cmnumber | string | nullnoThe public-contract value “height cm”; its accepted type and requirement are shown alongside it.1.00
items.declared_valuenumber | string | nullnoThe public-contract value “declared value”; its accepted type and requirement are shown alongside it.1.00
servicesarray<object>noThe public-contract value “services”; its accepted type and requirement are shown alongside it.[{"service_id": "00000000-0000-4000-8000-000000000001"}]
services.service_idstringyesThe public-contract value “service id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
services.quantitynumber | stringnoNumber of units; must be positive.1
services.override_amountnumber | string | nullnoThe public-contract value “override amount”; its accepted type and requirement are shown alongside it.1.00
commentstring | nullnoPartner order comment; do not include secrets.Handle with care
pricing_client_idstring | nullnoThe public-contract value “pricing client id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
pricing_partner_idstring | nullnoThe public-contract value “pricing partner id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
prohibited_goods_confirmationsarray<string>noThe public-contract value “prohibited goods confirmations”; its accepted type and requirement are shown alongside it.["string"]
expected_totalnumber | stringyesExpected 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

NameLocationRequiredDescription
order_idpathyesUUID of the current partner's order.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
versionintegeryesThe public-contract value “version”; its accepted type and requirement are shown alongside it.1
prohibited_goods_evaluationobject | nullnoThe 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

Data schema: request

FieldTypeRequiredDescriptionExample
commentstring | nullnoPartner 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

NameLocationRequiredDescription
order_idpathyesUUID of the current partner's order.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
versionintegeryesThe public-contract value “version”; its accepted type and requirement are shown alongside it.1
prohibited_goods_evaluationobject | nullnoThe 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

Data schema: request

FieldTypeRequiredDescriptionExample
reasonstringyesRequired 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

NameLocationRequiredDescription
order_idpathyesUUID of the current partner's order.
X-Havvo-Api-KeyheadernoPartner 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

Data schema: request

FieldTypeRequiredDescriptionExample
reasonstringyesRequired 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

NameLocationRequiredDescription
order_idpathyesUUID of the current partner's order.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
versionintegeryesThe public-contract value “version”; its accepted type and requirement are shown alongside it.1
prohibited_goods_evaluationobject | nullnoThe 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_statusstringyesOperational 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

NameLocationRequiredDescription
order_idpathyesUUID of the current partner's order.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
itemsarray<object>yesThe 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.idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
items.barcodestringyesCargo-piece or package barcode.HV-CARGO-0001
items.cargo_type_idstringyesThe public-contract value “cargo type id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
items.quantityintegeryesNumber of units; must be positive.1
items.actual_weightstringyesThe public-contract value “actual weight”; its accepted type and requirement are shown alongside it.string
items.volumetric_weightstring | nullyesThe public-contract value “volumetric weight”; its accepted type and requirement are shown alongside it.string
items.calculation_weightstringyesThe public-contract value “calculation weight”; its accepted type and requirement are shown alongside it.string
items.dimensions_cmobjectyesThe public-contract value “dimensions cm”; its accepted type and requirement are shown alongside it.{"length": "string", "width": "string", "height": "string"}
items.dimensions_cm.lengthstring | nullyesThe public-contract value “length”; its accepted type and requirement are shown alongside it.string
items.dimensions_cm.widthstring | nullyesThe public-contract value “width”; its accepted type and requirement are shown alongside it.string
items.dimensions_cm.heightstring | nullyesThe public-contract value “height”; its accepted type and requirement are shown alongside it.string
items.current_stagestringyesThe public-contract value “current stage”; its accepted type and requirement are shown alongside it.string
items.packageobject | nullyesThe 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_atstringyesServer record creation time in ISO 8601 UTC.2026-11-30T10:00:00Z
items.updated_atstringyesLast 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
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

NameLocationRequiredDescription
order_idpathyesUUID of the current partner's order.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
external_idstringyesStable 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

Data schema: request

FieldTypeRequiredDescriptionExample
external_idstringyesStable 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

NameLocationRequiredDescription
order_idpathyesUUID of the current partner's order.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
external_idstringyesStable 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

NameLocationRequiredDescription
order_idpathyesUUID of the current partner's order.
item_idpathyesThe public-contract value “item id”; its accepted type and requirement are shown alongside it.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
is_editablebooleanyesWhether the declared cargo item can currently be edited.true
can_cancelbooleanyesWhether the declared cargo item can currently be cancelled.true
can_deletebooleanyesWhether the declared cargo item can currently be soft-deleted.true
locked_atstring | nullyesTime at which cargo mutations became locked; null means no lock.2026-11-30T10:00:00Z
lock_reasonstring | nullyesReason cargo mutations are locked, for example CARGO_ACCEPTED.CARGO_ACCEPTED
idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
cargo_type_idstringyesThe public-contract value “cargo type id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
external_tracking_codestring | nullyesThe public-contract value “external tracking code”; its accepted type and requirement are shown alongside it.string
packaging_namestring | nullyesThe public-contract value “packaging name”; its accepted type and requirement are shown alongside it.string
descriptionstring | nullyesThe public-contract value “description”; its accepted type and requirement are shown alongside it.string
quantityintegeryesNumber of units; must be positive.1
declared_weightstringyesThe public-contract value “declared weight”; its accepted type and requirement are shown alongside it.string
length_cmstring | nullyesThe public-contract value “length cm”; its accepted type and requirement are shown alongside it.string
width_cmstring | nullyesThe public-contract value “width cm”; its accepted type and requirement are shown alongside it.string
height_cmstring | nullyesThe public-contract value “height cm”; its accepted type and requirement are shown alongside it.string
declared_valuestring | nullyesThe public-contract value “declared value”; its accepted type and requirement are shown alongside it.string
statusstringyesCurrent public resource state.active
lifecycle_statestringyesLifecycle state: active, cancelled, or deleted.active
versionintegeryesThe 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.

Data schema: request

FieldTypeRequiredDescriptionExample
descriptionstring | nullnoThe public-contract value “description”; its accepted type and requirement are shown alongside it.string
external_tracking_codestring | nullnoThe public-contract value “external tracking code”; its accepted type and requirement are shown alongside it.string
cargo_type_idstring | nullnoThe public-contract value “cargo type id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
packaging_namestring | nullnoThe public-contract value “packaging name”; its accepted type and requirement are shown alongside it.string
quantityinteger | nullnoNumber of units; must be positive.1
declared_weightnumber | string | nullnoThe public-contract value “declared weight”; its accepted type and requirement are shown alongside it.1.00
length_cmnumber | string | nullnoThe public-contract value “length cm”; its accepted type and requirement are shown alongside it.1.00
width_cmnumber | string | nullnoThe public-contract value “width cm”; its accepted type and requirement are shown alongside it.1.00
height_cmnumber | string | nullnoThe public-contract value “height cm”; its accepted type and requirement are shown alongside it.1.00
declared_valuenumber | string | nullnoThe public-contract value “declared value”; its accepted type and requirement are shown alongside it.1.00
expected_totalnumber | string | nullnoExpected order total after the change; use the value returned by preview.125.50
expected_versionintegeryesCargo 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

NameLocationRequiredDescription
order_idpathyesUUID of the current partner's order.
item_idpathyesThe public-contract value “item id”; its accepted type and requirement are shown alongside it.
Idempotency-KeyheaderyesUnique command key. Reuse it only when retrying the unchanged request after a network failure.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
is_editablebooleanyesWhether the declared cargo item can currently be edited.true
can_cancelbooleanyesWhether the declared cargo item can currently be cancelled.true
can_deletebooleanyesWhether the declared cargo item can currently be soft-deleted.true
locked_atstring | nullyesTime at which cargo mutations became locked; null means no lock.2026-11-30T10:00:00Z
lock_reasonstring | nullyesReason cargo mutations are locked, for example CARGO_ACCEPTED.CARGO_ACCEPTED
idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
cargo_type_idstringyesThe public-contract value “cargo type id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
external_tracking_codestring | nullyesThe public-contract value “external tracking code”; its accepted type and requirement are shown alongside it.string
packaging_namestring | nullyesThe public-contract value “packaging name”; its accepted type and requirement are shown alongside it.string
descriptionstring | nullyesThe public-contract value “description”; its accepted type and requirement are shown alongside it.string
quantityintegeryesNumber of units; must be positive.1
declared_weightstringyesThe public-contract value “declared weight”; its accepted type and requirement are shown alongside it.string
length_cmstring | nullyesThe public-contract value “length cm”; its accepted type and requirement are shown alongside it.string
width_cmstring | nullyesThe public-contract value “width cm”; its accepted type and requirement are shown alongside it.string
height_cmstring | nullyesThe public-contract value “height cm”; its accepted type and requirement are shown alongside it.string
declared_valuestring | nullyesThe public-contract value “declared value”; its accepted type and requirement are shown alongside it.string
statusstringyesCurrent public resource state.active
lifecycle_statestringyesLifecycle state: active, cancelled, or deleted.active
versionintegeryesThe 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.

Data schema: request

FieldTypeRequiredDescriptionExample
expected_versionintegeryesCargo item version returned by the latest GET; prevents overwriting concurrent changes.1
expected_totalnumber | stringyesExpected order total after the change; use the value returned by preview.125.50
reasonstringyesRequired 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

NameLocationRequiredDescription
order_idpathyesUUID of the current partner's order.
item_idpathyesThe public-contract value “item id”; its accepted type and requirement are shown alongside it.
Idempotency-KeyheaderyesUnique command key. Reuse it only when retrying the unchanged request after a network failure.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
is_editablebooleanyesWhether the declared cargo item can currently be edited.true
can_cancelbooleanyesWhether the declared cargo item can currently be cancelled.true
can_deletebooleanyesWhether the declared cargo item can currently be soft-deleted.true
locked_atstring | nullyesTime at which cargo mutations became locked; null means no lock.2026-11-30T10:00:00Z
lock_reasonstring | nullyesReason cargo mutations are locked, for example CARGO_ACCEPTED.CARGO_ACCEPTED
idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
cargo_type_idstringyesThe public-contract value “cargo type id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
external_tracking_codestring | nullyesThe public-contract value “external tracking code”; its accepted type and requirement are shown alongside it.string
packaging_namestring | nullyesThe public-contract value “packaging name”; its accepted type and requirement are shown alongside it.string
descriptionstring | nullyesThe public-contract value “description”; its accepted type and requirement are shown alongside it.string
quantityintegeryesNumber of units; must be positive.1
declared_weightstringyesThe public-contract value “declared weight”; its accepted type and requirement are shown alongside it.string
length_cmstring | nullyesThe public-contract value “length cm”; its accepted type and requirement are shown alongside it.string
width_cmstring | nullyesThe public-contract value “width cm”; its accepted type and requirement are shown alongside it.string
height_cmstring | nullyesThe public-contract value “height cm”; its accepted type and requirement are shown alongside it.string
declared_valuestring | nullyesThe public-contract value “declared value”; its accepted type and requirement are shown alongside it.string
statusstringyesCurrent public resource state.active
lifecycle_statestringyesLifecycle state: active, cancelled, or deleted.active
versionintegeryesThe 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.

Data schema: request

FieldTypeRequiredDescriptionExample
expected_versionintegeryesCargo item version returned by the latest GET; prevents overwriting concurrent changes.1
expected_totalnumber | stringyesExpected order total after the change; use the value returned by preview.125.50
reasonstringyesRequired 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

NameLocationRequiredDescription
order_idpathyesUUID of the current partner's order.
item_idpathyesThe public-contract value “item id”; its accepted type and requirement are shown alongside it.
Idempotency-KeyheaderyesUnique command key. Reuse it only when retrying the unchanged request after a network failure.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
is_editablebooleanyesWhether the declared cargo item can currently be edited.true
can_cancelbooleanyesWhether the declared cargo item can currently be cancelled.true
can_deletebooleanyesWhether the declared cargo item can currently be soft-deleted.true
locked_atstring | nullyesTime at which cargo mutations became locked; null means no lock.2026-11-30T10:00:00Z
lock_reasonstring | nullyesReason cargo mutations are locked, for example CARGO_ACCEPTED.CARGO_ACCEPTED
idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
cargo_type_idstringyesThe public-contract value “cargo type id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
external_tracking_codestring | nullyesThe public-contract value “external tracking code”; its accepted type and requirement are shown alongside it.string
packaging_namestring | nullyesThe public-contract value “packaging name”; its accepted type and requirement are shown alongside it.string
descriptionstring | nullyesThe public-contract value “description”; its accepted type and requirement are shown alongside it.string
quantityintegeryesNumber of units; must be positive.1
declared_weightstringyesThe public-contract value “declared weight”; its accepted type and requirement are shown alongside it.string
length_cmstring | nullyesThe public-contract value “length cm”; its accepted type and requirement are shown alongside it.string
width_cmstring | nullyesThe public-contract value “width cm”; its accepted type and requirement are shown alongside it.string
height_cmstring | nullyesThe public-contract value “height cm”; its accepted type and requirement are shown alongside it.string
declared_valuestring | nullyesThe public-contract value “declared value”; its accepted type and requirement are shown alongside it.string
statusstringyesCurrent public resource state.active
lifecycle_statestringyesLifecycle state: active, cancelled, or deleted.active
versionintegeryesThe 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
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

NameLocationRequiredDescription
order_idpathyesUUID of the current partner's order.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
orderobjectyesThe 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.idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
order.numberintegeryesThe public-contract value “number”; its accepted type and requirement are shown alongside it.1
order.tracking_codestringyesPublic Havvo tracking code.HV260001234
cargo_labelsarray<object>yesThe 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_typestringyesThe public-contract value “entity type”; its accepted type and requirement are shown alongside it.string
cargo_labels.entity_idstringyesThe public-contract value “entity id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
cargo_labels.barcodestringyesCargo-piece or package barcode.HV-CARGO-0001
cargo_labels.captionstringyesThe public-contract value “caption”; its accepted type and requirement are shown alongside it.string
cargo_labels.weightstringyesWeight in the contract unit as a decimal string.2.50
package_labelsarray<object>yesThe 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_typestringyesThe public-contract value “entity type”; its accepted type and requirement are shown alongside it.string
package_labels.entity_idstringyesThe public-contract value “entity id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
package_labels.barcodestringyesCargo-piece or package barcode.HV-CARGO-0001
package_labels.captionstringyesThe public-contract value “caption”; its accepted type and requirement are shown alongside it.string
package_labels.weightstringyesWeight 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
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

NameLocationRequiredDescription
order_idpathyesUUID of the current partner's order.
X-Havvo-Api-KeyheadernoPartner 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
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

NameLocationRequiredDescription
order_idpathyesUUID of the current partner's order.
X-Havvo-Api-KeyheadernoPartner 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

NameLocationRequiredDescription
direction_idquerynoThe public-contract value “direction id”; its accepted type and requirement are shown alongside it.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
scopestringyesThe public-contract value “scope”; its accepted type and requirement are shown alongside it.string
partner_idstringyesImmutable public partner identifier.partner-demo
itemsarray<object>yesThe 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.idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
items.codestringyesThe public-contract value “code”; its accepted type and requirement are shown alongside it.string
items.namestringyesThe public-contract value “name”; its accepted type and requirement are shown alongside it.string
items.name_i18nobjectyesThe public-contract value “name i18n”; its accepted type and requirement are shown alongside it.{}
items.direction_idstringyesThe public-contract value “direction id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
items.direction_namestringyesThe public-contract value “direction name”; its accepted type and requirement are shown alongside it.string
items.delivery_mode_idstringyesThe public-contract value “delivery mode id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
items.delivery_mode_codestringyesThe public-contract value “delivery mode code”; its accepted type and requirement are shown alongside it.string
items.delivery_mode_name_i18nobjectyesThe public-contract value “delivery mode name i18n”; its accepted type and requirement are shown alongside it.{}
items.currency_codestringyesThe public-contract value “currency code”; its accepted type and requirement are shown alongside it.string
items.versionintegeryesThe public-contract value “version”; its accepted type and requirement are shown alongside it.1
items.tariff_version_idstringyesThe public-contract value “tariff version id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
items.route_version_idstringyesThe public-contract value “route version id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
items.effective_fromstringyesThe public-contract value “effective from”; its accepted type and requirement are shown alongside it.2026-11-30T10:00:00Z
items.average_delivery_daysinteger | nullyesThe public-contract value “average delivery days”; its accepted type and requirement are shown alongside it.1
items.pricesarray<object>yesThe 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_idstringyesThe public-contract value “cargo type id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
items.prices.cargo_type_codestringyesThe public-contract value “cargo type code”; its accepted type and requirement are shown alongside it.string
items.prices.cargo_type_name_i18nobjectyesThe public-contract value “cargo type name i18n”; its accepted type and requirement are shown alongside it.{}
items.prices.calculation_unitstringyesThe public-contract value “calculation unit”; its accepted type and requirement are shown alongside it.string
items.prices.base_pricestringyesThe public-contract value “base price”; its accepted type and requirement are shown alongside it.string
items.prices.minimum_weightstring | nullyesThe public-contract value “minimum weight”; its accepted type and requirement are shown alongside it.string
items.prices.price_sourcestringyesThe public-contract value “price source”; its accepted type and requirement are shown alongside it.string
items.prices.override_weight_fromstring | nullyesThe public-contract value “override weight from”; its accepted type and requirement are shown alongside it.string
items.prices.override_weight_tostring | nullyesThe public-contract value “override weight to”; its accepted type and requirement are shown alongside it.string
items.prices.tiersarray<object>yesThe 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

NameLocationRequiredDescription
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
itemsarray<object>yesThe 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.idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
items.codestringyesThe public-contract value “code”; its accepted type and requirement are shown alongside it.string
items.namestringyesThe public-contract value “name”; its accepted type and requirement are shown alongside it.string
items.country_idstringyesUUID of an active country from geography.00000000-0000-4000-8000-000000000010
items.region_idstring | nullyesThe public-contract value “region id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
items.city_idstring | nullyesCity UUID from the reference catalog.00000000-0000-4000-8000-000000000011
items.timezonestringyesThe public-contract value “timezone”; its accepted type and requirement are shown alongside it.string
items.addressobject | nullyesThe public-contract value “address”; its accepted type and requirement are shown alongside it.{}
items.can_originbooleanyesThe public-contract value “can origin”; its accepted type and requirement are shown alongside it.True
items.can_destinationbooleanyesThe public-contract value “can destination”; its accepted type and requirement are shown alongside it.True
items.can_transitbooleanyesThe public-contract value “can transit”; its accepted type and requirement are shown alongside it.True
items.statusstringyesCurrent 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

NameLocationRequiredDescription
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
modestringyesThe public-contract value “mode”; its accepted type and requirement are shown alongside it.string
min_lengthintegeryesThe public-contract value “min length”; its accepted type and requirement are shown alongside it.1
max_lengthintegeryesThe 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

NameLocationRequiredDescription
direction_idquerynoThe public-contract value “direction id”; its accepted type and requirement are shown alongside it.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
itemsarray<object>yesThe 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.codestringyesThe public-contract value “code”; its accepted type and requirement are shown alongside it.string
items.nameobjectyesThe public-contract value “name”; its accepted type and requirement are shown alongside it.{}
items.idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
items.statusstringyesCurrent 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

NameLocationRequiredDescription
country_idqueryyesUUID of an active country from geography.
region_idquerynoThe public-contract value “region id”; its accepted type and requirement are shown alongside it.
after_idquerynoThe public-contract value “after id”; its accepted type and requirement are shown alongside it.
qquerynoThe public-contract value “q”; its accepted type and requirement are shown alongside it.
limitquerynoMaximum number of items in the page.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
itemsarray<object>yesThe 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.idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
items.country_idstringyesUUID of an active country from geography.00000000-0000-4000-8000-000000000010
items.namestringyesThe public-contract value “name”; its accepted type and requirement are shown alongside it.string
items.name_i18nobject | nullyesThe public-contract value “name i18n”; its accepted type and requirement are shown alongside it.{}
items.region_idstring | nullyesThe public-contract value “region id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
next_cursorstring | nullyesNext-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

NameLocationRequiredDescription
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
itemsarray<object>yesThe public-contract value “items”; its accepted type and requirement are shown alongside it.[{"code": "string", "name": {}}]
items.codestringyesThe public-contract value “code”; its accepted type and requirement are shown alongside it.string
items.nameobjectyesThe 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

NameLocationRequiredDescription
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
itemsarray<object>yesThe 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.idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
items.codestringyesThe public-contract value “code”; its accepted type and requirement are shown alongside it.string
items.namestringyesThe public-contract value “name”; its accepted type and requirement are shown alongside it.string
items.origin_branch_idstringyesThe public-contract value “origin branch id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
items.destination_branch_idstring | nullyesThe public-contract value “destination branch id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
items.route_template_idstring | nullyesThe public-contract value “route template id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
items.delivery_modeobject | nullyesThe 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

NameLocationRequiredDescription
country_idquerynoUUID of an active country from geography.
region_idquerynoThe public-contract value “region id”; its accepted type and requirement are shown alongside it.
include_citiesquerynoThe public-contract value “include cities”; its accepted type and requirement are shown alongside it.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
countriesarray<object>yesThe 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.idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
countries.iso2stringyesThe public-contract value “iso2”; its accepted type and requirement are shown alongside it.string
countries.iso3stringyesThe public-contract value “iso3”; its accepted type and requirement are shown alongside it.string
countries.nameobjectyesThe public-contract value “name”; its accepted type and requirement are shown alongside it.{}
regionsarray<object>yesThe 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.idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
regions.country_idstringyesUUID of an active country from geography.00000000-0000-4000-8000-000000000010
regions.namestringyesThe public-contract value “name”; its accepted type and requirement are shown alongside it.string
regions.name_i18nobject | nullyesThe public-contract value “name i18n”; its accepted type and requirement are shown alongside it.{}
citiesarray<object>yesThe 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.idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
cities.country_idstringyesUUID of an active country from geography.00000000-0000-4000-8000-000000000010
cities.namestringyesThe public-contract value “name”; its accepted type and requirement are shown alongside it.string
cities.name_i18nobject | nullyesThe public-contract value “name i18n”; its accepted type and requirement are shown alongside it.{}
cities.region_idstring | nullyesThe 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

NameLocationRequiredDescription
direction_idquerynoThe public-contract value “direction id”; its accepted type and requirement are shown alongside it.
limitquerynoMaximum number of items in the page.
offsetquerynoThe public-contract value “offset”; its accepted type and requirement are shown alongside it.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
global_rulesarray<object>yesThe 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.idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
global_rules.codestringyesThe public-contract value “code”; its accepted type and requirement are shown alongside it.string
global_rules.versionintegeryesThe public-contract value “version”; its accepted type and requirement are shown alongside it.1
global_rules.action_modestringyesThe public-contract value “action mode”; its accepted type and requirement are shown alongside it. Enum: block, confirm, informblock
global_rules.scope_modestringyesThe public-contract value “scope mode”; its accepted type and requirement are shown alongside it. Enum: all_directions, selected_directionsall_directions
global_rules.direction_idsarray<string>yesThe public-contract value “direction ids”; its accepted type and requirement are shown alongside it.["00000000-0000-4000-8000-000000000001"]
global_rules.priorityintegeryesThe public-contract value “priority”; its accepted type and requirement are shown alongside it.1
global_rules.starts_atstring | nullyesThe public-contract value “starts at”; its accepted type and requirement are shown alongside it.2026-11-30T10:00:00Z
global_rules.ends_atstring | nullyesThe public-contract value “ends at”; its accepted type and requirement are shown alongside it.2026-11-30T10:00:00Z
global_rules.title_i18nobjectyesThe public-contract value “title i18n”; its accepted type and requirement are shown alongside it.{}
global_rules.client_message_i18nobjectyesThe public-contract value “client message i18n”; its accepted type and requirement are shown alongside it.{}
direction_rulesobjectyesThe public-contract value “direction rules”; its accepted type and requirement are shown alongside it.{}
limitintegeryesMaximum number of items in the page.50
offsetintegeryesThe public-contract value “offset”; its accepted type and requirement are shown alongside it.1
next_offsetinteger | nullyesThe 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

NameLocationRequiredDescription
direction_idquerynoThe public-contract value “direction id”; its accepted type and requirement are shown alongside it.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
itemsarray<object>yesThe 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.codestringyesThe public-contract value “code”; its accepted type and requirement are shown alongside it.string
items.nameobjectyesThe public-contract value “name”; its accepted type and requirement are shown alongside it.{}
items.idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
items.statusstringyesCurrent public resource state.active
items.descriptionobject | nullyesThe public-contract value “description”; its accepted type and requirement are shown alongside it.{}
items.calculation_unitstringyesThe public-contract value “calculation unit”; its accepted type and requirement are shown alongside it.string
items.application_scopestringyesThe public-contract value “application scope”; its accepted type and requirement are shown alongside it.string
items.requires_processbooleanyesThe 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

NameLocationRequiredDescription
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
operationalarray<string>yesThe public-contract value “operational”; its accepted type and requirement are shown alongside it.["string"]
financialarray<string>yesThe public-contract value “financial”; its accepted type and requirement are shown alongside it.["string"]
lifecyclearray<string>yesThe public-contract value “lifecycle”; its accepted type and requirement are shown alongside it.["string"]
cargoarray<string>yesThe public-contract value “cargo”; its accepted type and requirement are shown alongside it.["string"]
unknown_values_allowedbooleanyesThe public-contract value “unknown values allowed”; its accepted type and requirement are shown alongside it.True
public_transitionsarray<object>yesThe public-contract value “public transitions”; its accepted type and requirement are shown alongside it.[{"action": "string", "source": "string", "target": "string", "requirements": ["string"]}]
public_transitions.actionstringyesThe public-contract value “action”; its accepted type and requirement are shown alongside it.string
public_transitions.sourcestringyesThe public-contract value “source”; its accepted type and requirement are shown alongside it.string
public_transitions.targetstringyesThe public-contract value “target”; its accepted type and requirement are shown alongside it.string
public_transitions.requirementsarray<string>yesThe 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
curl -X GET "$HAVVO_BASE_URL/api/partner/v1/webhooks" \
  -H "X-Havvo-Api-Key: $HAVVO_API_KEY" \
  -H "Accept: application/json"

Parameters

NameLocationRequiredDescription
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
urlstringyesPublic HTTPS webhook URL without redirects or private IPs.https://partner.example.com/havvo/events
eventsarray<string>yesWebhook events listed by GET /capabilities.["order.status_changed"]
statusstringyesCurrent public resource state.active
created_atstringyesServer record creation time in ISO 8601 UTC.2026-11-30T10:00:00Z
signing_secretstring | nullnoHMAC 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.

Data schema: request

FieldTypeRequiredDescriptionExample
urlstringyesPublic HTTPS webhook URL without redirects or private IPs.https://partner.example.com/havvo/events
eventsarray<string>yesWebhook 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

NameLocationRequiredDescription
Idempotency-KeyheadernoUnique command key. Reuse it only when retrying the unchanged request after a network failure.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
urlstringyesPublic HTTPS webhook URL without redirects or private IPs.https://partner.example.com/havvo/events
eventsarray<string>yesWebhook events listed by GET /capabilities.["order.status_changed"]
statusstringyesCurrent public resource state.active
created_atstringyesServer record creation time in ISO 8601 UTC.2026-11-30T10:00:00Z
signing_secretstring | nullnoHMAC 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
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

NameLocationRequiredDescription
webhook_idpathyesThe public-contract value “webhook id”; its accepted type and requirement are shown alongside it.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
urlstringyesPublic HTTPS webhook URL without redirects or private IPs.https://partner.example.com/havvo/events
eventsarray<string>yesWebhook events listed by GET /capabilities.["order.status_changed"]
statusstringyesCurrent public resource state.active
created_atstringyesServer record creation time in ISO 8601 UTC.2026-11-30T10:00:00Z
signing_secretstring | nullnoHMAC 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

Data schema: request

FieldTypeRequiredDescriptionExample
eventsarray<string>yesWebhook 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

NameLocationRequiredDescription
webhook_idpathyesThe public-contract value “webhook id”; its accepted type and requirement are shown alongside it.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
urlstringyesPublic HTTPS webhook URL without redirects or private IPs.https://partner.example.com/havvo/events
eventsarray<string>yesWebhook events listed by GET /capabilities.["order.status_changed"]
statusstringyesCurrent public resource state.active
created_atstringyesServer record creation time in ISO 8601 UTC.2026-11-30T10:00:00Z
signing_secretstring | nullnoHMAC 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
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

NameLocationRequiredDescription
webhook_idpathyesThe public-contract value “webhook id”; its accepted type and requirement are shown alongside it.
X-Havvo-Api-KeyheadernoPartner 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
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

NameLocationRequiredDescription
webhook_idpathyesThe public-contract value “webhook id”; its accepted type and requirement are shown alongside it.
limitquerynoMaximum number of items in the page.
before_idquerynoThe public-contract value “before id”; its accepted type and requirement are shown alongside it.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
itemsarray<object>yesThe 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.idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
items.event_idstringyesThe public-contract value “event id”; its accepted type and requirement are shown alongside it.00000000-0000-4000-8000-000000000001
items.event_typestringyesThe public-contract value “event type”; its accepted type and requirement are shown alongside it.string
items.statusstringyesCurrent public resource state.active
items.attempt_countintegeryesThe public-contract value “attempt count”; its accepted type and requirement are shown alongside it.1
items.response_statusinteger | nullyesThe public-contract value “response status”; its accepted type and requirement are shown alongside it.1
items.next_attempt_atstringyesThe public-contract value “next attempt at”; its accepted type and requirement are shown alongside it.2026-11-30T10:00:00Z
items.delivered_atstring | nullyesThe public-contract value “delivered at”; its accepted type and requirement are shown alongside it.2026-11-30T10:00:00Z
items.created_atstringyesServer record creation time in ISO 8601 UTC.2026-11-30T10:00:00Z
next_cursorstring | nullyesNext-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
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

NameLocationRequiredDescription
webhook_idpathyesThe public-contract value “webhook id”; its accepted type and requirement are shown alongside it.
delivery_idpathyesThe public-contract value “delivery id”; its accepted type and requirement are shown alongside it.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
statusstringyesCurrent 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.
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

NameLocationRequiredDescription
webhook_idpathyesThe public-contract value “webhook id”; its accepted type and requirement are shown alongside it.
Idempotency-KeyheaderyesUnique command key. Reuse it only when retrying the unchanged request after a network failure.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
urlstringyesPublic HTTPS webhook URL without redirects or private IPs.https://partner.example.com/havvo/events
eventsarray<string>yesWebhook events listed by GET /capabilities.["order.status_changed"]
statusstringyesCurrent public resource state.active
created_atstringyesServer record creation time in ISO 8601 UTC.2026-11-30T10:00:00Z
signing_secretstring | nullnoHMAC 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.
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

NameLocationRequiredDescription
webhook_idpathyesThe public-contract value “webhook id”; its accepted type and requirement are shown alongside it.
Idempotency-KeyheaderyesUnique command key. Reuse it only when retrying the unchanged request after a network failure.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
statusstringyesCurrent 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.
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

NameLocationRequiredDescription
webhook_idpathyesThe public-contract value “webhook id”; its accepted type and requirement are shown alongside it.
Idempotency-KeyheaderyesUnique command key. Reuse it only when retrying the unchanged request after a network failure.
X-Havvo-Api-KeyheadernoPartner 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
FieldTypeRequiredDescriptionExample
idstringyesUnique resource UUID.00000000-0000-4000-8000-000000000001
statusstringyesCurrent public resource state.active
{
  "id": "00000000-0000-4000-8000-000000000001",
  "status": "string"
}