HelpDevelopers

JetSetGo external partner API

On this page

For developers at a partner business connecting their system to a JetSetGo operator's gift voucher programme, loyalty programme or memberships.

The operator (the "business") creates your partner account and issues your API keys in JetSetGo. Each key carries only the permissions the business chose for it.

Permission Lets your system
gift_voucher_redeem check a gift voucher, take value from it, refund value you took
loyalty_redeem let a member pay with points (the member approves with a one-time code), refund those points
loyalty_award give points to a member out of your points bank
loyalty_buy_points buy points into your points bank at your agreed buy rate
membership_status grant, suspend, reinstate, revoke or renew a membership (for an HR or membership system)

Basics

  • Base URL: https://api.jetsetgo.world/api/v1/partner
  • Authentication: send your key in the X-API-Key header on every request. Keys look like jsgp_<business>_<32 characters>. Keep them secret and server-side; the business can revoke a key at any time. A key is shown once, when it is created.
  • Format: JSON request and response bodies. Send Content-Type: application/json.
  • Money is in the business's currency (returned as currency, for example AUD), with two decimal places. Points are whole numbers.
  • Times are ISO 8601 with a time zone offset.
curl https://api.jetsetgo.world/api/v1/partner/loyalty/bank \
  -H "X-API-Key: jsgp_your_business_Xq3...your key..."

Idempotency (every action that changes something)

Every POST body needs an idempotency_key: any string up to 255 characters that you generate once per action (for example your own transaction ID or a UUID).

  • If a request times out or you are unsure whether it worked, send exactly the same request again with the same key. You get the original result back with "replayed": true, and nothing happens twice.
  • Using the same key for a different request (different amount, member, voucher and so on) is refused with 409 idempotency_key_reused.
  • Keys are scoped to your partner account and the kind of action.

Errors

Errors return an HTTP status and a body:

{"Code": "insufficient_points", "Message": "The member does not have enough points"}
Status Code Meaning
400 invalid_request A field is missing or invalid (the message says which)
400 invalid_code Wrong one-time code; attempts_remaining says how many tries are left
400 currency_mismatch The currency you sent is not the business's currency
401 invalid_api_key Key missing, wrong, revoked, or your partner account is suspended
403 permission_denied Your key does not have the permission this endpoint needs
404 member_not_found No loyalty member has that email address (also returned for people who are customers but not members)
404 challenge_not_found No code request with that ID for your account
404 redemption_not_found No redemption with that ID for your account (you can only refund your own)
404 voucher_not_found Voucher code not found
404 membership_not_found No membership of that type for that holder (memberships)
404 pass_not_found No live pass has that pass code (memberships)
409 pass_ambiguous The pass matches more than one ticket condition, so its membership can't be chosen (memberships)
422 pass_has_no_membership The pass's ticket condition doesn't require a membership (memberships)
422 pass_has_no_holder The pass has no holder, so it depends on no membership (memberships)
422 invalid_request The membership request is invalid (memberships)
422 invalid_dates valid_to is in the past or not a valid date (memberships)
422 holder_kind_mismatch holder_kind doesn't match the membership type (memberships)
409 ambiguous_member More than one member has that email address; the business must resolve it
409 member_not_available The member's account cannot be used right now
409 insufficient_points The member does not have enough points
409 insufficient_partner_points Your points bank does not have enough points (and the business has not allowed it to go negative)
409 no_buy_rate No buy rate is agreed for your account
409 no_mobile_for_member channel: "sms" was requested but the member has no mobile number; use email
409 sms_unavailable SMS is not set up for this business; use email
409 challenge_expired / challenge_failed / challenge_replaced The code request is no longer usable; start a new one
409 refund_exceeds_redemption More than is left to refund on that redemption
409 nothing_to_refund The redemption is already fully refunded
409 voucher_not_redeemable Voucher inactive, expired or empty (message gives the reason)
409 voucher_voided The voucher was voided; contact the business
409 loyalty_unavailable / gift_vouchers_unavailable The business's programme is not available to partners right now
409 idempotency_key_reused See idempotency above
429 rate_limited Too many requests; wait and retry
502 code_delivery_failed The one-time code could not be sent; try again or use the other channel
500 internal_error Something went wrong on our side; retry with the same idempotency_key

Limits

  • Voucher checks and redeems: 60 per minute per key.
  • Member look-ups by email (awards and redemption starts) and membership transitions share one counter: 60 per minute per key.
  • Redemption codes: 30 per hour per key, and 5 per member per day.

Gift vouchers (gift_voucher_redeem)

Value you take from a voucher accrues to what the business owes you; the business settles with you at your agreed cadence.

Check a voucher

GET /gift-vouchers/{code}

{"valid": true, "code": "GV7K2M9Q", "balance": 50.0, "currency": "AUD",
 "expires_at": "2027-10-26T03:00:00"}

