curl --request POST \
--url https://api.fintoc.com/v1/payment_links \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 5000,
"currency": "CLP",
"max_completed_sessions": 1
}
'{
"id": "plink_K2zwNNSxPyx8w3GZ",
"object": "payment_link",
"amount": 5000,
"checkout": {
"description": "Premium subscription"
},
"created_at": "2024-04-04T15:23:11.474Z",
"currency": "CLP",
"customer_email": "customer@example.com",
"expires_at": null,
"max_completed_sessions": null,
"metadata": {
"order_id": "1234"
},
"mode": "live",
"recipient_account": null,
"status": "active",
"url": "https://pay.fintoc.com/plink_K2zwNNSxPyx8w3GZ"
}Create a payment link
Creates a payment link in the live or test mode of the API key used. The response includes the url of the page where your customer pays. Set max_completed_sessions to 1 to close the link after one successful payment. Otherwise, the link is reusable. You can also cancel the link or set expires_after_seconds to limit how long the link accepts payments.
curl --request POST \
--url https://api.fintoc.com/v1/payment_links \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 5000,
"currency": "CLP",
"max_completed_sessions": 1
}
'{
"id": "plink_K2zwNNSxPyx8w3GZ",
"object": "payment_link",
"amount": 5000,
"checkout": {
"description": "Premium subscription"
},
"created_at": "2024-04-04T15:23:11.474Z",
"currency": "CLP",
"customer_email": "customer@example.com",
"expires_at": null,
"max_completed_sessions": null,
"metadata": {
"order_id": "1234"
},
"mode": "live",
"recipient_account": null,
"status": "active",
"url": "https://pay.fintoc.com/plink_K2zwNNSxPyx8w3GZ"
}Cuerpo
Required if your organization uses the Fintoc Reconciles schema without a default pool account. Destination bank account for the payments collected with the link. Available only in Chile. Do not send it if your organization uses Fintoc Collects, where Fintoc presets the account for you.
Show child attributes
Show child attributes
Respuesta
Payment link created. Share the returned url with your customer to collect the payment.
Status of the payment link. One of active (accepts payments), expired (the expiration date passed), canceled (you canceled the link), or completed (the link reached its maximum number of completed sessions).
active, expired, canceled, completed "active"
¿Esta página le ayudó?