Download OpenAPI specification:Download
This document entails the Waivpay APIs, split across three distinct systems, each having their own host and requiring separate credentials. These are made available by Waivpay dependent on your integration requirements.

The Gift Cards API covers the catalogue and issuance of open-loop physical and digital branded cards.
Authentication is done with OAuth2. Firstly, this token API endpoint must be called which will return an access token to be used for every other endpoint. It will expire after 2 hours, after which a new token must be requested.
Request a token for API authentication. Pass in your Oauth client ID and secret in
as BASIC authentication values for this call. Any API versioning can be excluded for
this path i.e. api/v1 etc.
| grant_type required | string OAuth2 grant type, must be |
{- "grant_type": "client_credentials"
}{- "access_token": "_ZpTZO1DAhilUSkfJ6E84AGoMJZfYEdQSPyYu-3ttM8",
- "token_type": "Bearer",
- "expires_in": 7200,
- "created_at": 1632451155
}Returns app configuration
| app_id required | string ID of the app being called for. This will be provided to you by Waivpay |
| Authorization required | string Your OAuth Bearer token in the format |
curl -X GET https://<host>/apps/1 -H 'Authorization: Bearer <access_token>'
{- "identifier": "waivpay",
- "name": "Waivpay",
- "tiles": [
- {
- "name": "giftcards",
- "disable_purchases": false
}
], - "locations": [
- {
- "id": 5,
- "name": "Sydney",
- "state": "NSW"
}
], - "delivery_options": [
- {
- "id": 2,
- "name": "Express Shipping",
- "amount": 7.95
}
], - "terms_of_use": "<p>You must be over 18 to use this app</p>",
- "card_terms_and_conditions": "<p>Cards are valid for 36 months</p>",
- "faqs": "<p>Is this app endorsed by the centre?<br>Yes</p>",
- "home_page_text": "Australia's largest shopping centre",
- "disable_parking_collection": false
}The catalogue endpoint provides a list of open-loop physical and digital cards products that are available for sale. The products in this catalogue can vary in their cover designs, the minimum and maximum value, and the fees associated with the issuance of the card. All products in this catalogue can be loaded with a variable amount that is stipulated when the card is ordered.
Request a list of card products
| app_id required | string ID of the app being called for. This will be provided to you by Waivpay |
| Authorization required | string Your OAuth Bearer token in the format |
curl -X GET https://<host>/apps/1/products -H 'Authorization: Bearer <access_token>'
{- "products": [
- {
- "id": 8,
- "name": "Porpoise Spit Shopping Centre Giftcard",
- "description": null,
- "type": null,
- "example": null,
- "active": true,
- "product_type": "digital",
- "spotlight": false,
- "minimum_card_value": 5,
- "maximum_card_value": 4999,
- "fee": 2.5,
- "promotion": {
- "item_id": 11,
- "end_at": "2024-04-12T15:30:10.698+10:00",
- "promotion_type": "percentage_discount",
- "percentage_discount": "0.1",
- "value_discount": "5",
- "free_card_design": {
- "id": 8
}, - "value": "25.0",
- "percentage_uplift": "0.1",
- "value_uplift": "5"
}
}
]
}This returns all orders for a user or external user ID, on the assumption they were provided at time of order creation
| app_id required | string ID of the app being called for. This will be provided to you by Waivpay |
| user_id | string User ID to search orders for |
| external_user_id | string External user ID to search orders for |
| Authorization required | string Your OAuth Bearer token in the format |
curl -X GET https://<host>/apps/1/orders?user_id=5 -H 'Authorization: Bearer <access_token>'
{- "orders": [
- {
- "reference": "12341234",
- "created_at": "2022-05-10T03:29:21Z",
- "total_cost": 55,
- "order_items": [
- [
- {
- "card_type": "digital",
- "amount": 50,
- "quantity": 1,
- "card_fee": 5,
}
]
]
}
]
}The Create Order API allows for the creation and issuance of physical and digital cards. It also takes credit card details to submit payment
| app_id required | string ID of the app being called for. This will be provided to you by Waivpay |
| Authorization required | string Your OAuth Bearer token in the format |
string Purchaser's email address | |
| phone_number | string Purchaser's phone number |
| delivery_option_id | integer ID of delivery option, mapped to what is returned by Get App API.
Required for |
| user_id | integer Optional reference to a user ID, if Waivpay app users are being used |
| external_user_id | string Optional reference to refer to an external user ID, the most common use case being for apps outside of Waivpay. Will help link all orders to the same user |
| payment_method | string Enum: "credit_card" "apple_pay" Payment method, by default |
| stripe_payment_method_id | string For |
| validate | boolean Optional flag to just validate order, rather than persist it. No payment will be taken. Response will just include total cost if valid |
| credit_card_number | string Credit card number, encrypted using eWay's client side encryption plugin |
| credit_card_name | string Credit card name |
| credit_card_expiry_month | string Credit card expiry month, in format MM |
| credit_card_expiry_year | string Credit card expiry year, in format YYYY |
| credit_card_security_code | string Credit card security code, encrypted using eWay's client side encryption plugin |
| billing_same_address | boolean Enum: true false Flag to indicate billing details are the same as recipient details for |
object Recipient address details, required for | |
object Billing address details of the purchaser | |
Array of objects |
{- "phone_number": 404123123,
- "delivery_option_id": 2,
- "user_id": 0,
- "external_user_id": "string",
- "payment_method": "credit_card",
- "stripe_payment_method_id": "string",
- "validate": false,
- "credit_card_number": "124jn12knfi23if23nif23iufni",
- "credit_card_name": "Joey Bloggs",
- "credit_card_expiry_month": "04",
- "credit_card_expiry_year": "2027",
- "credit_card_security_code": "1234123r12asdfkjb13kef34f",
- "billing_same_address": false,
- "recipient_address": {
- "company_name": "Google Inc",
- "street_address": "10 Smith St",
- "suburb": "Sydney",
- "postcode": "2000",
- "state": "NSW"
}, - "billing_address": {
- "company_name": "Google Inc",
- "street_address": "14 Smith St",
- "suburb": "Sydney",
- "postcode": "2000",
- "state": "NSW"
}, - "order_items": [
- {
- "card_design_id": 8,
- "card_type": "digital",
- "amount": 20,
- "quantity": 2,
- "delivery_sms_number": 404234234,
- "include_message": false,
- "to": "Joey",
- "delivery_first_name": "Bob",
- "delivery_last_name": "Bloggs",
- "from": "Bob",
- "message": "Happy Birthday",
- "scheduled_time": "2022-06-18 15:00",
- "promotion_item_id": 11,
- "card_cost": 15,
- "total": 30,
- "free_product_id": 8,
- "free_product_value": 5
}
]
}{- "order_reference": 12341234,
- "status": "payment_approved",
- "total_cost": 105.95,
- "total_card_fees": 5.95,
- "gst": 0.54,
- "delivery_fee": 0,
- "stripe_client_secret": "pi_3LBWJJDpqfEfiA8V2brzKEnN_secret_mPlIbgbkobfjyjR67WQTMjbOJ"
}Returns details for the card associated with the given card ID
Due to regulatory requirements, to pull sensitive card data, such as the PAN and CCV2,
you will need to send a POST request to the private_callback_url with the following
payload structure
{
"tokenId": "ABCD-123", // value from private_token_id in Waivpay API response
}
The response from this request will return a response including the sensitive card data fields
{
"pan": "1234567890123456",
"cvv2": "123"
}
| app_id required | string ID of the app being called for. This will be provided to you by Waivpay |
| card_id required | string The card ID, or card token as part of the digital card delivery URL e.g. app.host.com/activate/1a2b3c4d |
| Authorization required | string Your OAuth Bearer token in the format |
curl -X GET https://<host>/apps/1/cards/512512 -H 'Authorization: Bearer <access_token>'
{- "card_id": 25891259295,
- "created_at": "2020-07-21",
- "type": "Digital",
- "status": "Active",
- "expiry_date": "04/2027",
- "card_design_id": 4,
- "private_token_id": "29A2EC270C4B9EA6CB23C5893FE774F9-1000124688",
- "from": "Joey",
- "message": "Happy Birthday"
}Update card details, specifically used to update delivery email of digital cards for provisioning requirements
| app_id required | string ID of the app being called for. This will be provided to you by Waivpay |
| card_id required | string The card ID |
| Authorization required | string Your OAuth Bearer token in the format |
| email required | string Email of the digital card owner |
{- "email": "[email protected]"
}{- "error": "Failure updating card details with bank"
}Returns available balance for the card associated with the given card ID
| app_id required | string ID of the app being called for. This will be provided to you by Waivpay |
| card_id required | string The card ID |
| Authorization required | string Your OAuth Bearer token in the format |
curl -X GET https://<host>/apps/1/cards/512512/balance -H 'Authorization: Bearer <access_token>'
{- "balance": 50.75,
- "expiry_date": "21/07/2023"
}Returns list of transactions for the card associated with the given card ID
| app_id required | string ID of the app being called for. This will be provided to you by Waivpay |
| card_id required | string The card ID |
| Authorization required | string Your OAuth Bearer token in the format |
curl -X GET https://<host>/apps/1/cards/512512/transactions -H 'Authorization: Bearer <access_token>'
{- "transactions": [
- {
- "date": "2019-08-24T14:15:22Z",
- "type": "Load",
- "description": "Funds load at Sydney Shopping Centre",
- "amount": 100,
- "closing_balance": 100
}, - {
- "date": "2019-08-27T17:30:42Z",
- "type": "Purchase",
- "description": "JB HIFI SYDNEY AU",
- "amount": 30.5,
- "closing_balance": 69.5
}
]
}Returns details for the cards associated with the given mobile number
| app_id required | string ID of the app being called for. This will be provided to you by Waivpay |
| card_id required | string The card ID |
| mobile_number required | string Mobile number to search for cards |
| Authorization required | string Your OAuth Bearer token in the format |
curl -X GET https://<host>/apps/1/cards?mobile_number=0404123123 -H 'Authorization: Bearer <access_token>'
{- "cards": [
- {
- "card_id": 25891259295,
- "delivery_sms_number": 404123123,
- "amount": 50,
- "card_design_id": 4,
}
]
}Regardless of whether the card is physical or digital, this will put the card into an active state so funds can be spent. Digital cards of $200 or more will also require a pin to be set for use with contactless payments
| app_id required | string ID of the app being called for. This will be provided to you by Waivpay |
| card_id required | string The card ID |
| Authorization required | string Your OAuth Bearer token in the format |
| pin | number PIN for |
{- "pin": 1234
}{- "error": "Card not found"
}Enables digital cards to be added to Google Pay/Apple wallet from an app. Apple wallets require extra certificate information as described in request body below
| app_id required | string ID of the app being called for. This will be provided to you by Waivpay |
| card_id required | string The card ID |
| Authorization required | string Your OAuth Bearer token in the format |
| wallet_type required | string Enum: "android" "ios" Whether the app is provisioning into Apple or Google Play wallet |
| nonce | string Value generated in Xcode for provisioning, only required for |
| nonce_signature | string Value generated in Xcode for provisioning, only required for |
| certificate_leaf | string Value generated in Xcode for provisioning, only required for |
| certificate_root | any Value generated in Xcode for provisioning, only required for |
{- "wallet_type": "android",
- "nonce": "abc100",
- "nonce_signature": "abc100",
- "certificate_leaf": "MIIabc100=",
- "certificate_root": "MIIabc100="
}{- "error": "Email required for provisioning to wallet"
}The direct Gift Cards API covers the catalogue and issuance of open-loop physical and digital branded cards directly through float invoicess.
Authentication is done with OAuth2. Firstly, this token API endpoint must be called which will return an access token to be used for every other endpoint. It will expire after 2 hours, after which a new token must be requested.
Request a token for API authentication. Pass in your Oauth client ID and secret in
as BASIC authentication values for this call. Any API versioning can be excluded for
this path i.e. api/v1 etc.
| grant_type required | string OAuth2 grant type, must be |
{- "grant_type": "client_credentials"
}{- "access_token": "_ZpTZO1DAhilUSkfJ6E84AGoMJZfYEdQSPyYu-3ttM8",
- "token_type": "Bearer",
- "expires_in": 7200,
- "created_at": 1632451155
}The products endpoint provides a list of open-loop physical and digital cards products that are available for sale. The products in this catalogue can vary in their cover designs, the minimum and maximum value, and the fees associated with the issuance of the card. All products in this catalogue can be loaded with a variable amount that is stipulated when the card is ordered.
Request a list of card products
| Authorization required | string Your OAuth Bearer token in the format |
curl -X GET https://<host>/products -H 'Authorization: Bearer <access_token>'
{- "products": [
- {
- "id": 8,
- "name": "Porpoise Spit Shopping Centre Giftcard",
- "medium": "physical",
- "fee": 2.5,
- "minimum_card_value": 5,
- "maximum_card_value": 999,
}
]
}Request a list of invoices
| Authorization required | string Your OAuth Bearer token in the format |
curl -X GET https://<host>/invoices -H 'Authorization: Bearer <access_token>'
{- "invoices": [
- {
- "id": 8,
- "number": "Card Order 2445",
- "type": "float",
- "initial_balance": 10000,
- "currrent_balance": 9000,
- "depleted": false
}
]
}The loads endpoint provides ability to order a card, either physical or digital. It supports payment by invoice
Creates a transaction for a card
| Authorization required | string Your OAuth Bearer token in the format |
| amount required | decimal Amount to load on card |
| product_id | number Product ID. Only required for digital products |
| card_number | string Card number. Only required for physical products. Product will be determined from this card number |
| payment_method required | string Value: "invoice" Payment method |
object Invoice payment method object | |
| delivery_first_name | string First name of recipient. Required for digital mastercards |
| delivery_last_name | string Last name of recipient. Required for digital mastercards |
| delivery_sms_number | string Mobile number of recipient. Required for digital mastercards |
| transaction_reference | string Optional reference for the transaction |
{- "amount": 50,
- "product_id": 125,
- "card_number": 20123123123,
- "payment_method": "invoice",
- "invoice": {
- "id": 20
}, - "delivery_first_name": "Joey",
- "delivery_last_name": "Bloggs",
- "delivery_sms_number": 404123123,
- "transaction_reference": "Order 1234"
}{- "id": 1008,
- "status": "paid",
- "total_paid": 7.5,
- "total_value": 5,
- "total_fees": 2.5,
- "created_at": "2024-04-12T15:30:10.698+10:00",
- "transaction_reference": "Order 1234"
}Authentication is done with OAuth2. Firstly, this token API endpoint must be called which will return an access token to be used for every other endpoint. It will expire after 2 hours, after which a new token must be requested.
Request a token for API authentication. Pass in your Oauth client ID and secret in
as BASIC authentication values for this call. Any API versioning can be excluded for
this path i.e. api/v1 etc.
| grant_type required | string OAuth2 grant type, must be |
{- "grant_type": "client_credentials"
}{- "access_token": "_ZpTZO1DAhilUSkfJ6E84AGoMJZfYEdQSPyYu-3ttM8",
- "token_type": "Bearer",
- "expires_in": 7200,
- "created_at": 1632451155
}Request a list of promotions for an organisation
| organisation_id required | integer ID of the organisation. This will be provided to you by Waivpay |
| Authorization required | string Your OAuth Bearer token in the format |
curl -X GET https://<host>/organisations/1/promotions -H 'Authorization: Bearer <access_token>'
{- "promotions": [
- {
- "id": 8,
- "name": "Camera Promo",
- "title": "Get 10% off cameras",
- "summary": "<p>Terms and conditions apply</p>",
- "test_mode": false,
- "active": true,
- "open": true,
- "start_date": "2022-05-30",
- "end_date": "2022-09-30",
- "support_categories": [
- {
- "name": "I received the wrong rebate",
- "allow_message": false,
- "note": ""
}, - {
- "name": "I have received no confirmation email",
- "allow_message": false,
- "note": "Emails can take up to 24 hours to deliver in peak times"
}
]
}, - {
- "id": 12,
- "name": "Fridge Promo",
- "title": "Get 20% off fridges",
- "summary": "<p>Terms and conditions apply</p>",
- "test_mode": true,
- "active": true,
- "open": false,
- "start_date": "2020-05-30",
- "end_date": "2020-06-30"
}
]
}Returns information about a specific promotion. Not all information may be required, see notes for more extensive description of promotion config that is returned.
| organisation_id required | integer ID of organisation. This will be provided to you by Waivpay |
| promotion_id required | integer ID of the promotion |
| Authorization required | string Your OAuth Bearer token in the format |
curl -X GET https://<host>/organisations/1/promotions/6 -H 'Authorization: Bearer <access_token>'
{- "promotion": {
- "id": 8,
- "name": "Camera Promo",
- "open": true,
- "trackable": true,
- "confirmable": null,
- "country": "Australia",
- "form_schema": [
- {
- "id": 2,
- "type": "text",
- "label": "Name",
- "hint": "This is a hint",
- "required": true
}, - {
- "id": 3,
- "type": "checkbox",
- "label": "Over 18?",
- "required": false
}, - {
- "id": 4,
- "type": "select",
- "label": "Favourite Animal?",
- "options": [
- "cat",
- "dog'"
]
}
], - "competition": false,
- "banner_background": "https://cashbackengine.com/rails/active_storage/blobs/eyJfcmFp/desktop-back.jpg",
- "products": [
- {
- "label": "Pixel",
- "value": 1,
- "fulfilment_types": [
- 1
]
}, - {
- "label": "Pixel 2",
- "value": 2,
- "fulfilment_types": [
- 3
]
}
], - "fulfilment_types": [
- {
- "id": 1,
- "name": "$10 Bank Transfer",
- "type": "bank_transfer",
- "description": null,
- "gift_image": null,
- "accept_po_box": false
}, - {
- "id": 3,
- "name": "JB HiFi Gift Card",
- "type": "digital_gift",
- "description": "A JB HiFi digital eGift valued at $10",
}
], - "disclaimer": "<p>Promotion closes 30th June</p>",
- "support_phone": "1300 666 666",
- "contact_us_content": "<p>Call centre open between 9am and 5pm weekdays</p>"
}
}Validates BSB data primarily for delivery addresses. Will return bank information if found. If not found, does not mean is invalid but may be worth double checking if has been entered correctly
| Authorization required | string Your OAuth Bearer token in the format |
| bsb required | integer BSB to validate |
{- "bsb": 123123
}{- "bank_name": "Commonwealth Bank"
}Returns a list of claims matching the provided external user ID. This ID is optionally given to a claim on creation
| external_user_id required | string External user ID to return claims for |
| Authorization required | string Your OAuth Bearer token in the format |
curl -X GET https://<host>/claims?external_user_id=1241 -H 'Authorization: Bearer <access_token>'
{- "claims": [
- {
- "claim_id": 98765432,
- "created_at": "2019-08-24T14:15:22Z",
- "status": "approved",
- "promotion_id": 12,
- "promotion_name": "Phone Promo",
- "fulfilment_type": "Bank Transfer",
- "fulfilment_value": 50
}
]
}Returns information and status about a specific claim, using the claim ID given to the user at time of claim
| promotion_id required | integer ID of the promotion |
| claim_id required | integer ID of the claim, given and emailed to user at time of successful claim submission |
| Authorization required | string Your OAuth Bearer token in the format |
curl -X GET https://<host>/promotions/8/claims/424124122 -H 'Authorization: Bearer <access_token>'
{- "claim": {
- "claim_id": 98765432,
- "created_at": "2019-08-24T14:15:22Z",
- "status": "approved",
- "fulfilment_type": "Bank Transfer",
- "fulfilment_value": 50,
- "tracking_number": 12345,
- "name": "Joey Bloggs",
- "history": [
- {
- "date": "2021-04-24",
- "status": "pending",
- "description": null
}, - {
- "date": "2021-04-25",
- "status": "declined",
- "description": "Claim submitted multiple times"
}
]
}
}This uploads a file to the platform, returning a file ID, that is passed along with the data in the Create Claim endpoint
| Authorization required | string Your OAuth Bearer token in the format |
| Content-Type required | string multipart/form-data |
| file | file File passed in as multipart/form-data. Supported file types are standard image formats and PDF |
curl -X POST https://<host>/claims/file_uploads -F 'file=/Users/dev/images/test.png' -H 'Authorization: Bearer <access_token>;Content-Type: multipart/form-data'
{- "file_id": 14142323,
- "filename": "receipt.png"
}The claims API allows for submissions to a promotion. Some of the data required is based off specific promotion configuration, particularly the custom fields section. File custom fields require the File Upload API to be utilised prior to submitting a claim
| promotion_id required | integer ID of the promotion |
| Authorization required | string Your OAuth Bearer token in the format |
| product_id | integer Product ID the claim is for, if promotion has more than one product configured. IDs can be found in promotion configuration |
| fulfilment_type_id | integer Fulfilment Type ID the claim is for, if product has more than one fulfilment type configured. IDs can be found in promotion configuration |
| external_user_id | string An optional external user ID reference that can later be used to search for claims |
| fields required | object This is a key/value pair object, where the keys correspond to the custom field IDs. These are found in the promotion configuration. The values are the user value for these inputs |
required | object Holder for all delivery fields, can differ based off fulfilment type |
{- "product_id": 3,
- "fulfilment_type_id": 2,
- "external_user_id": 151412,
- "fields": {
- "2": "Joey Bloggs",
- "3": 18,
- "4": "Picture quality"
}, - "delivery": {
- "name": "Joey Bloggs",
- "account_name": "Joey Bloggs",
- "bsb": 123123,
- "account_number": 12341234,
- "address_line_1": "10 Smith St",
- "address_line_2": "12 Georges Ave",
- "suburb": "Sydney",
- "postcode": 2000,
- "state": "NSW"
}
}{- "claim_id": 14142323
}This API allows claims that have been marked as fulfilment_failed to be updated
with new details for fulfilment to be retried. This is primarily used for bank_transfer
claims that have bounced due to incorrect bank details.
It is worth noting that it is possible this action will result in a decline of a claim.
For example, if a claim is being updated with new bank details, but the new bank account
has reached a claim limit, it may decline the claim depending on the promotion rules/setup.
In this instance it will return a 400 response with a Claim Declined error message.
| promotion_id required | integer ID of the promotion |
| claim_id required | integer ID of the claim, given and emailed to user at time of successful claim submission |
| Authorization required | string Your OAuth Bearer token in the format |
| email required | email Claimant's email. Is delivery email for |
| name required | string Claimant's name |
| account_name | string Claimant's bank account name, required for |
| bsb | number Claimant's bank account BSB, required for |
| account_number | number Claimant's bank account number, required for |
{- "name": "Joey Bloggs",
- "account_name": "Joey Bloggs",
- "bsb": 123123,
- "account_number": 12341234
}{- "error": "Invalid parameters",
- "error_detail": "Email can't be blank"
}This API is used for creating support requests. It generates an email to be sent to the promotion's support email. Support is then continued through this email channel
| Authorization required | string Your OAuth Bearer token in the format |
| promotion_id required | integer ID of the promotion the support request is associated with |
| name required | string Name of the person submitting request |
| email required | email Email of the person submitting request |
| phone_number required | string Phone number of the person submitting request |
| claim_id | string Claim ID if known |
| category | string Category of the support request. Required if promotion has support categories set up |
| message | string Message of the support request. Required if promotion has no support categories set up |
{- "promotion_id": 123,
- "name": "Joey Bloggs",
- "phone_number": "0404123123",
- "claim_id": "47181234",
- "category": "I received wrong amount",
- "message": "Hi, I received wrong rebate amount"
}{- "message": "Invalid parameters",
- "error_detail": {
- "email": [
- "is invalid"
], - "phone_number": [
- "can't be blank"
]
}
}A webhook can be set up in order to notify of status changes to claims instead of using
the standard system email flow. The status changes included are pending, approved,
declined, fulfilled and fulfilment_failed.
If configured, the webhook will send a POST request to the desired endpoint with the following payload:
{
"claim_id": "12341234",
"external_user_id": "123",
"promotion_id": 10,
"event_id": "168",
"event_timestamp": "2022-05-04T00:53:29Z",
"status": "approved",
"reason": "",
"update_fulfilment_url": "https://<host>/update_claim?token=123666123"
}
reason is only provided for declined status changes. While update_fulfilment_url is a
URL provided only for fulfilment_failed status changes. This is when payment has bounced,
and the link provides a means to update bank account details.
The request will pass an X-Waivpay-Signature header which is generated by hashing the payload
using HMACSHA256 and an agreed secret key, and encoding the result in base64. When receiving
webhook requests, caculate this hash and match with the header to confirm requests are valid
and coming from Waivpay.