Introduction
Welcome to the Giftees API! This API enables merchants, partners, and developers to seamlessly integrate Giftees' digital gifting platform into their applications, websites, and systems. With Giftees API, you can create, manage, and track digital gift cards, allowing you to provide a smooth and delightful gifting experience for your customers.
Whether you're building a simple e-commerce integration or a full-scale gifting solution, the Giftees API provides the flexibility and tools you need. This documentation will guide you through the core concepts, endpoints, and best practices for using our API.
What made this section unhelpful for you?
Creating an Account
To explore Giftees' services, you must create a Giftees account through our Dashboard. During the account creation process, Giftees will generate both a user account and a company account for you.
- The user account is used to log in to the Dashboard and manage your settings.
- The company account represents your business and is required for managing gift card offerings and processing transactions.
Once you've created your account, you’ll have full access to explore the Giftees platform in test mode. This allows you to simulate key features, such as creating and redeeming gift cards, without involving real transactions.
When you're confident with your setup and ready to offer real digital gift cards, you can proceed with account activation to go live and start processing real transactions.
Getting started with Giftees is quick and simple—your business will be ready to provide delightful gifting experiences in no time!
What made this section unhelpful for you?
Activate your Account
To process real transactions for digital gift cards, you must activate your Giftees account.
Account Activation
Activate your Giftees account by completing the activation application. We’ll request some basic information about your business, your products or services, and your personal relationship with the business. Once you submit your application, our team will review the details. Upon approval, you can immediately start processing real digital gift card transactions and go live.
Giftees complies with "Know Your Customer" (KYC) obligations, which require us to collect and verify this information. These regulations, established by our partners and regulatory authorities, help protect our platform from fraudulent activity and misuse. The information you provide is internally reviewed to ensure compliance with our terms of service.
If any issues arise during the review, our team will contact you to request additional information.
What made this section unhelpful for you?
Basics of APIs
Giftees offers a comprehensive and flexible selection of API formats and collection types to meet diverse integration and development needs. Our platform supports various API formats, such as REST, SOAP, GraphQL, and Async APIs, each designed for specific use cases and requirements. We also provide compatibility with multiple API specification collections, ensuring smooth integration and an efficient development process.
HTTP Methods
HTTP methods, or verbs, denote actions performed on resources. Giftees APIs support various HTTP methods:
- GET: Retrieve a representation of a specific resource.
- Example: Retrieving transaction details.
- POST: Submit data to create a new resource or trigger a state change.
- Example: Creating a new customer profile.
- PUT: Replace all representations of a target resource with the provided payload.
- Example: Updating a subscription plan.
- DELETE: Remove a specified resource.
- Example: Deleting a stored card.
- PATCH: Apply partial modifications to a resource.
- Example: Changing the status of an existing order.
Parameters
Parameters allow customization of API requests and responses. Giftees APIs support four types of parameters:
- Path Parameters: Integral parts of the endpoint URL, identifying specific resources.
- Query Parameters: Appended to the endpoint URL to filter or paginate results.
- Request Body Parameters: Included in the request body, transmitting data to the API server.
- Response Body Parameters: Represent data returned by the server in response to a request.
HTTP Status Codes
HTTP status codes communicate the outcome of client requests. Giftees employs HTTP status codes categorized into the following classes:
- Success (200): The request was successfully processed.
- Example: Successfully retrieved a resource or completed an action.
- 400 (Bad Request): The server could not understand the request due to invalid syntax.
- Example: Missing required parameters in the request.
- 401 (Unauthorized): Authentication is required and has failed or has not yet been provided.
- Example: Invalid or missing API key.
- 402 (Request Failed): The parameters were valid but the request failed.
- Example: Insufficient funds or expired credit card.
- 403 (Forbidden): The client does not have access rights to the content.
- Example: Attempting to access a resource without the necessary permissions.
- 404 (Not Found): The server can not find the requested resource.
- Example: Trying to access an endpoint that does not exist.
What made this section unhelpful for you?
Status Codes
200
Everything worked as expected.
400
The request was unacceptable, often due to missing a required parameter.
401
The request was unacceptable, often due to missing a required parameter.
402
The parameters were valid but the request failed.
403
The API key doesnt have permissions to perform the request.
404
The requested resource does not exist.
What made this section unhelpful for you?
Base URL
The Base URL is a crucial component for making API calls, as it defines the root URL for all requests. When making API calls, you combine the base URL with the specific endpoint path to form the complete request URL.
It supports multiple environments, such as sandbox and production. Additionally, the base URL is integrated with the API Explorer, enabling you to seamlessly switch between environments like Sandbox and Production while testing API calls.
What made this section unhelpful for you?
Base URL
Production:
https://api.giftees.io
Sandbox:
https://sandbox.giftees.io
What made this section unhelpful for you?
Authentication
When it comes to interacting with APIs, authentication is a critical step to ensure secure communication between your application and the API service. API authentication is performed via HTTP Basic Auth, which involves including your API key in the HTTP request headers. This method verifies your identity and grants you access to the API's resources, ensuring that only authorized users can make requests.
Giftees Sample API uses API keys
to authenticate requests.
To retrieve your API key from app.giftees.io, follow these steps:
- Sign in: Navigate to app.giftees.io and sign in with your credentials.
- User Settings: Once logged in, locate the user settings.
- Tools & Integrations Tab: Within the user settings, find the "Tools & Integrations" tab. Click on it to access settings related to integrations and tools.
- Locate API Key: In the Tools & Integrations tab, you should find your API key listed.
Add headers to an HTTP request
Giftees uses API keys to grant access to the API. You can generate a new API key in the Giftees Dashboard. The API key must be included in all API requests to the server, using a header formatted as follows:
Authorization: Bearere {{apiKey}}
Content Types
Accepts: application/json
Content-Type: application/json
Content-Type: application/json-patch+json
What made this section unhelpful for you?
Company
A company in Giftees is also referred to as a Giftees account. Multiple users can be granted access to manage a single Giftees company account.
Locations
Endpoints
GET
Orders
In Giftees, orders contain the transaction details related to the purchase of gift cards. Each order can include one or more gift cards.
Endpoints
GET
POST
PUT
POST
Items
Manage gift card items available for sale. You can create, update, or deactivate gift card offerings, specifying details such as the gift card value, description, and availability.
Endpoints
GET
POST
PUT
GET
DELETE
Gift Cards
In Giftees, a gift card is the thoughtful surprise sent to a recipient when someone places an order through the Giftees checkout or issues it via the dashboard or API. Each gift card carries its own unique code and balance (referred to as remaining_value
in our API), along with additional properties that make each gift card special.
At the heart of every gift card is an order—the parent entity that holds all the details of the transaction. A single order can include multiple gift cards, making Giftees perfect for everything from single gifts to bulk gifting occasions.
Giftees makes gifting more than just a transaction—it’s a way to create memorable moments for recipients, while giving businesses a powerful and flexible tool to manage every step of the gifting experience.