Authorizations
An API key that grants access to the Connect API. You can create and manage API keys in the portal.
Headers
A unique key to ensure idempotency of requests. If a request with the same key has already been processed, the same result will be returned. The key must be unique for each distinct operation. Keys are expired after 24 hours, but we recommend using a new key for each request.
Modified requests with the same idempotency keys are rejected with a 409 Conflict
status code.
256
Body
Payment link creation request.
Request to create a new payment link for processing payment for an order or invoice. Either orderId or invoiceId must be provided, not both.
The unique identifier of the order to create a payment link for. Either orderId or invoiceId must be provided, not both.
"f47ac10b-58cc-4372-a567-0e02b2c3d479"
The unique identifier of the invoice to create a payment link for. Either orderId or invoiceId must be provided, not both.
"123e4567-e89b-12d3-a456-426614174000"
You can add the previously saved payment method to prefill in the payment details.
"6ba7b810-9dad-11d1-80b4-00c04fd430c8"
Whether to save the payment profile for future use. Only applicable if the customer is authenticated or for the initial order. Defaults to false.
true
Whether to set the payment method as the default for future payments. Only applicable if savePaymentProfile is true and the customer is authenticated or for the initial order. Defaults to false.
false
Optional description to display on the payment page.
"Payment for Telness mobile subscription"
URL to redirect customers to after successful payment.
"https://your-domain.com/success"
URL to redirect customers to if they cancel the payment.
"https://your-domain.com/cancel"
A set of key-value pairs that can be attached to an object for storing additional information in a semi-structured format.
Response
Payment link created successfully.
A hosted payment link created from a payment intent that can be shared with customers.
Unique identifier for the payment link.
"j47ac10b-58cc-4372-a567-0e02b2c3d479"
The shareable URL for the payment link.
"https://checkout.yourapp.com/pay/j47ac10b-58cc-4372-a567-0e02b2c3d479"
Current status of the payment link.
ACTIVE
, EXPIRED
, COMPLETED
, CANCELLED
When the payment link was created.
"2024-01-15T10:00:00Z"
When the payment link was last updated.
"2024-01-15T10:00:00Z"
Optional description for the payment link.
"Pay your monthly subscription"
ID of the completed payment (if status is completed).
"k47ac10b-58cc-4372-a567-0e02b2c3d479"
When the payment link expires.
"2024-12-31T23:59:59Z"
When the payment was completed (if status is completed).
"2024-01-15T14:30:00Z"
A set of key-value pairs that can be attached to an object for storing additional information in a semi-structured format.