If offered by your store, you can apply coupons, gift cards, and creator codes via Headless API once a basket has been created and the user's desired packages have been added.
Depending on the store's configuration, multiple gift cards or coupons may be applied. To remove a gift card or coupon, use the relevant /remove endpoint.
Applies a creator code to a basket.
The webstore identifier.
"t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb"
The basket identifier.
"c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c"
Creator code removed successfully.
Removes a coupon code from a basket
The webstore identifier.
"t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb"
The basket identifier.
"c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c"
Successful response.
Removes a gift card from the basket.
The webstore identifier.
"t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb"
The basket identifier.
"c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c"
Provide the card_number
to remove from the basket.
"0127 0244 7210 1111"
Gift card removed successfully.
Applies a creator code to a basket.
The webstore identifier.
"t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb"
The basket identifier.
"c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c"
Provide a card_number
to apply to the basket.
"0127 0244 7210 1111"
Successful response returns the basket.
244127617
"1a-55fff4107740a1f40d844ff89607557f45bfafb3"
false
"support@tebex.io"
"Academy10"
"0127 0244 7210 1111"
The creator code is used to share a percentage of the payment with another party. See more about creator codes at https://docs.tebex.io/creators/tebex-control-panel/engagement/creator-codes
"https://tebex.io"
false
A two-character country code
"US"
"127.0.0.1"
127244
1.27
0.11
1.38
A 3 character currency code
"USD"
The quantity of package
in this basket. This is not the total quantity of overall items in the basket.
2
The type of payment, either single
for one-time payments or subscription
.
"single"
An array of payment destination objects describing how the purchase should be split between multiple wallets. Only available with pre-agreement from Tebex.
"some_wallet_reference"
A float (decimal) value representing the amount of this payment in your account currency that is credited to the wallet_ref
0.5
A float (decimal) value representing the percentage of the gateway fee that should be dedicated from this wallet’s revenue share. This optional value can be anywhere between 0 - 100.
50
The links.payment
property is only returned if the basket has been paid for and a payment exists with the complete
,refund
, or chargeback
status.
"https://checkout.tebex.io/api/payments/tbx-12345"
The links.checkout
property is only returned if the basket has not been paid, and is the URL to send the customer to make payment
"https://checkout.tebex.io/checkout/1a-55fff4107740a1f40d844ff89607557f45bfafb3"
Applies a creator code to a basket.
The webstore identifier.
"t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb"
The basket identifier.
"c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c"
Provide a coupon_code
to apply to the basket.
"Academy10"
Successful response returns the basket.
244127617
"1a-55fff4107740a1f40d844ff89607557f45bfafb3"
false
"support@tebex.io"
"Academy10"
"0127 0244 7210 1111"
The creator code is used to share a percentage of the payment with another party. See more about creator codes at https://docs.tebex.io/creators/tebex-control-panel/engagement/creator-codes
"https://tebex.io"
false
A two-character country code
"US"
"127.0.0.1"
127244
1.27
0.11
1.38
A 3 character currency code
"USD"
The quantity of package
in this basket. This is not the total quantity of overall items in the basket.
2
The type of payment, either single
for one-time payments or subscription
.
"single"
An array of payment destination objects describing how the purchase should be split between multiple wallets. Only available with pre-agreement from Tebex.
"some_wallet_reference"
A float (decimal) value representing the amount of this payment in your account currency that is credited to the wallet_ref
0.5
A float (decimal) value representing the percentage of the gateway fee that should be dedicated from this wallet’s revenue share. This optional value can be anywhere between 0 - 100.
50
The links.payment
property is only returned if the basket has been paid for and a payment exists with the complete
,refund
, or chargeback
status.
"https://checkout.tebex.io/api/payments/tbx-12345"
The links.checkout
property is only returned if the basket has not been paid, and is the URL to send the customer to make payment
"https://checkout.tebex.io/checkout/1a-55fff4107740a1f40d844ff89607557f45bfafb3"
Applies a creator code to a basket.
The webstore identifier.
"t66x-7cd928b1e9312709e6810edac6dc1fd1eefc57cb"
The basket identifier.
"c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2c"
Provide a creator_code
to apply to the basket.
"Academy10"
Successful response returns the basket.
244127617
"1a-55fff4107740a1f40d844ff89607557f45bfafb3"
false
"support@tebex.io"
"Academy10"
"0127 0244 7210 1111"
The creator code is used to share a percentage of the payment with another party. See more about creator codes at https://docs.tebex.io/creators/tebex-control-panel/engagement/creator-codes
"https://tebex.io"
false
A two-character country code
"US"
"127.0.0.1"
127244
1.27
0.11
1.38
A 3 character currency code
"USD"
The quantity of package
in this basket. This is not the total quantity of overall items in the basket.
2
The type of payment, either single
for one-time payments or subscription
.
"single"
An array of payment destination objects describing how the purchase should be split between multiple wallets. Only available with pre-agreement from Tebex.
"some_wallet_reference"
A float (decimal) value representing the amount of this payment in your account currency that is credited to the wallet_ref
0.5
A float (decimal) value representing the percentage of the gateway fee that should be dedicated from this wallet’s revenue share. This optional value can be anywhere between 0 - 100.
50
The links.payment
property is only returned if the basket has been paid for and a payment exists with the complete
,refund
, or chargeback
status.
"https://checkout.tebex.io/api/payments/tbx-12345"
The links.checkout
property is only returned if the basket has not been paid, and is the URL to send the customer to make payment
"https://checkout.tebex.io/checkout/1a-55fff4107740a1f40d844ff89607557f45bfafb3"