curl --request POST \
--url https://api.onepay.la/v1/payments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-idempotency: <x-idempotency>' \
--data '
{
"amount": 123,
"title": "<string>",
"currency": "<string>",
"phone": "<string>",
"email": "<string>",
"reference": "<string>",
"tax": 123,
"external_id": "<string>",
"description": "<string>",
"document_url": "<string>",
"expiration_date": "<string>",
"schedule_at": "<string>",
"metadata": {},
"redirect_url": "<string>",
"splits": [
{
"customer_id": "<string>",
"account_id": "<string>",
"split_type": "<string>",
"split_value": "<string>",
"description": "<string>",
"schedule_at": "<string>",
"process": "<string>",
"to_company_wallet": true
}
],
"allows": {
"cards": true,
"accounts": true,
"card_extra": true,
"realtime": true,
"pse": true,
"transfiya": true
}
}
'