Faq
You can define a set of questions and answers that is linked to some context, for instance, checkout page. This set of questions inside of some context is our FAQ.
There are some global faqs that exists by default on all of our tenants/companies, but all companies can create its own faq itens inside pre-existing context or event create a completely new context and its own faq items.
Service Methods
Listing FAQ context items
Rest API reference:
get
Lists FAQ items (questions/answers) inside a context by name including global faq contexts and specific company faq context items
Authorizations
Path parameters
companyIdstringRequired
Query parameters
pagenumberOptionalDefault:
1
limitnumberOptionalDefault:
10
searchstringOptional
sortBystringOptional
orderBystring · enumOptionalPossible values:
contextIdstring · uuidOptional
namestringOptionalExample:
pre_sale
Responses
200Success
application/json
get
GET /companies/{companyId}/faq HTTP/1.1
Host: commerce.w3block.io
Authorization: Bearer JWT
Accept: */*
200Success
{
"items": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-07-05T00:09:26.101Z",
"updatedAt": "2025-07-05T00:09:26.101Z",
"question": {
"pt-br": "Algum texto em pt-br",
"en": "Some text in en"
},
"answer": {
"pt-br": "Algum texto em pt-br",
"en": "Some text in en"
},
"externalUrl": "https://myquestion.should.move.to/"
}
],
"meta": {
"itemCount": 1,
"totalItems": 1,
"itemsPerPage": 1,
"totalPages": 1,
"currentPage": 1
},
"links": {
"first": "http://example.com?page=1",
"prev": "http://example.com?page=1",
"next": "http://example.com?page=2",
"last": "http://example.com?page=3"
}
}
Last updated