Baskets
Fetch a basket by its identifier
Gets the basket associated with the provided identifier.
get/baskets/{ident}
Path parameters
identstring required
Example:1a-55fff4107740a1f40d844ff89607557f45bfafb3
The basket identifier.
Response
Successful response returns the basket.
The links.payment property is only returned if the basket has been paid for, and a payment exist with the complete/refund/chargeback status.
The links.checkout property is only returned if the basket has not been paid, and is the URL to send the customer to in order to complete payment.
Example response
{
"ident": "1a-55fff4107740a1f40d844ff89607557f45bfafb3",
"expire": "2022-10-25 15:15:40",
"price": 1.27,
"priceDetails": {
"fullPrice": 1.4,
"subTotal": 1.27,
"discounts": [],
"total": 1.4,
"surcharges": [],
"tax": 0.13,
"balance": 0,
"sales": [],
"giftcards": [],
"roundUp": null
},
"address": {
"name": "Ted Tebex",
"first_name": "Ted",
"last_name": "Tebex",
"address": "37 Broadhurst Gardens, London, United Kingdom, NW6 3QT",
"email": "example@tebex.io",
"state_id": null,
"country": "UK",
"postal_code": "NW6 3QT"
},
"rows": [
{
"id": 173125385,
"basket": 725572301,
"quantity": 2,
"price": 1.27,
"meta": {
"name": "1000 Gold",
"rowprice": 2.54,
"initialprice": 1.27,
"requiredPackages": [],
"allowsGiftCards": true,
"servers": [],
"deliverableTypes": [],
"hasSellerProtection": true,
"revenue_share": [],
"realprice": 1.27
}
}
],
"cancel_url": "https://tebex.io",
"custom": {
"foo": "bar",
"ref": 1234
},
"links": {
"payment": "https://checkout.tebex.io/api/payments/tbx-12345",
"checkout": "https://checkout.tebex.io/checkout/1a-55fff4107740a1f40d844ff89607557f45bfafb3"
}
}