Skip to content

Report Endpoint

TIP

Refer to products page for Base URL

* Report Product

Endpoint: POST

products/report/

Request Headers

AuthorizationValueDescriptionRequired
Bearer***************Firebase access token✔️

Payload Description

NameTypeDescriptionRequired
reasonstringuser comment about product✔️
productSlugstringproduct slug✔️

Sample Payload

{
  "reason": "Nice Shirt",
  "productSlug": "turkey-muslim-maxi-dress-black-7547"
}

Sample Response

{
  "id": "b383e51a-40f1-4262-a9a0-e9859f97cd6d",
  "reason": "Nice Shirt",
  "userId": "gxxjx22P3eNvGjvenIkvCjEkxh63",
  "dateCreated": "2023-08-05T14:39:29.669567Z",
  "productId": "ba3cb694-c2ff-41cf-82d4-49eb63a81dc2"
}

* Report Store

Endpoint: POST

stores/report/

Request Headers

AuthorizationValueDescriptionRequired
Bearer***Firebase access token✔️

Payload Description

NameTypeDescriptionRequired
reasonstringuser comment about product✔️
storeSlugstringstore slug✔️

Sample Payload

{
  "reason": "Neat shop",
  "storeSlug": "sneakers-hubman-4464",
}

Sample Response

{
  "id": "9ac09e8d-94a7-433c-bfa9-6c2aca8d537e",
  "reason": "just trying",
  "userId": "gxxjx22P3eNvGjvenIkvCjEkxh63",
  "dateCreated": "2023-08-05T14:41:18.191061Z",
  "storeId": "5aaa5320-92d5-4ed8-b0b0-e76f44ad4266"
}

Released under the MIT License.