Developer API

Build your own flow on top of Cuotra.

Use API keys, signed webhooks and app connections to link Cuotra with your own website, booking system or back office.

You only need this for a custom system. WooCommerce and Zapier connect without a key.

What you can do

Plans and payments, from your own code.

A REST API with clear errors and pagination, and webhooks so you don’t have to keep asking.

  • Read your dataPlans, customers, enrollments and payments, with pagination.
  • Create customers and linksAdd customers and create checkout links locked to an order’s amount and customer.
  • Have Cuotra email the linkSend a checkout link in your branding, with an optional personal message.
  • Refund and cancelWith the Read, write and refunds permission, for systems you fully trust.
  • Test and live kept apartcuotra_test_ keys only see test data, and cuotra_live_ keys only see live data.
  • Keys you controlRoll a key right away if it may have leaked. The owner and admins are emailed each time.

Get started

Your first request in minutes.

You need to be an owner or admin to create keys.

  • 1
    Create a keyGo to Settings → Integrations → API keys and click Create key. Name it after the system that uses it.
  • 2
    Choose a permissionRead only, Read and write, or Read, write and refunds. Use the lowest one that works.
  • 3
    Copy it onceThe key is shown only once. Cuotra stores a hash, so nobody can show it again.
  • 4
    Call the APISend it in the Authorization header, from your server, never from a browser or app.

Webhooks

Signed events you can trust.

Get an event the moment something happens in Cuotra, and check it really came from us.

  • Seven eventsPlan started, completed or cancelled, payment succeeded or failed, refund created and dispute created.
  • Signed and timestampedCheck the Cuotra-Signature header with HMAC-SHA256, and refuse anything older than 5 minutes.
  • Retried for about 3 daysIf your server is down. Missed events stay available from the events endpoint for 30 days.
  • Send a test eventTry your endpoint with sample data first. Up to 5 webhooks in each mode.

Developer questions

Questions about the API.

Do I need an API key?

Only for your own website or system. WooCommerce and Zapier connect without one. See API keys and your first request.

Which permission should my key have?

The lowest one that works. Read and write covers creating customers and checkout links. Only use Read, write and refunds for a system you fully trust, because it can refund payments and cancel plans.

Why does a request return "not found" for a record I can see?

Test keys only see test data, and live keys only see live data. Check the key matches the mode of the record.

Can I have Cuotra email a checkout link?

Yes. Add `"send_email": true` when you create the link. See API endpoints.

How do I stop a retry doing something twice?

Send an `Idempotency-Key` header on each POST. See Requests, errors and pagination.

What happens if my webhook is down?

Cuotra retries for about 3 days. If every attempt fails, the webhook is switched off and the owner and admins are emailed. Events stay available from `GET /events` for 30 days. See Webhooks.

Which API keys can refund a payment?

Keys with the Read, write and refunds permission. A key's permission is set when you create it, so create a new key with that permission.

How long does a payment link work?

It depends on the link.

A plan's own link works for as long as the plan is published. Share it as often as you like: every customer who pays through it gets their own schedule.

A Send payment link made for one WooCommerce order works for 24 hours, and only for that order and customer, so a changed or cancelled order can't be paid later. If it runs out, click Send payment link again. Sending a new one closes the old one, so an order can't be paid twice.

A checkout link from Zapier or the developer API works for 24 hours unless you choose a time from 1 hour to 7 days when you create it.

More questions? See all FAQs or .

Early access

Be among the first to experience Cuotra.

Get early access and we'll email your invite before Cuotra opens to all businesses.

  • 15 daysfree once Stripe is connected
  • 2%per successful payment
  • $0monthly fee

Only your invite and launch news. Unsubscribe any time. See our Privacy Policy.

Get early access