BizKitHub
DokumentacePrůzkumník APIComplaint/api/v1/shop/complaint/detail
getComplaintVeřejné 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 v query

Parametry v query

· 2
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

PříkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
idstringPovinné

Complaint external ID returned from the create endpoint.

Příklada1b2c3d4e5f6g7h8

Schéma odpovědi

1 zdokumentovaný stavový kód

200Úspěch
object | object
Jedna z 2 možností:
Varianta 1
exist"true"Povinné

Indicator of whether the complaint exists.

idstringPovinné

Complaint external ID.

Příklada1b2c3d4e5f6g7h8
orderNumberstringVolitelné

Linked order number.

Příklad25000087
variantobjectPovinné
idnumberPovinné

Variant ID.

codestringPovinné

Variant code.

Příkladcomplaint
labelstringPovinné

Variant display label.

PříkladComplaint
statusstringPovinné

Current complaint status.

Příkladynewopenwaitresolverejectclosed
isResolvedbooleanPovinné

Indicator of whether the complaint has been resolved.

Příkladfalse
descriptionstringPovinné

Complaint description provided by the customer.

customerNamestringPovinné

Customer full name.

PříkladJan Novák
emailstringVolitelné

Customer e-mail.

phonestringVolitelné

Customer phone number.

refundobjectVolitelné
countrystringVolitelné

Refund country code.

bankAccountstringVolitelné

Refund bank account.

variableSymbolstringVolitelné

Refund variable symbol.

satisfactionobjectVolitelné
scorenumberPovinné

Satisfaction score 1–10.

Příklad8
messagestringVolitelné

Customer feedback message.

insertedDateDate | string | string | numberPovinné

Date and time the complaint was created.

Jedna z 4 možností:
Varianta 1
Date

Date and time the complaint was created.

Varianta 2
stringdate-time
Varianta 3
stringdate
Varianta 4
number
updatedDateDate | string | string | numberPovinné

Date and time the complaint was last updated.

Jedna z 4 možností:
Varianta 1
Date

Date and time the complaint was last updated.

Varianta 2
stringdate-time
Varianta 3
stringdate
Varianta 4
number
dueDateDate | string | string | numberVolitelné

Deadline for complaint resolution.

Jedna z 4 možností:
Varianta 1
Date

Deadline for complaint resolution.

Varianta 2
stringdate-time
Varianta 3
stringdate
Varianta 4
number
resolvedDateDate | string | string | numberVolitelné

Date and time the complaint was resolved.

Jedna z 4 možností:
Varianta 1
Date

Date and time the complaint was resolved.

Varianta 2
stringdate-time
Varianta 3
stringdate
Varianta 4
number
itemsobject[]Povinné
Každá položka pole:
idnumberPovinné

Complaint item ID.

labelstringPovinné

Item description.

quantitynumberPovinné

Item quantity.

pricenumberVolitelné

Claimed item price.

eventsobject[]Povinné

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

Každá položka pole:
idnumberPovinné

Event ID.

statusstringVolitelné

Status at the time of this event.

shareWithCustomerbooleanPovinné

Indicator of whether this event is visible to the customer.

subjectstringVolitelné

Event subject.

messagestringVolitelné

Event message body.

insertedDateDate | string | string | numberPovinné

Date and time the event was created.

Jedna z 4 možností:
Varianta 1
Date

Date and time the event was created.

Varianta 2
stringdate-time
Varianta 3
stringdate
Varianta 4
number
Varianta 2
exist"false"Povinné

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

Ukázka odpovědi

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"
    }
  ]
}

Ukázka požadavku

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"

Potřebujete API klíč?

Všechny veřejné endpointy BizKitHub API se ověřují API klíčem.

Získat API klíč