Payment Link
Create Payment Link
Creates a Payment Link: a shareable URL that lets your customer pay without you building a custom checkout. Configure the link type, allowed payment methods, and expiration. The request also includes an order_template (currency and line items) used to generate an Order when the customer completes a payment. Use recurrent=false for a single-use link, or recurrent=true to allow multiple payments (limited by payments_limit_count).
post/checkouts
Headers
Accept-Language'es' | 'en'
Use for knowing which language to use
X-Child-Company-Idstring
In the case of a holding company, the company id of the child company to which will process the request.
Request body
Example request
{
"name": "Payment Link Name",
"type": "PaymentLink",
"allowed_payment_methods": [
"cash"
],
"starts_at": 1680224924,
"expires_at": 1680397724,
"order_template": {
"currency": "MXN",
"customer_info": {
"customer_id": "cus_23874283647",
"name": "DevTest",
"email": "test@femsa.com",
"phone": "5522997233"
},
"line_items": [
{
"name": "Box of Cohiba",
"unit_price": 20000,
"quantity": 1,
"sku": "XYZ12345",
"brand": "Cohiba",
"description": "Imported From Mex.",
"metadata": {
"key": "value"
}
}
],
"metadata": {
"key": "value"
}
}
}Response
successful operation