BizKitHub
DokumentacjaEksplorator APIComplaint/api/v1/shop/complaint/detail
getComplaintPubliczne API v1

/api/v1/shop/complaint/detail

Returns full complaint detail including items, events timeline, refund information, and satisfaction feedback.

Use this endpoint to check the current status and history of a complaint. The events array contains the full timeline of status changes and messages.

complaintgetApiV1ShopComplaintDetail

Parametry

2 w query

Parametry query

· 2
apiKeystringWymagane

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

PrzykładPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
idstringWymagane

Complaint external ID returned from the create endpoint.

Przykłada1b2c3d4e5f6g7h8

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
object | object
Jedna z 2 opcji:
Wariant 1
exist"true"Wymagane

Indicator of whether the complaint exists.

idstringWymagane

Complaint external ID.

Przykłada1b2c3d4e5f6g7h8
orderNumberstringOpcjonalne

Linked order number.

Przykład25000087
variantobjectWymagane
idnumberWymagane

Variant ID.

codestringWymagane

Variant code.

Przykładcomplaint
labelstringWymagane

Variant display label.

PrzykładComplaint
statusstringWymagane

Current complaint status.

Przykładynewopenwaitresolverejectclosed
isResolvedbooleanWymagane

Indicator of whether the complaint has been resolved.

Przykładfalse
descriptionstringWymagane

Complaint description provided by the customer.

customerNamestringWymagane

Customer full name.

PrzykładJan Novák
emailstringOpcjonalne

Customer e-mail.

phonestringOpcjonalne

Customer phone number.

refundobjectOpcjonalne
countrystringOpcjonalne

Refund country code.

bankAccountstringOpcjonalne

Refund bank account.

variableSymbolstringOpcjonalne

Refund variable symbol.

satisfactionobjectOpcjonalne
scorenumberWymagane

Satisfaction score 1–10.

Przykład8
messagestringOpcjonalne

Customer feedback message.

insertedDateDate | string | string | numberWymagane

Date and time the complaint was created.

Jedna z 4 opcji:
Wariant 1
Date

Date and time the complaint was created.

Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
updatedDateDate | string | string | numberWymagane

Date and time the complaint was last updated.

Jedna z 4 opcji:
Wariant 1
Date

Date and time the complaint was last updated.

Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
dueDateDate | string | string | numberOpcjonalne

Deadline for complaint resolution.

Jedna z 4 opcji:
Wariant 1
Date

Deadline for complaint resolution.

Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
resolvedDateDate | string | string | numberOpcjonalne

Date and time the complaint was resolved.

Jedna z 4 opcji:
Wariant 1
Date

Date and time the complaint was resolved.

Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
itemsobject[]Wymagane
Każdy element tablicy:
idnumberWymagane

Complaint item ID.

labelstringWymagane

Item description.

quantitynumberWymagane

Item quantity.

pricenumberOpcjonalne

Claimed item price.

eventsobject[]Wymagane

Complaint timeline — status changes, internal notes, and customer-facing messages.

Każdy element tablicy:
idnumberWymagane

Event ID.

statusstringOpcjonalne

Status at the time of this event.

shareWithCustomerbooleanWymagane

Indicator of whether this event is visible to the customer.

subjectstringOpcjonalne

Event subject.

messagestringOpcjonalne

Event message body.

insertedDateDate | string | string | numberWymagane

Date and time the event was created.

Jedna z 4 opcji:
Wariant 1
Date

Date and time the event was created.

Wariant 2
stringdate-time
Wariant 3
stringdate
Wariant 4
number
Wariant 2
exist"false"Wymagane

Complaint does not exist or does not belong to this organisation.

Przykład odpowiedzi

application/json
{
  "exist": true,
  "id": "a1b2c3d4e5f6g7h8",
  "orderNumber": "25000087",
  "variant": {
    "id": 0,
    "code": "complaint",
    "label": "Complaint"
  },
  "status": "new",
  "isResolved": false,
  "description": "example_description",
  "customerName": "Jan Novák",
  "email": "example_email",
  "phone": "example_phone",
  "refund": {
    "country": "example_country",
    "bankAccount": "example_bankAccount",
    "variableSymbol": "example_variableSymbol"
  },
  "satisfaction": {
    "score": 8,
    "message": "example_message"
  },
  "items": [
    {
      "id": 0,
      "label": "example_label",
      "quantity": 0,
      "price": 0
    }
  ],
  "events": [
    {
      "id": 0,
      "status": "example_status",
      "shareWithCustomer": false,
      "subject": "example_subject",
      "message": "example_message"
    }
  ]
}

Przykład żądania

GET /api/v1/shop/complaint/detail

get
curl -X GET "https://api.bizkithub.com/api/v1/shop/complaint/detail?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&id=a1b2c3d4e5f6g7h8" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Potrzebujesz klucza API?

Wszystkie publiczne endpointy BizKitHub API uwierzytelniają się kluczem API.

Uzyskaj klucz API