Build payment flows with verifiable records

Create a payment with one API call, send the customer to Checkout and update the order when a signed webhook arrives.

Payments API TLY Pay
POST /v1/payments
Idempotency-Key: ORDER-EXAMPLE-1048
{
  "order_ref": "ORDER-EXAMPLE-1048",
  "source_amount": {
    "kind": "fiat",
    "currency": "USD",
    "amount_raw": "12800"
  }
}
200 OK
"payment_id": "c1234567890abcdefghijo"
"status": "open"

Signed webhook

payment.updated

Payment
c1234567890abcdefghijo
Order
ORDER-EXAMPLE-1048
Result
Verified

Simulated data

Direct integration

What your backend handles

Your server creates payments and listens for updates. Checkout, blockchain monitoring and confirmation tracking run on TLY Pay.

Retry without duplicates

Reuse the same idempotency key when retrying a payment request, and you get the original payment back instead of a duplicate.

Trust only signed updates

Verify each webhook signature before updating an order. If a webhook does not arrive, fetch the latest payment status from the API.

API docs and AI support

Read the reference, or hand it to your AI tool

The TLY Pay API reference covers endpoints, fields and webhook signatures.

TLY Pay API reference

Build a custom integration with Hosted or Embedded Checkout. Read the setup steps, website requirements, code examples and TLY Pay API reference.

Open API docs

Use the docs with your AI coding tool

Paste this prompt into your AI coding tool.

Read https://api-docs.tlypay.com/llms.txt and follow its links for the TLY Pay API documentation. Help me integrate Payments and verify signed Webhooks using the documented endpoints and fields.

    Integration flow

    Create it once. Verify every update.

    One payment ID ties the request, the webhook and the order together, so every update can be traced.

    Create a PaymentPOST
    /v1/payments
    
    Authorization: Bearer tly_example
    Idempotency-Key: ORDER-EXAMPLE-1048
    
    {
      "order_ref": "ORDER-EXAMPLE-1048",
      "source_amount": {
        "kind": "fiat",
        "currency": "USD",
        "amount_raw": "12800"
      }
    }
    Payment status

    Verify the webhook signature, then fetch the latest status before updating the order.

    Payment
    c1234567890abcdefghijo
    Verify the Webhook
    payment.updated
    Query the record
    Latest payment status
    Reconciliation
    Linked to the order

    Build with records you can verify

    Sign up free, generate an API key and create your first payment.