BizKitHub
DokumentáciaPrieskumník APIComplaint/api/v1/shop/complaint/detail
getComplaintVerejné 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

Parametre

2 v query

Parametre 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

PríkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
idstringPovinné

Complaint external ID returned from the create endpoint.

Príklada1b2c3d4e5f6g7h8

Schéma odpovede

1 zdokumentovaný stavový kód

200Úspech
object | object
Jedna z 2 možností:
Variant 1
exist"true"Povinné

Indicator of whether the complaint exists.

idstringPovinné

Complaint external ID.

Príklada1b2c3d4e5f6g7h8
orderNumberstringVoliteľné

Linked order number.

Príklad25000087
variantobjectPovinné
idnumberPovinné

Variant ID.

codestringPovinné

Variant code.

Príkladcomplaint
labelstringPovinné

Variant display label.

PríkladComplaint
statusstringPovinné

Current complaint status.

Príkladynewopenwaitresolverejectclosed
isResolvedbooleanPovinné

Indicator of whether the complaint has been resolved.

Príkladfalse
descriptionstringPovinné

Complaint description provided by the customer.

customerNamestringPovinné

Customer full name.

PríkladJan Novák
emailstringVoliteľné

Customer e-mail.

phonestringVoliteľné

Customer phone number.

refundobjectVoliteľné
countrystringVoliteľné

Refund country code.

bankAccountstringVoliteľné

Refund bank account.

variableSymbolstringVoliteľné

Refund variable symbol.

satisfactionobjectVoliteľné
scorenumberPovinné

Satisfaction score 1–10.

Príklad8
messagestringVoliteľné

Customer feedback message.

insertedDateDate | string | string | numberPovinné

Date and time the complaint was created.

Jedna z 4 možností:
Variant 1
Date

Date and time the complaint was created.

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

Date and time the complaint was last updated.

Jedna z 4 možností:
Variant 1
Date

Date and time the complaint was last updated.

Variant 2
stringdate-time
Variant 3
stringdate
Variant 4
number
dueDateDate | string | string | numberVoliteľné

Deadline for complaint resolution.

Jedna z 4 možností:
Variant 1
Date

Deadline for complaint resolution.

Variant 2
stringdate-time
Variant 3
stringdate
Variant 4
number
resolvedDateDate | string | string | numberVoliteľné

Date and time the complaint was resolved.

Jedna z 4 možností:
Variant 1
Date

Date and time the complaint was resolved.

Variant 2
stringdate-time
Variant 3
stringdate
Variant 4
number
itemsobject[]Povinné
Každá položka poľa:
idnumberPovinné

Complaint item ID.

labelstringPovinné

Item description.

quantitynumberPovinné

Item quantity.

pricenumberVoliteľné

Claimed item price.

eventsobject[]Povinné

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

Každá položka poľa:
idnumberPovinné

Event ID.

statusstringVoliteľné

Status at the time of this event.

shareWithCustomerbooleanPovinné

Indicator of whether this event is visible to the customer.

subjectstringVoliteľné

Event subject.

messagestringVoliteľné

Event message body.

insertedDateDate | string | string | numberPovinné

Date and time the event was created.

Jedna z 4 možností:
Variant 1
Date

Date and time the event was created.

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

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

Ukážka odpovede

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ážka požiadavky

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"

Potrebujete API kľúč?

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

Získať API kľúč