BizKitHub
DokumentáciaPrieskumník APIComplaint/api/v1/shop/complaint/create
postComplaintVerejné API v1

/api/v1/shop/complaint/create

Create a new complaint case.

Use this endpoint to file a complaint, return request, or exchange request from your system. The complaint is automatically created with status new and an initial event is recorded in the timeline.

Typical flow:

  1. Create complaint via this endpoint
  2. Poll status via GET /detail
  3. Optionally update status via POST /set-status

Linking to orders: Provide orderHash to link the complaint to an existing order. The system will validate that the order belongs to your organisation.

complaintpostApiV1ShopComplaintCreate

Parametre

1 v query · JSON telo

Parametre v query

· 1
apiKeystringPovinné

Your BizKitHub API key (passed as GET parameter).

Key format: A 32-character string matching: ^(PROD|DEV_|ROOT)[A-Za-z0-9]{28}$
Prefixes: PROD (production key), DEV_ (individual developer), ROOT (system key with no limits). Learn more

PríkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE

Telo požiadavky

application/json
variantCodestringPovinné

Organisation-defined complaint variant code.

Each organisation configures its own set of complaint types (e.g. complaint, return, exchange). The variant must exist and be active in the organisation settings before it can be used.

Príkladycomplaintreturnexchange
orderHashstringVoliteľné

Hash of the order this complaint is related to. The order must belong to the same organisation. If provided, the system automatically links the complaint to the order.

Dĺžka: 32
PríkladsSO98YxzR4KJiOu66Jn6K3wRwa4FPI7S
orderNumberstringVoliteľné

Human-readable order number for reference.

Use this field when the order is external or when you want to store the order number without linking to an internal order. If orderHash is provided, this field is optional and will be used as a display label only.

Príklad25000087
descriptionstringPovinné

Customer-provided description and reason for the complaint.

Include as much detail as possible — product condition, circumstances, and what the customer expects. This text is visible to staff and can be shared with the customer.

PríkladProduct arrived damaged, visible scratch on the surface.
customerNamestringPovinné

Full name of the customer filing the complaint.

PríkladJan Novák
emailstringVoliteľné

Customer e-mail address for complaint communication.

Used for sending status updates and resolution notifications to the customer.

phonestringVoliteľné

Customer phone number in international format.

Preferred format: +<country_code> <local_number>
Example: +420 777123456

Príklad+420 777123456
pricenumberVoliteľné

Total claimed amount in the specified currency.

The claimed amount represents the value the customer is requesting as refund, credit, or compensation. Use decimal precision up to two places.

Príklad1500
currencystringVoliteľné

ISO 4217 currency code for the claimed amount. Defaults to organisation currency if omitted.

PríkladyCZKEUR
refundCountrystringVoliteľné

ISO 3166-1 alpha-2 country code for the refund bank account.

PríkladyCZSK
refundBankAccountstringVoliteľné

Bank account number for refund transfer.

Use the local bank account format (e.g. 123456789/0100 for CZ) or IBAN.

Príklad123456789/0100
refundVariableSymbolstringVoliteľné

Variable symbol for the refund bank transfer. Typically the original order number.

Príklad25000087
branchIdnumberVoliteľné

Branch ID where the product should be sent for inspection or return.

resolutionMethodCodestringVoliteľné

Preferred resolution method code defined by the organisation.

Common values: repair (fix the product), exchange (replace with new), refund (return money), credit (issue store credit). The method must exist in the organisation settings.

Príkladyrepairexchangerefund
dueDatestringVoliteľnédate-time

Deadline for complaint resolution. If omitted, the organisation default applies.

Príklad2026-02-15T00:00:00.000Z
itemsobject[]Voliteľné

List of items being complained about.

Each item can optionally reference an original order item by ID. If the complaint covers the entire order, you can omit this field and set the total claimed amount in the price field instead.

Každá položka poľa:
orderItemIdnumberVoliteľné

Internal order item ID to link the complained item to the original order line.

labelstringPovinné

Item description as displayed in the complaint.

PríkladWireless headphones Model X
quantitynumberVoliteľné

Number of items being complained about. Defaults to 1.

Príklad1
pricenumberVoliteľné

Claimed unit price of the item in the complaint currency.

Príklad2490

Schéma odpovede

1 zdokumentovaný stavový kód

200Úspech
idstringPovinné

Unique complaint external ID. Use this ID for subsequent operations (status changes, detail lookup).

Príklada1b2c3d4e5f6g7h8

Ukážka odpovede

application/json
{
  "id": "a1b2c3d4e5f6g7h8"
}

Ukážka požiadavky

POST /api/v1/shop/complaint/create

post
curl -X POST "https://api.bizkithub.com/api/v1/shop/complaint/create?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "variantCode": "complaint",
  "orderHash": "sSO98YxzR4KJiOu66Jn6K3wRwa4FPI7S",
  "orderNumber": "25000087",
  "description": "Product arrived damaged, visible scratch on the surface.",
  "customerName": "Jan Novák",
  "email": "[email protected]",
  "phone": "+420 777123456",
  "price": 1500,
  "currency": "CZK",
  "refundCountry": "CZ",
  "refundBankAccount": "123456789/0100",
  "refundVariableSymbol": "25000087",
  "branchId": 0,
  "resolutionMethodCode": "repair",
  "dueDate": "2026-02-15T00:00:00.000Z",
  "items": [
    {
      "orderItemId": 0,
      "label": "Wireless headphones Model X",
      "quantity": 1,
      "price": 2490
    }
  ]
}'

Potrebujete API kľúč?

Všetky verejné endpointy BizKitHub API sa overujú API kľúčom.

Získať API kľúč