Coupon Redemptions

Operations related to coupon redemptions.

Get Coupon Redemptions

get

Retrieves a list of all redemptions for a specific coupon.

Authorizations
AuthorizationstringRequired

HTTP Basic Authentication. The username is your Merchant ID and the password is your API Key. The combined string Merchant_Id:Api_Key should be Base64 encoded.

Path parameters
couponIdstringRequired

The ID of the coupon for which to retrieve redemptions.

Example: cpn-1502288320598b19c0d59fd
Responses
chevron-right
200

A successful response returns a list of redemption objects.

application/json
hrefstringOptionalExample: https://api.vauchar.com/coupons/cpn-1502288320598b19c0d59fd/redemptions
countintegerOptionalExample: 2
get
/coupons/{couponId}/redemptions

Create Coupon Redemption

post

Redeems a coupon for a specific user. While only user_id is mandatory, providing more details is recommended for better tracking.

Authorizations
AuthorizationstringRequired

HTTP Basic Authentication. The username is your Merchant ID and the password is your API Key. The combined string Merchant_Id:Api_Key should be Base64 encoded.

Path parameters
couponIdstringRequired

The ID of the coupon to redeem.

Example: cpn-1502288320598b19c0d59fd
Body
user_idstringRequired

The unique identifier for the user redeeming the coupon.

user_emailstringOptional

The email address of the user.

user_phonestringOptional

The phone number of the user.

transaction_idstringOptional

The identifier for the transaction this redemption is part of.

value_usednumberOptional

The value used in this specific transaction.

Responses
chevron-right
200

Successful redemption. Returns the created redemption object.

application/json
hrefstringOptional

The direct URL to this specific redemption resource.

typestringOptional

The type of the object, in this case, "redemption".

idstringOptional

The unique identifier for the redemption.

coupon_idstringOptional

The ID of the coupon that was redeemed.

user_idstringOptional

The ID of the user who redeemed the coupon.

customer_idstringOptional

The ID of the customer associated with the redemption.

user_emailstringOptional

The email of the user who redeemed the coupon.

user_phonestringOptional

The phone number of the user who redeemed the coupon.

transaction_idstringOptional

The ID of the transaction associated with this redemption.

value_usedstringOptional

The value of the discount applied in this redemption.

team_idstringOptional

The ID of the team associated with this redemption, if any.

createdinteger · int64Optional

The timestamp when the redemption occurred (Unix timestamp).

post
/coupons/{couponId}/redemptions

Get Specific Redemption

get

Retrieves the details of a specific redemption by providing the coupon ID and redemption ID.

Authorizations
AuthorizationstringRequired

HTTP Basic Authentication. The username is your Merchant ID and the password is your API Key. The combined string Merchant_Id:Api_Key should be Base64 encoded.

Path parameters
couponIdstringRequired

The ID of the coupon.

Example: cpn-1502288320598b19c0d59fd
redemptionIdstringRequired

The ID of the redemption to retrieve.

Example: res-1502473727598dedff485f1
Responses
chevron-right
200

A successful response returns the specified redemption object.

application/json
hrefstringOptionalExample: https://api.vauchar.com/coupons/cpn-1502288320598b19c0d59fd/redemptions/res-1502473727598dedff485f1
get
/coupons/{couponId}/redemptions/{redemptionId}

Delete Specific Redemption

delete

Deletes a specific coupon redemption. This can be useful for correcting mistaken redemptions.

Authorizations
AuthorizationstringRequired

HTTP Basic Authentication. The username is your Merchant ID and the password is your API Key. The combined string Merchant_Id:Api_Key should be Base64 encoded.

Path parameters
couponIdstringRequired

The ID of the coupon.

Example: cpn-1502288320598b19c0d59fd
redemptionIdstringRequired

The ID of the redemption to delete.

Example: res-150675935459cf52bad9207
Responses
delete
/coupons/{couponId}/redemptions/{redemptionId}

No content

Last updated