Payment Intents
GET
/v2/payment_intentsAuth requiredList payment intents
Returns the payment intents across all stores on your account, or for one store.
Results are paginated with limit and offset and ordered by intent ID, not by creation time. List entries do not include quotes, amount_due or provisional_paid_amount. Use Get a payment intent for those.
Requires Bearer token authentication. Include Authorization: Bearer YOUR_API_KEY in the request header.
Query Parameters
store_idintegerOnly return intents for this store. Must be one of your stores.
limitintegerdefault: 200Maximum number of intents to return. Values outside 1–500 are clamped.
offsetintegerdefault: 0Number of intents to skip
Responses
store_idquery · integerOnly return intents for this store. Must be one of your stores.
limitquery · integerMaximum number of intents to return. Values outside 1–500 are clamped.
offsetquery · integerNumber of intents to skip
Response will appear here
Request
curl -X GET \
"https://www.blockonomics.co/api/v2/payment_intents?store_id=%7Bvalue%7D&limit=%7Bvalue%7D" \
-H "Authorization: Bearer YOUR_API_KEY"const response = await fetch('https://www.blockonomics.co/api/v2/payment_intents?store_id=%7Bvalue%7D&limit=%7Bvalue%7D', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
})
const data = await response.json()
console.log(data)import requests
headers = {
"Authorization": "Bearer YOUR_API_KEY"
}
response = requests.get(
"https://www.blockonomics.co/api/v2/payment_intents?store_id=%7Bvalue%7D&limit=%7Bvalue%7D",
headers=headers
)
print(response.json())Response
{
"data": [
{
"id": "d5e88bd4-2964-4554-9a81-ab64c391d174",
"store_id": 1243,
"amount": 1000,
"currency": "USD",
"status": "unpaid",
"paid_amount": 0,
"extra_data": "order-1042"
}
]
}