An unknown, inactive, expired or empty voucher always gives the same answer:

{"valid": false, "reason": "invalid"}

Redeem value

POST /gift-vouchers/{code}/redeem

{"amount": 10.00, "idempotency_key": "order-88123", "external_reference": "ORDER-88123"}

external_reference (optional) is your own reference, shown on the business's statement. currency (optional) must equal the business currency if sent. If the voucher holds less than amount, the whole remaining balance is taken; check amount_redeemed.

{"transaction_id": "2b0f2c8e-6f0e-4a59-9a43-0f5d3d1c8a11", "code": "GV7K2M9Q",
 "amount_redeemed": 10.0, "voucher_balance": 40.0, "currency": "AUD",
 "created_at": "2026-10-26T03:12:40.120000", "replayed": false}

Refund a redemption

POST /gift-vouchers/redemptions/{transaction_id}/refund

{"amount": 4.00, "idempotency_key": "refund-88123-1"}

You can refund up to what that redemption took, less earlier refunds of it, and only your own redemptions. The value goes back onto the voucher.

{"refund_transaction_id": "8a7d...", "redemption_transaction_id": "2b0f2c8e-...",
 "code": "GV7K2M9Q", "amount_refunded": 4.0, "voucher_balance": 44.0,
 "refundable_remaining": 6.0, "currency": "AUD", "created_at": "...", "replayed": false}

Loyalty points

Your account has a points bank. Points members spend with you move from the member into your bank; points you award move from your bank to the member; points you buy go into the bank. The business's statement shows every movement and the money owed each way.

Members are identified by the email address they are registered with at the business.

Your bank

GET /loyalty/bank (any loyalty permission)

{"partner": {"id": 7, "name": "Bus Transfer Co"}, "points_balance": 850,
 "allow_negative_points_balance": false, "points_buy_rate": 0.01,
 "points_available_after_days": 0, "currency": "AUD",
 "recent_entries": [
   {"id": 12, "type": "redemption", "points": 50, "balance_after": 850, "rate": null,
    "money_amount": null, "currency": "AUD", "member": "m***@example.com",
    "member_points": -50, "external_reference": "TICKET-9", "created_at": "..."}]}

Entry type is one of purchase, redemption, redemption_refund, award, cash_out. points is signed from the bank's point of view (+ into the bank, - out of it).

Buy points (loyalty_buy_points)

POST /loyalty/purchases

{"points": 1000, "idempotency_key": "po-2026-10", "external_reference": "PO-2026-10"}

money_amount is what you owe the business (points x your buy rate).

{"entry": {"id": 10, "type": "purchase", "points": 1000, "balance_after": 1000,
           "rate": 0.01, "money_amount": 10.0, "currency": "AUD", "member": null,
           "member_points": null, "external_reference": "PO-2026-10", "created_at": "..."},
 "points_balance": 1000, "replayed": false}

Award points to a member (loyalty_award)

POST /loyalty/awards

{"member_email": "mia@example.com", "points": 100, "idempotency_key": "trip-5531",
 "external_reference": "TRIP-5531"}

The points leave your bank now. The member can use them from available_at (the business may set a waiting period for your account) and they expire on expires_on under the programme's normal rules (null = no expiry).

{"award": {"id": 11, "type": "award", "points": -100, "balance_after": 900, "rate": null,
           "money_amount": null, "currency": "AUD", "member": "m***@example.com",
           "member_points": 100, "external_reference": "TRIP-5531", "created_at": "...",
           "available_at": "2026-10-26T03:20:00+00:00", "expires_on": "2027-10-26"},
 "points_balance": 900, "replayed": false}

Awards cannot be reversed through the API; ask the business.

Let a member pay with points (loyalty_redeem)

Two steps. The member approves each redemption with a 6-digit code that JetSetGo sends them.

Step 1: request a code. POST /loyalty/redemptions

{"member_email": "mia@example.com", "points": 50, "idempotency_key": "ticket-9",
 "external_reference": "TICKET-9", "channel": "email"}

channel is email (default) or sms. The member's balance is checked now.

{"challenge_id": "9d7a54a4-1f3e-4cbe-8a3f-7d6a4a1b7f10", "status": "pending",
 "expires_at": "2026-10-26T03:30:00+00:00", "channel": "email",
 "sent_to": "m***@example.com", "points": 50, "replayed": false}

The member receives: "Voyager Points code 123456 to use 50 points with Bus Transfer Co. Valid 10 minutes. If this wasn't you, ignore this message."

  • The code is valid for 10 minutes and allows 5 attempts.
  • Only one code is live per member for your account: requesting another replaces the earlier one.
  • Repeating step 1 with the same idempotency_key returns the same request without sending another code.

