Payment Lifecycle API

Authorize, capture, refund and dispute synthetic payments. Isolated educational simulation; no real payment or reservation is made.

Base URL: https://funapi.dev/api/payments/v1 · 7 endpoints · OpenAPI 3.1 spec and Postman collection available. New here? Read the getting started guide.

lifecycle

State transitions and recovery

A synthetic payment processor: authorize an amount in minor units, capture it once, then refund or dispute it. The event log exposes duplicate and reversed delivery envelopes so a consumer can practise deduplication without charging a card or contacting an external payment provider.

What you can practise here

Example request and response

GET https://funapi.dev/api/payments/v1/payments — List synthetic payments. No token, no signup:

curl -i https://funapi.dev/api/payments/v1/payments

Response: 200 OK

{
  "data": []
}

Open and run this endpoint

All 55 mock REST APIs

Use this response elsewhere

Last updated