Skip to main content

Response Errors

All responses that the gift or loyalty provider sends to Gift and Loyalty must follow the format specified in the Operation Definitions. When a response message does not match the expected format, Gift and Loyalty sends the following error message to the provider:

{
  "action_type": "validationError",
  // Portal configuration
  "configuration": { /* ... */ },
  // Request from the POS
  "request": { /* ... */ },
  // Given response as sent by the loyalty provider
  "response": { /* ... */ },
  // Expected response schema
  "expected": { /* ... */ },
  "message": "Response structure doesn't match expected format"
}