Step 2: submit the code the member gives you. POST /loyalty/redemptions/{challenge_id}/confirm

{"code": "123456"}

On success the points move from the member to your bank:

{"redemption": {"id": 12, "redemption_id": 12, "type": "redemption", "points": 50,
                "balance_after": 950, "rate": null, "money_amount": null, "currency": "AUD",
                "member": "m***@example.com", "member_points": -50,
                "external_reference": "TICKET-9", "created_at": "...",
                "points_refunded": 0, "points_refundable": 50},
 "points_balance": 950, "replayed": false}

A wrong code returns 400 invalid_code with attempts_remaining; after the fifth wrong code the request fails (409 challenge_failed) and you must start again. Confirming an already confirmed request returns the same redemption ("replayed": true). The member's balance is checked again at this point.

Refund a redemption

POST /loyalty/redemptions/{redemption_id}/refund

{"points": 20, "idempotency_key": "ticket-9-refund-1"}

points is optional (default: everything not yet refunded). Only your own redemptions can be refunded. The full amount leaves your bank; the member gets the points back except any whose expiry date has passed in the meantime (member_points_lapsed).

{"refund": {"id": 13, "type": "redemption_refund", "points": -20, "balance_after": 930,
            "redemption_id": 12, "points_refunded": 20, "member_points_restored": 20,
            "member_points_lapsed": 0, "member": "m***@example.com", "currency": "AUD",
            "rate": null, "money_amount": null, "member_points": 20,
            "external_reference": "TICKET-9", "created_at": "..."},
 "points_balance": 930, "replayed": false}

Points bank going negative

Awards and redemption refunds take points out of your bank. If your bank does not have enough, the request is refused with 409 insufficient_partner_points, unless the business has allowed your account to go negative (then your bank can drop below zero and you owe the difference under your agreement).

Memberships (membership_status)

For the operator's HR or membership system. The key needs the membership_status permission, which the business can only give when it has at least one active membership type. The business decides whether to use this endpoint at all.

Change a membership

POST /memberships/transition

{"action": "suspend", "membership_type_id": 3, "holder_kind": "client",
 "holder_id": 1042, "reason": "On leave"}
Field Meaning
action grant, suspend, reinstate, revoke or renew
membership_type_id The membership type
holder_kind client or pat_template (a saved PAT)
holder_id The holder's id, as in the memberships CSV export the business can download
reason Optional, up to 1000 characters. Recorded in the history as "Partner <name> (key <id>): <reason>"
valid_to Optional end date for grant and renew

By pass code. Instead of membership_type_id, holder_kind and holder_id, you can name the membership by the code on the holder's pass:

{"action": "suspend", "pass_code": "00418823", "reason": "On leave"}
Field Meaning
pass_code The code on the pass: its ticket reference, an imported card number, or the full scanned QR code
action, reason, valid_to As above
  • The change goes to the membership the pass depends on: the membership type named on the pass's ticket condition, held by the pass's PAT template or, for a client-held type, by the client who bought it.
  • Send card numbers as text ("00418823", not 418823), so leading zeros are kept. A whole number is read as its digits.
  • A pass on a booking that isn't paid yet still counts: the change reaches its holder's membership. A deleted pass, or one on a cancelled booking, returns pass_not_found.
  • Send one form or the other. A body with both pass_code and holder fields is refused with 422 invalid_request.
  • A new holder's first membership can only be granted by holder: a pass with a membership requirement can't be issued until the holder holds the membership.
  • Pass errors: 404 pass_not_found, 409 pass_ambiguous (the pass matches more than one ticket condition), 422 pass_has_no_membership (its ticket condition requires no membership), 422 pass_has_no_holder, and 422 invalid_request (for example a pass_code longer than 512 characters).

Response (ids only, no names or emails):

{"membership_id": 77, "membership_type_id": 3, "holder_kind": "client", "holder_id": 1042,
 "outcome": "changed", "status": "suspended", "valid_from": "...", "valid_to": "..."}
  • Repeats are harmless. A call that finds nothing to change returns "outcome": "unchanged", for example suspend on a suspended membership or revoke on a revoked one. Unlike the actions above, this call takes no idempotency_key.
  • Renew is the exception. renew without valid_to extends the membership each time it is called. Send valid_to so a retry is safe.
  • What each action does matches the staff actions in the Memberships app: suspend ends the current and any scheduled period now; reinstate restores the remaining time and keeps the original end date.
  • Errors: 401 invalid_api_key, 403 permission_denied, 404 membership_not_found, 409 with the reason the membership can't change (for example grant on a suspended membership), 422 invalid_request, invalid_dates or holder_kind_mismatch. A saved PAT that the membership type doesn't cover returns 404 membership_not_found. The 60 a minute limit is the same counter as member look-ups by email.