Skip to content
innovorder
⌘K

Stored value

Transaction Reset (RAZ)

RAZ (Remise A Zero) endpoints manage the periodic reset of customer transaction balances. This is commonly used in collective catering to reset e-wallet spending at the end of a billing period.

PUT/brands/{brandId}/reset_transactionsReset Brand Transactions

Schedule a reset of all customer transactions for a brand. This creates a Cloud Task that processes the reset asynchronously.

Parameters

NameTypeRequiredDescription
brandIdintegerYesThe unique identifier of the brand.

Request Body

json
{
  "endDate": "2025-09-30T23:59:59.000Z",
  "includeArchivedCustomers": false,
  "includeDisabledCustomers": false,
  "isAutoRaz": false
}
Request Body Properties

Every field in the example is listed below. Explicit requiredness is shown when the endpoint contract defines it.

PropertyTypeRequiredExampleDescription
endDatestring (ISO 8601 date-time)Yes"2025-09-30T23:59:59.000Z"Last transaction date included in the reset.
includeArchivedCustomersbooleanYesfalseWhether archived customers are included in the reset.
includeDisabledCustomersbooleanYesfalseWhether disabled customers are included in the reset.
isAutoRazbooleanNofalseMarks the reset as an automatic RAZ when true.

Response

json
{
  "status": 200,
  "code": "reset_brand_transaction",
  "message": "The transactions for this brand have been reset"
}
Response Properties

Every field in the example is listed below. Explicit requiredness is shown when the endpoint contract defines it.

PropertyTypeExampleDescription
statusinteger200HTTP status code returned by the API.
codestring"reset_brand_transaction"Machine-readable application code for the result.
messagestring"The transactions for this brand have been reset"Human-readable result message. Do not use this value for program logic.

PUT/brands/{brandId}/reset_transactions/executeExecute Brand Transaction Reset

Performs the brand-wide reset immediately. It accepts the same payload as the scheduling endpoint. customerId is accepted as a query parameter by validation but is not used by the current execution handler.

Parameters

NameTypeRequiredDescription
brandIdintegerYesThe brand whose transactions are reset.
customerIdintegerNoAccepted query parameter; the current handler does not use it to limit the reset.

Request Body

json
{
  "endDate": "2025-09-30T23:59:59.000Z",
  "includeArchivedCustomers": false,
  "includeDisabledCustomers": false,
  "isAutoRaz": false
}
Request Body Properties

Every field in the example is listed below. Explicit requiredness is shown when the endpoint contract defines it.

PropertyTypeRequiredExampleDescription
endDatestring (ISO 8601 date-time)Yes"2025-09-30T23:59:59.000Z"Last transaction date included in the reset.
includeArchivedCustomersbooleanYesfalseWhether archived customers are included in the reset.
includeDisabledCustomersbooleanYesfalseWhether disabled customers are included in the reset.
isAutoRazbooleanNofalseMarks the reset as an automatic RAZ when true.

Response

json
{
  "status": 200,
  "code": "reset_brand_transaction",
  "message": "The transactions for this brand have been reset"
}
Response Properties

Every field in the example is listed below. Explicit requiredness is shown when the endpoint contract defines it.

PropertyTypeExampleDescription
statusinteger200HTTP status code returned by the API.
codestring"reset_brand_transaction"Machine-readable application code for the result.
messagestring"The transactions for this brand have been reset"Human-readable result message. Do not use this value for program logic.

PUT/brands/{brandId}/{customerId}/reset_transactionsReset Transactions for Single Customer

Reset transactions for a specific customer within a brand.

Parameters

NameTypeRequiredDescription
brandIdintegerYesThe unique identifier of the brand.
customerIdintegerYesThe unique identifier of the customer.

Request Body

json
{
  "endDate": "2025-09-30T23:59:59.000Z",
  "isAutoRaz": false
}
Request Body Properties

Every field in the example is listed below. Explicit requiredness is shown when the endpoint contract defines it.

PropertyTypeExampleDescription
endDatestring"2025-09-30T23:59:59.000Z"Date or timestamp for end.
isAutoRazbooleanfalseWhether auto raz is enabled or applies.

Response

json
{
  "status": 200,
  "code": "reset_brand_transaction",
  "message": "Customer transaction reset completed."
}
Response Properties

