Skip to main content
POST
https://api.us.pointpair.com/v1
/
payment_session
Create New Payment Session
curl --request POST \
  --url https://api.us.pointpair.com/v1/payment_session \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "order_amount": 123,
  "metadata": {}
}
'
{
  "id": "<string>",
  "payment_session_url": "<string>"
}

Body

order_amount
number
required
Amount intended to be collected by this payment for the customer and to calculate their cash points. A positive floating point representing how much to charge. Minimum order amount is 5.00 in the respective currency.
metadata
object
Optional metadata to pass if needed as a JSON object.

Response

id
string
Unique identifier for the payment session.
payment_session_url
string
The payment session url which you need to redirect your customer to process the payment and for them to earn their cash points.