curl --request POST \
--url https://sandbox-platform.jupico.com/v1/query/checkouts \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://sandbox-platform.jupico.com/v1/query/checkouts"
payload = {}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://sandbox-platform.jupico.com/v1/query/checkouts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://sandbox-platform.jupico.com/v1/query/checkouts';
const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"success": true,
"code": "<string>",
"count": 123,
"data": [
{
"spProductId": "<string>",
"subMerchantId": "<string>",
"checkoutId": "<string>",
"items": [
{
"amount": 123,
"quantity": 123,
"description": "<string>"
}
],
"totalModifiers": [
{
"amount": 123,
"description": "<string>",
"type": "<string>"
}
],
"totalAmount": 123,
"description": "<string>",
"status": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"hostedSession": {
"hostedSessionId": "<string>",
"url": "<string>"
}
}
],
"query": {
"criteria": {},
"options": {}
}
}List checkout sessions
Returns checkout sessions, both active and past, with their configuration and status.
curl --request POST \
--url https://sandbox-platform.jupico.com/v1/query/checkouts \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://sandbox-platform.jupico.com/v1/query/checkouts"
payload = {}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://sandbox-platform.jupico.com/v1/query/checkouts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://sandbox-platform.jupico.com/v1/query/checkouts';
const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"success": true,
"code": "<string>",
"count": 123,
"data": [
{
"spProductId": "<string>",
"subMerchantId": "<string>",
"checkoutId": "<string>",
"items": [
{
"amount": 123,
"quantity": 123,
"description": "<string>"
}
],
"totalModifiers": [
{
"amount": 123,
"description": "<string>",
"type": "<string>"
}
],
"totalAmount": 123,
"description": "<string>",
"status": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"hostedSession": {
"hostedSessionId": "<string>",
"url": "<string>"
}
}
],
"query": {
"criteria": {},
"options": {}
}
}Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
The body is of type object.
Response
Find Checkouts
Whether the request was processed successfully. Declines return HTTP 200 with success: false.
Machine-readable result code. See the Error Codes reference.
Number of records.
The response payload.
Hide child attributes
Hide child attributes
Identifier of the Service Provider product the merchant belongs to.
Unique identifier of the submerchant.
Unique identifier of the checkout session.
The total amount.
Free-text description.
Current status.
Timestamp when the object was created (ISO 8601).
Timestamp when the object was last updated (ISO 8601).
Was this page helpful?

