Skip to main content
POST
/
v1
/
pvt
/
Quiz
/
answer
Submits answers for a specific quiz by a customer.
curl --request POST \
  --url https://api.bonifiq.com.br/v1/pvt/Quiz/answer \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "QuizQuestionId": 123,
    "OpenAnswer": "<string>",
    "OptionIds": [
      123
    ]
  }
]
'
{
  "ErrorMessage": "<string>",
  "ErrorCode": 123,
  "Result": {
    "Success": true,
    "Message": "<string>",
    "PointsAwarded": 123
  },
  "HasError": true
}

Authorizations

Authorization
string
header
required

Use API Basic Auth Keys

Query Parameters

customerId
string | null

Body

application/json

The quiz answers submission details.

QuizQuestionId
integer<int32>
OpenAnswer
string | null
OptionIds
integer<int32>[] | null

Response

200 - application/json

Result of the quiz submission.

ErrorMessage
string | null

Error message or description

ErrorCode
integer<int32> | null

Optional error code, if available

Result
object

Represents the response payload after submitting quiz answers via the external API.

HasError
boolean

If true the request had an error.