Every field in the example is listed below. Explicit requiredness is shown when the endpoint contract defines it.

PropertyTypeExampleDescription
statusinteger200HTTP status code returned by the API.
codestring"reset_brand_transaction"Machine-readable application code for the result.
messagestring"Customer transaction reset completed."Human-readable result message. Do not use this value for program logic.

GET/brands/{brandId}/last_razGet Last RAZ

Retrieve the details of the last transaction reset performed for a brand.

Parameters

NameTypeRequiredDescription
brandIdintegerYesThe unique identifier of the brand.

Response

json
{
  "status": 200,
  "code": "last_raz",
  "message": "The last raz is",
  "data": {
    "razId": 42,
    "brandId": 100,
    "endDate": "2025-09-30T23:59:59.000Z",
    "isAutoRaz": false,
    "created_at": "2025-10-01T08:00:00.000Z"
  }
}
Response Properties

Every field in the example is listed below. Explicit requiredness is shown when the endpoint contract defines it.

PropertyTypeExampleDescription
statusinteger200HTTP status code returned by the API.
codestring"last_raz"Machine-readable application code for the result.
messagestring"The last raz is"Human-readable result message. Do not use this value for program logic.
dataobject{…}Endpoint-specific response payload.
data.razIdinteger42Identifier of the associated raz.
data.brandIdinteger100Identifier of the brand.
data.endDatestring"2025-09-30T23:59:59.000Z"Date or timestamp for end.
data.isAutoRazbooleanfalseWhether auto raz is enabled or applies.
data.created_atstring"2025-10-01T08:00:00.000Z"Timestamp when this resource was created.

DELETE/brands/{brandId}/rollback_last_razRollback Last RAZ

Undo the last transaction reset for a brand, restoring customer balances to their pre-reset state.

Parameters

NameTypeRequiredDescription
brandIdintegerYesThe unique identifier of the brand.

Response

json
{
  "status": 200,
  "code": "rollback_last_raz",
  "message": "Last RAZ has been rolled back."
}
Response Properties

Every field in the example is listed below. Explicit requiredness is shown when the endpoint contract defines it.

PropertyTypeExampleDescription
statusinteger200HTTP status code returned by the API.
codestring"rollback_last_raz"Machine-readable application code for the result.
messagestring"Last RAZ has been rolled back."Human-readable result message. Do not use this value for program logic.

POST/brands/{brandId}/auto_razCreate Auto RAZ Schedule

Schedule an automatic recurring transaction reset for a brand.

Parameters

NameTypeRequiredDescription
brandIdintegerYesThe unique identifier of the brand.

Request Body

json
{
  "applyDate": "2025-10-31T23:59:59.000Z"
}
Request Body Properties

Every field in the example is listed below. Explicit requiredness is shown when the endpoint contract defines it.

PropertyTypeExampleDescription
applyDatestring"2025-10-31T23:59:59.000Z"Date or timestamp for apply.

Response

json
{
  "status": 201,
  "code": "auto_raz_job_created",
  "message": "The auto raz job for the given brand has been created"
}
Response Properties

Every field in the example is listed below. Explicit requiredness is shown when the endpoint contract defines it.

PropertyTypeExampleDescription
statusinteger201HTTP status code returned by the API.
codestring"auto_raz_job_created"Machine-readable application code for the result.
messagestring"The auto raz job for the given brand has been created"Human-readable result message. Do not use this value for program logic.

GET/brands/{brandId}/auto_razGet Auto RAZ Schedule

Retrieve the current auto RAZ schedule for a brand.

Parameters

NameTypeRequiredDescription
brandIdintegerYesThe unique identifier of the brand.

Response

json
{
  "status": 200,
  "code": "auto_raz_job",
  "message": "The auto raz job for the given brand is",
  "data": {
    "brandId": 100,
    "applyDate": "2025-10-31T23:59:59.000Z",
    "isActive": true
  }
}
Response Properties

Every field in the example is listed below. Explicit requiredness is shown when the endpoint contract defines it.

