curl -X GET 'https://api.stateset.com/v1/checkouts?status=ready_for_payment&limit=10' \
-H "Authorization: Bearer YOUR_API_KEY"
{
"data": [
{
"id": "checkout_abc123",
"buyer": {
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"phone_number": "+1234567890"
},
"status": "ready_for_payment",
"currency": "usd",
"line_items": [
{
"id": "item_123",
"item": {
"id": "item_123",
"quantity": 2
},
"base_amount": 2000,
"discount": 0,
"total": 2000,
"subtotal": 2000,
"tax": 0
}
],
"totals": [
{
"type": "total",
"display_text": "Total",
"amount": 2250
}
],
"created_at": "2024-09-30T10:00:00Z",
"updated_at": "2024-09-30T10:05:00Z"
},
{
"id": "checkout_def456",
"buyer": {
"first_name": "Jane",
"last_name": "Smith",
"email": "[email protected]"
},
"status": "ready_for_payment",
"currency": "usd",
"line_items": [
{
"id": "item_789",
"item": {
"id": "item_789",
"quantity": 1
},
"base_amount": 5000,
"discount": 500,
"total": 4500,
"subtotal": 4500,
"tax": 0
}
],
"totals": [
{
"type": "total",
"display_text": "Total",
"amount": 4800
}
],
"created_at": "2024-09-30T09:30:00Z",
"updated_at": "2024-09-30T09:35:00Z"
}
],
"has_more": false,
"total_count": 2
}
Retrieve a list of checkout sessions with optional filters
curl -X GET 'https://api.stateset.com/v1/checkouts?status=ready_for_payment&limit=10' \
-H "Authorization: Bearer YOUR_API_KEY"
{
"data": [
{
"id": "checkout_abc123",
"buyer": {
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"phone_number": "+1234567890"
},
"status": "ready_for_payment",
"currency": "usd",
"line_items": [
{
"id": "item_123",
"item": {
"id": "item_123",
"quantity": 2
},
"base_amount": 2000,
"discount": 0,
"total": 2000,
"subtotal": 2000,
"tax": 0
}
],
"totals": [
{
"type": "total",
"display_text": "Total",
"amount": 2250
}
],
"created_at": "2024-09-30T10:00:00Z",
"updated_at": "2024-09-30T10:05:00Z"
},
{
"id": "checkout_def456",
"buyer": {
"first_name": "Jane",
"last_name": "Smith",
"email": "[email protected]"
},
"status": "ready_for_payment",
"currency": "usd",
"line_items": [
{
"id": "item_789",
"item": {
"id": "item_789",
"quantity": 1
},
"base_amount": 5000,
"discount": 500,
"total": 4500,
"subtotal": 4500,
"tax": 0
}
],
"totals": [
{
"type": "total",
"display_text": "Total",
"amount": 4800
}
],
"created_at": "2024-09-30T09:30:00Z",
"updated_at": "2024-09-30T09:35:00Z"
}
],
"has_more": false,
"total_count": 2
}
checkouts:read permissions.
Authorization: Bearer YOUR_API_KEY
not_ready_for_payment, ready_for_payment, completed, canceled, in_progresscurl -X GET 'https://api.stateset.com/v1/checkouts?status=ready_for_payment&limit=10' \
-H "Authorization: Bearer YOUR_API_KEY"
{
"data": [
{
"id": "checkout_abc123",
"buyer": {
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"phone_number": "+1234567890"
},
"status": "ready_for_payment",
"currency": "usd",
"line_items": [
{
"id": "item_123",
"item": {
"id": "item_123",
"quantity": 2
},
"base_amount": 2000,
"discount": 0,
"total": 2000,
"subtotal": 2000,
"tax": 0
}
],
"totals": [
{
"type": "total",
"display_text": "Total",
"amount": 2250
}
],
"created_at": "2024-09-30T10:00:00Z",
"updated_at": "2024-09-30T10:05:00Z"
},
{
"id": "checkout_def456",
"buyer": {
"first_name": "Jane",
"last_name": "Smith",
"email": "[email protected]"
},
"status": "ready_for_payment",
"currency": "usd",
"line_items": [
{
"id": "item_789",
"item": {
"id": "item_789",
"quantity": 1
},
"base_amount": 5000,
"discount": 500,
"total": 4500,
"subtotal": 4500,
"tax": 0
}
],
"totals": [
{
"type": "total",
"display_text": "Total",
"amount": 4800
}
],
"created_at": "2024-09-30T09:30:00Z",
"updated_at": "2024-09-30T09:35:00Z"
}
],
"has_more": false,
"total_count": 2
}