Should you notice any errors in our documentation, please don’t hesitate to contact us. Thank you!
| Attribute Name | Meaning |
|---|---|
| replacement_id | Vouchers whose replacement id is the one specified |
| expires_on | Expiration date |
| token | Token of voucher |
| balance.cents | Balance of voucher in the smallest unit of the vouchers currency (e.g. cents for Euros) |
curl --location -g --request GET 'https://www-staging.givve.com/api/voucher_owners/me/vouchers?sort=created_at&skip_meta_totals=&page[number]=1&page[size]=25' \
--header 'Accept-Version: v2' \
--header 'Authorization: Bearer <token>'{
"meta": {
"total_pages": 0,
"current_page": 0,
"page_size": 0,
"total_entries": 0
},
"links": {
"self": "http://example.com",
"first": "http://example.com",
"prev": "http://example.com",
"next": "http://example.com",
"last": "http://example.com"
},
"data": [
{
"id": "string",
"awaiting_activation": true,
"last_activation_at": "2019-08-24T14:15:22Z",
"balance": {
"cents": 0,
"currency": "EUR"
},
"blocked_amount": {
"cents": 0,
"currency": "EUR"
},
"created_at": {
"informational_timestamp": "2019-08-24T14:15:22Z"
},
"currency": "string",
"customer": {},
"emboss_line_1": "string",
"emboss_line_2": "string",
"excluded_from_load_order": true,
"expires_on": "2019-08-24",
"renew": true,
"mcc_group": "string",
"replacement": {
"prev": {
"id": "string",
"type": "string",
"token": "string"
},
"next": {
"id": "string",
"type": "string",
"token": "string"
}
},
"state": "string",
"payment_locks": [
"string"
],
"image_id": "string",
"token": "string",
"owner": {
"id": "string",
"identifier": "string",
"title": "stri",
"name": "string",
"first_name": "string",
"last_name": "string",
"email": "string",
"pending_email": "string",
"pending_email_expires_at": "string",
"address_line_1": "string",
"address_line_2": "string",
"zip_code": "string",
"city": "string",
"country_code": "string"
},
"updated_at": {
"informational_timestamp": "2019-08-24T14:15:22Z"
},
"configuration_changeable": true,
"configuration": {},
"number": "string",
"allow_3d_secure_enrolment": true,
"allow_mobile_wallet_enrolment": true,
"pin_last_updated_at": "2019-08-24T14:15:22Z",
"category": "benefit_in_kind"
}
]
}