Desarrolladores
Cómo usar la API
Endpoint para registrar un cargo en el sistema de OnePay.
cURL
curl --request POST \ --url https://api.onepay.la/v1/charges/pse \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-idempotency: <x-idempotency>' \ --data '{ "customer_id": "<string>", "amount": 123, "bank_id": "<string>", "external_id": "<string>", "redirect_url": "<string>" }'
{ "id": "9e184fda-62bb-477b-9020-fa59f44f2b99", "url": "https://s.onepay.la/short/lxNKQp2je8" }
Was this page helpful?