Create Unique Payment Link
Changed onRequest
- Base URLhttps://api.conekta.io
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Use for knowing which language to use
In the case of a holding company, the company id of the child company to which will process the request.
Unique key to make the request idempotent. Retrying a request with the same key returns the original response instead of performing the operation again.
Request body
Example request
{
"allowed_payment_methods": [
"cash",
"card",
"bank_transfer",
"bnpl",
"pay_by_bank"
],
"excluded_payment_methods": [
"cash",
"bank_transfer"
],
"exclude_card_networks": [
"visa_master_card"
],
"expires_at": 1680397724,
"monthly_installments_enabled": true,
"monthly_installments_options": [
3,
6,
12
],
"name": "Payment Link Name 1594138857",
"on_demand_enabled": true,
"plan_ids": [
"plan_123",
"plan_456"
],
"order_template": {
"currency": "MXN",
"customer_info": {
"name": "DevTest",
"email": "test@conekta.com",
"phone": "5522997233",
"object": "customer_info"
},
"line_items": [
{
"antifraud_info": {
"key": "value"
},
"brand": "Cohiba",
"description": "Imported From Mex.",
"metadata": {
"key": "value"
},
"name": "Box of Cohiba S1s",
"quantity": 1,
"sku": "XYZ12345",
"tags": [
"food",
"mexican food"
],
"unit_price": 20000
}
],
"metadata": {
"key": "value"
},
"tax_lines": [
{
"amount": 100,
"description": "testing",
"metadata": {
"key": "value"
}
}
],
"discount_lines": [
{
"amount": 500,
"code": "123",
"type": "loyalty"
}
]
},
"payments_limit_count": 5,
"redirection_time": 30,
"success_url": "https://www.conekta.com/success",
"type": "PaymentLink"
}Response
successful operation
Example response
{
"allowed_payment_methods": [
"cash",
"card",
"bank_transfer",
"bnpl",
"pay_by_bank"
],
"excluded_payment_methods": [
"cash",
"bank_transfer"
],
"plan_ids": [
"plan_123",
"plan_456"
],
"exclude_card_networks": [
"visa",
"amex"
],
"expires_at": 1680397724,
"failure_url": "https://pay.conekta.com/failure",
"id": "b0bf16c4-18b9-445e-ba24-01604f329dbf",
"livemode": true,
"metadata": {
"key": "value"
},
"monthly_installments_options": [
3,
6,
12
],
"name": "Payment Link Name 1594138857",
"object": "checkout",
"payments_limit_count": 5,
"redirection_time": 30,
"slug": "b0bf16c418b9445eba2401604f329dbf",
"starts_at": 1677650400,
"status": "Issued",
"success_url": "https://pay.conekta.com/success",
"type": "PaymentLink",
"url": "https://pay.conekta.com/link/b0bf16c418b9445eba2401604f329dbf"
}Changes
- breaking
request property
was restricted to a list of enum values - breaking
the request property
became not nullable - breaking
removed the enum value
mastercardof the request property/ - breaking
removed the enum value
visaof the request property/ - breaking
the
///request property's maxLength was decreased to249 - breaking
the
///request property's minItems was increased to1 - breaking
the
///request property's minLength was increased from0to2 - breaking
the
///request property's minLength was increased from0to3 - breaking
the
///request property's minLength was increased from0to3 - breaking
the
///request property's minLength was increased from0to1 - breaking
the
////request property's minLength was increased from0to2 - breaking
the
///request property's minLength was increased from2to3 - warning
the
///request property's maxLength was set to249 - warning
the
///request property's maxLength was set to249 - warning
the
///request property's maxLength was set to249 - warning
the
////request property's maxLength was set to249 - warning
removed the optional property
from the response with the status - info
added the new optional
headerrequest parameterIdempotency-Key - info
added the new optional request property
- info
added the new
not_strictenum value to the request property - info
added the new
smartenum value to the request property - info
added the new
strictenum value to the request property - info
added the new
visa_master_cardenum value to the request property/ - info
added the optional property
to the response with the status
- breaking