Desarrolladores
Cómo usar la API
Genera un link de pago para un convenio.
cURL
curl --request POST \ --url https://api.onepay.la/v1/utilities/links \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-idempotency: <x-idempotency>' \ --data '{ "reference": "<string>", "amount": 123, "redirect_url": "<string>", "customer": { "first_name": "<string>", "last_name": "<string>", "email": "<string>", "phone": "<string>", "document_type": "<string>", "document_number": "<string>" } }'
{ "id": "d7e214b7-75c1-427f-a810-4e4a4fb01cd4", "redirect_url": "https://pagos.onepay.la/payment/d7e214b7-75c1-427f-a810-4e4a4fb01cd4" }
Was this page helpful?