PropertyTypeExampleDescription
statusinteger200HTTP status code returned by the API.
codestring"auto_raz_job"Machine-readable application code for the result.
messagestring"The auto raz job for the given brand is"Human-readable result message. Do not use this value for program logic.
dataobject{…}Endpoint-specific response payload.
data.brandIdinteger100Identifier of the brand.
data.applyDatestring"2025-10-31T23:59:59.000Z"Date or timestamp for apply.
data.isActivebooleantrueWhether this resource is active.

DELETE/brands/{brandId}/auto_razDelete Auto RAZ Schedule

Remove the automatic recurring transaction reset schedule for a brand.

Parameters

NameTypeRequiredDescription
brandIdintegerYesThe unique identifier of the brand.

Response

json
{
  "status": 200,
  "code": "auto_raz_job_deleted",
  "message": "Auto RAZ job deleted."
}
Response Properties

Every field in the example is listed below. Explicit requiredness is shown when the endpoint contract defines it.

PropertyTypeExampleDescription
statusinteger200HTTP status code returned by the API.
codestring"auto_raz_job_deleted"Machine-readable application code for the result.
messagestring"Auto RAZ job deleted."Human-readable result message. Do not use this value for program logic.

RAZ Contact Emails

Manage the contact email addresses that receive notifications when a RAZ (transaction reset) is performed.

POST/brands/{brandId}/raz_contact_emailSet RAZ Contact Emails

Set the list of email addresses to notify when a RAZ is performed.

Parameters

NameTypeRequiredDescription
brandIdintegerYesThe unique identifier of the brand.

Request Body

json
{
  "emails": [
    "admin@restaurant.com",
    "finance@restaurant.com"
  ]
}
Request Body Properties

Every field in the example is listed below. Explicit requiredness is shown when the endpoint contract defines it.

PropertyTypeExampleDescription
emailsarray[…]List of emails entries.
emails[]string"admin@restaurant.com"The emails value.

Response

json
{
  "status": 200,
  "code": "raz_contact_email_created",
  "message": "RAZ contact emails saved."
}
Response Properties

Every field in the example is listed below. Explicit requiredness is shown when the endpoint contract defines it.

PropertyTypeExampleDescription
statusinteger200HTTP status code returned by the API.
codestring"raz_contact_email_created"Machine-readable application code for the result.
messagestring"RAZ contact emails saved."Human-readable result message. Do not use this value for program logic.

GET/brands/{brandId}/raz_contact_emailGet RAZ Contact Emails

Retrieve the list of email addresses configured to receive RAZ notifications.

Parameters

NameTypeRequiredDescription
brandIdintegerYesThe unique identifier of the brand.

Response

json
{
  "status": 200,
  "code": "raz_contact_email",
  "message": "Contact email for raz have been found",
  "data": [
    "admin@restaurant.com",
    "finance@restaurant.com"
  ]
}
Response Properties

Every field in the example is listed below. Explicit requiredness is shown when the endpoint contract defines it.

PropertyTypeExampleDescription
statusinteger200HTTP status code returned by the API.
codestring"raz_contact_email"Machine-readable application code for the result.
messagestring"Contact email for raz have been found"Human-readable result message. Do not use this value for program logic.
dataarray[…]Endpoint-specific response payload.
data[]string"admin@restaurant.com"Endpoint-specific response payload.

POST/brands/{brandId}/raz_send_emailSend RAZ Notification Email

Manually trigger sending a RAZ notification email to the configured contact addresses.

Parameters

NameTypeRequiredDescription
brandIdintegerYesThe unique identifier of the brand.

Request Body

json
{
  "razAmount": 15000,
  "applyDate": "2025-09-30T23:59:59.000Z"
}
Request Body Properties

Every field in the example is listed below. Explicit requiredness is shown when the endpoint contract defines it.

PropertyTypeExampleDescription
razAmountinteger15000The raz amount value.
applyDatestring"2025-09-30T23:59:59.000Z"Date or timestamp for apply.

Response

json
{
  "status": 200,
  "code": "raz_contact_email",
  "message": "RAZ email sent."
}
Response Properties

Every field in the example is listed below. Explicit requiredness is shown when the endpoint contract defines it.

PropertyTypeExampleDescription
statusinteger200HTTP status code returned by the API.
codestring"raz_contact_email"Machine-readable application code for the result.
messagestring"RAZ email sent."Human-readable result message. Do not use this value for program logic.