Create a payment session
cURL
One time minimal request
curl --request POST \ --url https://api.momentco.io/collect/payment_sessions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: <idempotency-key>' \ --data '{ "amount": 200, "currency": "ZAR" }'
201
One time PS response
{ "id": "ps_kfAWZgfQIoeG0q", "type": "one_time", "amount": 50, "currency": "ZAR", "status": "active", "payment_status": "unpaid", "checkout_session_id": "ckt802zEb2P2uS4Ql", "session_url": "https://moment.dev.momentpay.io/checkout/ckt802zEb2P2uS4Ql", "return_url": null, "mode": "live", "created_at": "2025-03-18T14:06:51.149Z", "updated_at": "2025-03-18T14:06:51.149Z"}
1 - 255
one_time
first_in_series
next_in_series
Show child attributes
always
never
prompt
255
active
completed
expired
cancelled
paid
unpaid
live
test
Was this page helpful?