API Voucher Endpoints

This document provides details about the endpoints used in the Funbooker Voucher API.

POST - Create Voucher

  • Endpoint: POST /api/partner/v1/voucher/create

  • Description: Creates a new voucher.

  • Request body (required):

    • exemple:

    {
      "listingId": 12345,
      "listingItems": [
        {
          "quantity": 2,
          "listingItemId": 12345,
          "unitPrice": 123
        }
      ],
      "giftName": "John",
      "giftReceiverName": "Roman",
      "giftMessage": "Happy birthday"
    }

    • Response Example

{
  "voucherCode": "XFKDJL456413",
  "bookingUrl": "https://funbooker.com/useVoucher/XFKDJL456413",
  "price": {
    "amount": 2000,
    "currency": "EUR"
  }
}

Last updated