Gift a Gift Card
Enables a user to gift a gift card to another user
- Type: string
x -pch -digest requiredThe signature for the API call
- Type: string
Authorization requiredUsed to authorize the request with access_token. It should be supplied as
Bearer ACCESS_TOKEN_GOES_HERE. Note: When authentication is performed using Advanced Authentication, you must include theid_tokenin theid-tokenheader and theaccess_tokenin theAuthorizationheader. See Access Punchh APIs Using Access and ID tokens - Type: string
Content - Type requiredSet this header to application/json.
- Type: string
Accept - Language Preferred language
- Type: string
Accept requiredAdvertises which content types the client is able to understand
- Type: string
User - Agent requiredUsed to identify the software, device, and application initiating the request, providing information about the client to the server. For details, see User Agent.
- Type: string
id -token A token that contains identity information about the authenticated user. It is used to verify the user’s identity and is required only when authentication is performed using Advanced Authentication. This token alone does not grant access to Punchh APIs. To access the APIs, you must include the
id_tokenin theid-tokenheader and theaccess_tokenin theAuthorizationheader. See Access Punchh APIs Using Access and ID tokens
- Type: string
amount Monetary value of the gift card
- Type: string
cardholder _name Name of the person who owns the payment card used to purchase the gift card
- Type: string
client requiredOAuth client ID provided by the business
- Type: string
design _id Identification of a particular gift card design selected by the user while gifting a gift card
- Format: dateenum
exp _date const:YYYY-MM-DDExpiration date of the payment card used by the user
Y Y Y Y - M M - D D
- Type: string
payment _type This parameter is required when a user makes a payment via saved cards. Send "recurring" as the value of this parameter.
- Type: string
recipient _email Email address of the user who will receive the gift card. At least one of the three (i.e., recipient_email, recipient_phone, and recipient_fb_uid) should be provided. If more than one are provided as parameters, the system will identify that user for whom all of the provided parameters match.
- Type: string
recipient _fb _uid Facebook "uid" of the user who will receive the gift card. At least one of the three (i.e., recipient_email, recipient_phone, and recipient_fb_uid) should be provided. If more than one are provided as parameters, the system will identify that user for whom all of the provided parameters match.
- Type: integerFormat: int32
recipient _phone Phone number of the user who will receive the gift card. At least one of the three (i.e., recipient_email, recipient_phone, and recipient_fb_uid) should be provided. If more than one are provided as parameters, the system will identify that user for whom all of the provided parameters match.
- Type: string
transaction _token Unique digital identifier/token of the user's payment card, or the UUID of the saved payment card if the value of
payment_typeis "recurring". The transaction token is issued by a payment processor used by a business. - Type: string
type Type of payment card used by the user (e.g., Visa, Mastercard, etc.).
- Type: object
200
{}