Gen-Endpoint
Back to API List

Payment Processing API

E-commerce
3 Endpoints

Handle payment flows, refunds, and transaction history with multiple payment methods.

Internal API - Hosted by this App
API Endpoints & Usage
Explore and interact with the available endpoints for the Payment Processing API. These API routes are live!
POST

/api/payments/process

Process payment. Simulates async gateway interaction.

Try it out
POST

/api/payments/{paymentId}/refund

Process full or partial refund for a payment. Replace {paymentId} with an actual transaction ID.

Try it out

Replace placeholders (e.g., {userId}) with actual values in the path above.

GET

/api/payments/history

Get payment transaction history. Supports filtering by userId (as customerId), status, orderId, and pagination.

Try it out

You can add or change query parameters in the path above (e.g., ?name=User).

    Payment Processing API - Free Public API | Gen-Endpoint