API v1FiatPe Home
FiatPeDocs

Create Create Session

POSThttps://api.fiatpe.com/v1/orders/session//v1/orders/session/
Copy

Creates a new checkout session with the specified amount, currency, reference ID, and optional metadata. The response includes a unique session ID and a checkout URL where the customer can complete the payment. The checkout URL expires after 30 minutes and is returned only when the session is created.

Headers

Sent as Authorization: Basic base64(Api Key:Salt Key)

Body Parameters

return_urlstring

The URL to which the customer is redirected after the payment is completed, failed, or cancelled.

amount*integer

The total order amount in the smallest currency unit. For INR, enter the amount in paise. For example, ₹100.00 should be provided as 10000.

currency*string

The three-letter ISO currency code for the order amount. For example, use INR for Indian Rupees.

return_methodstring
POSTGET

The HTTP method used to redirect the customer to the return_url after the payment attempt. Supported values are GET and POST.

metadatajson object

A set of custom key-value pairs used to store additional information about the customer. You can provide up to 15 entries. Each key can contain 1–50 characters, and each value can contain up to 200 characters.

methodstring

Specifies the payment method for the order.