Payment processing and transaction endpoints
Endpoints
4 routesActive selection
/api/payments/stripe?customer_id=cus_123
Prefilled in the playground CTA below.
Sample request
1const payload = {2 "example": "payload"3}4fetch('https://fakeapifordevs.vercel.app/api/payments/stripe?customer_id=cus_123&page=1&per_page=5&delay=1', {5 method: 'GET',6 headers: { 'Content-Type': 'application/json' }7})8 .then(res => res.json())9 .then(console.log)
Response contract
All list responses include pagination + optional latency metadata.
1{2 "data": [3 {4 "id": "py_123-1",5 "amount": 4999,6 "currency": "usd",7 "status": "succeeded"8 },9 {10 "id": "py_123-2",11 "amount": 4999,12 "currency": "usd",13 "status": "succeeded"14 }15 ],16 "pagination": {17 "page": 1,18 "perPage": 5,19 "total": 42,20 "totalPages": 921 },22 "meta": {23 "delayMs": 024 }25}
Query controls
Every collection endpoint accepts the following parameters.
page
1-indexed page number. Defaults to 1.
per_page
Number of records per page. Defaults to 10, max 50.
delay
Simulate latency in seconds (max 10s).
Integration checklist
page and per_page for cursor-free pagination.delay to simulate client-side loading states.pagination + meta.delayMs in responses./api/payments.Playground shortcut
Test this request directly from the landing page playground.
Open playgroundhttps://fakeapifordevs.vercel.app/api/payments/stripe?customer_id=cus_123&page=1&per_page=5&delay=1
Need more domains?
Explore 14+ prebuilt industries covering auth, finance, HR, healthcare, and more.
Keep these docs online
Coffee donations help us keep Payments accurate and add bonus sample responses.