Schema
Voucher Balance Operation
A receipt for issuing, redeeming, revoking or reversing vouchers. balance_after is the remaining quantity when the operation completed. Redemption amounts record the monetary saving separately.
Overview
Composition
One of
One of 1
Nested properties
operation_uuid
uuid
operation_type
Allowed values
issuancecustomer_uuid
uuid
loyalty_program_uuid
uuid
loyalty_program_type
Allowed values
voucherloyalty_balance_uuid
uuid
merchant_reference
Your reference for this operation. It is case-sensitive and must be unique across the merchant's loyalty operations.
^[\x21-\x7E]+$
1
255
Yes
outlet_uuid
The outlet recorded for this operation. Reversals keep the original operation's outlet.
uuid
balance_after
0
balance_expires_at_after
date-time
2026-11-26T00:00:00Z
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
created_at
date-time
2026-10-27T00:00:00Z
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
source_exchange_operation_uuid
Funding quantity exchange, or null for direct issuance. Exchange rewards have quantity one and their own primary voucher-balance receipt; the request identity and merchant reference belong to the funding exchange.
uuid
Yes
quantity
1
100
reason
1
10000
Yes
balance_delta
1
100
One of 2
Nested properties
operation_uuid
uuid
operation_type
Allowed values
revocationcustomer_uuid
uuid
loyalty_program_uuid
uuid
loyalty_program_type
Allowed values
voucherloyalty_balance_uuid
uuid
merchant_reference
Your reference for this operation. It is case-sensitive and must be unique across the merchant's loyalty operations.
^[\x21-\x7E]+$
1
255
Yes
outlet_uuid
The outlet recorded for this operation. Reversals keep the original operation's outlet.
uuid
balance_after
0
balance_expires_at_after
date-time
2026-11-26T00:00:00Z
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
created_at
date-time
2026-10-27T00:00:00Z
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
quantity
1
reason
1
10000
balance_delta
-1
One of 3
Nested properties
operation_uuid
uuid
operation_type
Allowed values
redemptioncustomer_uuid
uuid
loyalty_program_uuid
uuid
loyalty_program_type
Allowed values
voucherloyalty_balance_uuid
uuid
merchant_reference
Your reference for this operation. It is case-sensitive and must be unique across the merchant's loyalty operations.
^[\x21-\x7E]+$
1
255
Yes
balance_after
0
balance_expires_at_after
date-time
2026-11-26T00:00:00Z
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
created_at
date-time
2026-10-27T00:00:00Z
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
balance_delta
Allowed values
-1outlet_uuid
The outlet recorded for this operation. Reversals keep the original operation's outlet.
uuid
amount
The saving recorded for the redemption. It stays positive on a reversal.
References Positive Money.
eligible_spend
References Positive Money.
One of 4
Nested properties
operation_uuid
uuid
operation_type
Allowed values
redemption_reversalcustomer_uuid
uuid
loyalty_program_uuid
uuid
loyalty_program_type
Allowed values
voucherloyalty_balance_uuid
uuid
merchant_reference
Your reference for this operation. It is case-sensitive and must be unique across the merchant's loyalty operations.
^[\x21-\x7E]+$
1
255
Yes
balance_after
0
balance_expires_at_after
date-time
2026-11-26T00:00:00Z
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
created_at
date-time
2026-10-27T00:00:00Z
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
balance_delta
Allowed values
1outlet_uuid
The outlet recorded for this operation. Reversals keep the original operation's outlet.
uuid
amount
The saving recorded for the redemption. It stays positive on a reversal.
References Positive Money.
eligible_spend
References Positive Money.
reverses_operation_uuid
uuid
reason
1
10000
Used by
Raw YAML
title: Voucher Balance Operation
x-tags:
- Models
description: A receipt for issuing, redeeming, revoking or reversing vouchers. balance_after is the remaining
quantity when the operation completed. Redemption amounts record the monetary saving separately.
oneOf:
- title: Issuance
type: object
required:
- operation_uuid
- operation_type
- customer_uuid
- loyalty_program_uuid
- loyalty_program_type
- loyalty_balance_uuid
- merchant_reference
- outlet_uuid
- balance_after
- balance_expires_at_after
- created_at
- source_exchange_operation_uuid
- quantity
- reason
- balance_delta
properties:
operation_uuid: &a1
type: string
format: uuid
operation_type:
type: string
enum:
- issuance
customer_uuid: &a2
type: string
format: uuid
loyalty_program_uuid: &a3
type: string
format: uuid
loyalty_program_type: &a4
type: string
enum:
- voucher
loyalty_balance_uuid: &a5
type: string
format: uuid
merchant_reference: &a19
type:
- string
- "null"
minLength: 1
maxLength: 255
description: Your reference for this operation. It is case-sensitive and must be unique across the merchant's
loyalty operations.
pattern: ^[\x21-\x7E]+$
outlet_uuid: &operationOutlet
type: string
format: uuid
description: The outlet recorded for this operation. Reversals keep the original operation's outlet.
balance_after: &a20
type: integer
minimum: 0
balance_expires_at_after: &a21
type: string
format: date-time
pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
example: 2026-11-26T00:00:00Z
created_at: &a22
type: string
format: date-time
pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
example: 2026-10-27T00:00:00Z
source_exchange_operation_uuid:
type: [string, 'null']
format: uuid
description: Funding quantity exchange, or null for direct issuance. Exchange rewards have quantity one and their own primary voucher-balance receipt; the request identity and merchant reference belong to the funding exchange.
quantity:
type: integer
minimum: 1
maximum: 100
reason:
type:
- string
- "null"
minLength: 1
maxLength: 10000
balance_delta:
type: integer
minimum: 1
maximum: 100
- title: Revocation
type: object
required:
- operation_uuid
- operation_type
- customer_uuid
- loyalty_program_uuid
- loyalty_program_type
- loyalty_balance_uuid
- merchant_reference
- outlet_uuid
- balance_after
- balance_expires_at_after
- created_at
- quantity
- reason
- balance_delta
properties:
operation_uuid: *a1
operation_type:
type: string
enum:
- revocation
customer_uuid: *a2
loyalty_program_uuid: *a3
loyalty_program_type: *a4
loyalty_balance_uuid: *a5
merchant_reference: *a19
outlet_uuid: *operationOutlet
balance_after: *a20
balance_expires_at_after: *a21
created_at: *a22
quantity:
type: integer
minimum: 1
reason:
type: string
minLength: 1
maxLength: 10000
balance_delta:
type: integer
maximum: -1
- title: Redemption
type: object
required:
- operation_uuid
- operation_type
- customer_uuid
- loyalty_program_uuid
- loyalty_program_type
- loyalty_balance_uuid
- merchant_reference
- balance_after
- balance_expires_at_after
- created_at
- balance_delta
- outlet_uuid
- amount
- eligible_spend
properties:
operation_uuid: *a1
operation_type:
type: string
enum:
- redemption
customer_uuid: *a2
loyalty_program_uuid: *a3
loyalty_program_type: *a4
loyalty_balance_uuid: *a5
merchant_reference: *a19
balance_after: *a20
balance_expires_at_after: *a21
created_at: *a22
balance_delta:
type: integer
enum:
- -1
outlet_uuid: *operationOutlet
amount: &a25
$ref: ./PositiveMoney.yaml
description: The saving recorded for the redemption. It stays positive on a reversal.
eligible_spend: &a26
$ref: ./PositiveMoney.yaml
- title: Redemption reversal
type: object
required:
- operation_uuid
- operation_type
- customer_uuid
- loyalty_program_uuid
- loyalty_program_type
- loyalty_balance_uuid
- merchant_reference
- balance_after
- balance_expires_at_after
- created_at
- balance_delta
- outlet_uuid
- amount
- eligible_spend
- reverses_operation_uuid
- reason
properties:
operation_uuid: *a1
operation_type:
type: string
enum:
- redemption_reversal
customer_uuid: *a2
loyalty_program_uuid: *a3
loyalty_program_type: *a4
loyalty_balance_uuid: *a5
merchant_reference: *a19
balance_after: *a20
balance_expires_at_after: *a21
created_at: *a22
balance_delta:
type: integer
enum:
- 1
outlet_uuid: *operationOutlet
amount: *a25
eligible_spend: *a26
reverses_operation_uuid:
type: string
format: uuid
reason:
type: string
minLength: 1
maxLength: 10000