curl --request POST \
--url https://api.onepay.la/v1/connect-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-idempotency: <x-idempotency>' \
--data '
{
"customer_id": "<string>",
"single_use": true,
"notify": true,
"allows": {
"cards": true,
"accounts": true,
"wallets": true,
"card_extra": true,
"realtime": true,
"pse": true,
"full_extra": true,
"pse_debit": true,
"breb": true
},
"external_id": "<string>",
"redirect_url": "<string>",
"metadata": {}
}
'{
"id": "9e92f61e-e90f-4fbb-a551-080fd4fb4f6f",
"customer_id": "9957858a-c2f1-4f18-a5c2-216b4127e278",
"single_use": false,
"visits": 0,
"completed": 0,
"external_id": "31231231231",
"allows": {
"cards": true,
"accounts": true,
"card_extra": false,
"realtime": false,
"pse": true,
"transfiya": true
},
"created_at": "2025-04-01T20:45:16.000000Z",
"updated_at": "2025-04-01T20:45:16.000000Z",
"url": "https://pagos.onepay.la/connect-link/9e92f61e-e90f-4fbb-a551-080fd4fb4f6f"
}
Crea un nuevo link de captura, para que el cliente pueda registrar su información de pago.
curl --request POST \
--url https://api.onepay.la/v1/connect-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-idempotency: <x-idempotency>' \
--data '
{
"customer_id": "<string>",
"single_use": true,
"notify": true,
"allows": {
"cards": true,
"accounts": true,
"wallets": true,
"card_extra": true,
"realtime": true,
"pse": true,
"full_extra": true,
"pse_debit": true,
"breb": true
},
"external_id": "<string>",
"redirect_url": "<string>",
"metadata": {}
}
'{
"id": "9e92f61e-e90f-4fbb-a551-080fd4fb4f6f",
"customer_id": "9957858a-c2f1-4f18-a5c2-216b4127e278",
"single_use": false,
"visits": 0,
"completed": 0,
"external_id": "31231231231",
"allows": {
"cards": true,
"accounts": true,
"card_extra": false,
"realtime": false,
"pse": true,
"transfiya": true
},
"created_at": "2025-04-01T20:45:16.000000Z",
"updated_at": "2025-04-01T20:45:16.000000Z",
"url": "https://pagos.onepay.la/connect-link/9e92f61e-e90f-4fbb-a551-080fd4fb4f6f"
}
Show properties
{
"id": "9e92f61e-e90f-4fbb-a551-080fd4fb4f6f",
"customer_id": "9957858a-c2f1-4f18-a5c2-216b4127e278",
"single_use": false,
"visits": 0,
"completed": 0,
"external_id": "31231231231",
"allows": {
"cards": true,
"accounts": true,
"card_extra": false,
"realtime": false,
"pse": true,
"transfiya": true
},
"created_at": "2025-04-01T20:45:16.000000Z",
"updated_at": "2025-04-01T20:45:16.000000Z",
"url": "https://pagos.onepay.la/connect-link/9e92f61e-e90f-4fbb-a551-080fd4fb4f6f"
}
Was this page helpful?