TuxoPay Docs
APIPayment flows

Initiate payment with flow

Initiate a payment using a configured payment flow with customer data and custom redirect URLs

POST
/payment-flows/initiate
Authorization<token>

Enter token in format (Bearer )

In: header

flow_namestring
amountnumber
Formatfloat
currencystring
Lengthlength <= 3
description?string
return_url?string
Formaturl
webhook_endpoint?string
Formaturl
cancel_url?string
Formaturl
first_visit_redirect_url?string
Formaturl
subsequent_visit_redirect_url?string
Formaturl
customer?object
items?array<object>
metadata?object

Empty Object

Response Body

curl -X POST "https://orchestrator.tuxopay.com/api/payment-flows/initiate" \  -H "Content-Type: application/json" \  -d '{    "flow_name": "default_blackpay",    "amount": 49.99,    "currency": "USD"  }'
{
  "success": true,
  "data": {
    "flow_result": {},
    "payment_result": {
      "success": true,
      "payment_id": 123,
      "redirect_url": "string",
      "payment_session_id": "abc123def456",
      "expires_at": "2019-08-24T14:15:22Z",
      "provider": "blackpay"
    },
    "attempts": 1
  }
}
{
  "success": false,
  "error": "string"
}