Remit API

Send invoices from your own billing system to your customer portal at paidyet.cloud, and find out when they're paid. You keep your system of record; Remit handles presentment, payment, reminders and reporting.

Base URL
https://paidyet.cloud/api/v1
Auth
Bearer <merchant API key>
Format
JSON, UTF-8
Money
Integer cents, USD
Dates
YYYY-MM-DD

Create, list, read and void invoices, send pro-forma invoices and convert them when the work is done, record cash and check payments you take yourself, list payments and customers, and read or change your invoicing settings. Payment events reach you by webhook. Your customers see everything at https://paidyet.cloud/{your-slug}.

Authentication

Every request carries your merchant API key as a bearer token. An owner generates it at paidyet.cloud/merchant under Developers. The key is shown once; generating a new one stops the old one immediately.

Header
Authorization: Bearer pyb_live_3f9c…
Two different keys. This merchant API key lets your billing system talk to Remit. Your PaidYET API key (sandbox or production) is what actually processes payments; you enter it under Payments in merchant settings and never send it in API calls. Keep both on your server, never in browser code.

Quick start

Create one invoice. The customer is created (or matched by external_id) on the way in, the email you give gets portal access, and an email with a pay link goes out.

curl
curl https://paidyet.cloud/api/v1/invoices \
  -H "Authorization: Bearer $REMIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "customer": { "external_id": "CUST-8841", "name": "Vega Properties LLC", "email": "ap@vegaproperties.com" },
    "number": "HP-2026-0418",
    "issued_on": "2026-11-01",
    "due_on": "2026-12-01",
    "terms": "net_30",
    "line_items": [
      { "description": "Monthly grounds maintenance (Nov)", "quantity": 3, "unit": "property",
        "unit_amount": 82500, "category": "Maintenance", "tags": { "property": "All properties" } }
    ]
  }'

The response is the invoice object, including url (the invoice in the portal) and pay_url (a signed link to pay this one invoice: the customer signs in, or pays as a guest).

Invoices

POST/invoices

Creates an invoice and returns 201 with the invoice object. Invoice numbers are unique per merchant; sending a number that already exists returns 409, so retries are safe.

FieldDescription
customerrequiredobjectWho is billed. Matched by external_id; created the first time.
customer.external_idrequiredstringYour customer number, e.g. CUST-8841.
customer.namerequiredstringCompany or person name shown on the invoice.
customer.emailstringGets portal access if not already on the account. The first person on an account becomes its Owner; later ones get Can pay. Also used for the billing email.
customer.contact_namestringName for that person.
customer.addressobjectline1, line2, city, state, postal_code. Used only when the customer is first created. The postal code is what guest payers verify with.
typestringinvoice (default) or proforma, an advance bill. See Pro-forma invoices for what changes.
numberrequiredstringYour invoice number, as the customer sees it. Optional for a pro-forma: leave it out and it gets the next number in your pro-forma series (PF-0001, PF-0002, ...).
issued_onrequireddateIssue date.
due_onrequireddateDue date. Drives reminders, past-due notices and autopay. Optional for a pro-forma: it defaults to issued_on plus the terms (30 days for net_30), or to issued_on itself; when you convert it, the invoice is due as many days after its issue date.
valid_untildatePro-forma only. The last day the customer can pay it. Afterwards it shows as Expired and you get invoice.expired.
advance_paymentstringPro-forma only. What the customer can pay up front: full, deposit (the deposit, or the full amount) or any (any amount). Defaults to the setting under Customer portal in the console.
deposit_percentnumberPro-forma with advance_payment: "deposit": the deposit as a percent of the total, 1 to 99. Defaults to the console setting.
line_itemsrequiredarrayAt least one item; fields below.
descriptionstringInvoice title. Defaults to the first line's description.
subtitlestringShort second line in the invoice list, e.g. 3 properties · irrigation repair.
termsstringdue_on_receipt, net_7, net_10, net_15, net_30, net_45, net_60, or your own text.
taxintegerTotal tax in cents, added to the line total. Default 0. Prefer line_items[].tax; if you only send this, it's split across the lines in proportion to their amounts so each line shows its share. If you send both, they must match.
memostringNote shown on the invoice.
allow_partialbooleanWhether the customer may pay part of it. Default true. Your merchant-wide setting must also allow partial payments.
tagsobjectInvoice-level tags. Every line inherits them and can override them.
attachmentsarray[{ "url": "https://…/HP-2026-0418.pdf" }]. The first https URL becomes the invoice's Download attachment link; without one, the customer gets a PDF generated from the invoice.
metadataobjectAnything you want back later. metadata.po shows as "Your PO" on the invoice.
currencystringOnly usd.

Line items

FieldDescription
descriptionrequiredstringWhat was billed.
unit_amountrequiredintegerPrice per unit in cents. Must be an integer: 82500 is $825.00.
taxintegerTax on this line in cents, e.g. 5280 for 8.25% of $640.00. Shown as a Tax sub-line under the item; the invoice's total tax is the sum of these. Leave it out on untaxed lines.
quantitynumberDefault 1. Decimals allowed (e.g. hours).
unitstringShown after the rate, e.g. / day. job and ea are not shown.
detailstringSmaller second line under the description.
categorystringOne of your categories, in any case: maintenance is stored as your Maintenance. Rejected if it isn't in the list (once you have a list). Without a list, the first spelling you send is the one kept.
tagsobjectValues for your tag keys, e.g. { "property": "Vermont Ave" }. Keys are case-insensitive and stored lowercase (Property becomes property). Values match case-insensitively too: once Vermont Ave is used, VERMONT AVE is stored as Vermont Ave. A value that starts with All (like All properties) counts for every value of that tag when customers filter.
Full request body
{
  "customer": {
    "external_id": "CUST-8841", "name": "Vega Properties LLC",
    "email": "marisol@vegaproperties.com", "contact_name": "Marisol Vega",
    "address": { "line1": "1420 W Redondo Beach Blvd", "line2": "Suite 210",
                 "city": "Gardena", "state": "CA", "postal_code": "90247" }
  },
  "number": "HP-2026-0417",
  "description": "October grounds maintenance",
  "subtitle": "3 properties · irrigation repair",
  "issued_on": "2026-10-01", "due_on": "2026-10-31", "terms": "net_30",
  "line_items": [
    { "description": "Monthly grounds maintenance (Oct)", "quantity": 3, "unit": "property",
      "unit_amount": 82500, "category": "Maintenance",
      "tags": { "property": "All properties", "crew": "R. Okafor" } },
    { "description": "Irrigation repair", "detail": "Replaced zone 4 valve and controller",
      "quantity": 1, "unit": "job", "unit_amount": 64000, "category": "Repairs",
      "tags": { "property": "Redondo Beach Blvd", "crew": "J. Castillo" } }
  ],
  "memo": "Thank you. PO 2026-114 referenced.",
  "allow_partial": true,
  "attachments": [{ "url": "https://files.harborpine.com/HP-2026-0417.pdf" }],
  "metadata": { "po": "2026-114", "erp_ref": "QB-99210" }
}

GET/invoices

Lists your invoices, newest issued first, up to 200. Use it to reconcile, or as a backstop for webhooks you may have missed.

QueryDescription
statusstringopen (anything still owed), paid, or all (default).
sincedateOnly invoices issued on or after this date, or with a payment on or after it.
typestringinvoice, proforma, or all (default). Converted pro-formas are listed with status converted.
Request
curl "https://paidyet.cloud/api/v1/invoices?status=paid&since=2026-10-01" \
  -H "Authorization: Bearer $REMIT_API_KEY"
Response 200
{ "data": [ { "id": "inv_7Hq2", "number": "HP-2026-0417", "status": "paid", … } ] }

The invoice object

Response 201
{
  "id": "inv_7Hq2",
  "number": "HP-2026-0417",
  "type": "invoice",
  "status": "open",
  "display_status": "Open",
  "issued_on": "2026-10-01",
  "due_on": "2026-10-31",
  "amount_total": 311500,
  "amount_paid": 0,
  "amount_due": 311500,
  "amount_scheduled": 0,
  "last_paid_on": null,
  "url": "https://paidyet.cloud/harbor/invoices/HP-2026-0417",
  "pay_url": "https://paidyet.cloud/i/inv_7Hq2.Wr92PCZ2_QL9XT-Rafi3r9l4",
  "metadata": { "po": "2026-114", "erp_ref": "QB-99210" },
  "converted_from": null
}
FieldMeaning
typeinvoice or proforma.
statusopen, partially_paid, paid or void (voided in the console or through the API; it can't be paid). A pro-forma can also be expired (past valid_until) or converted (it became an invoice). Bank payments count as paid while they settle; if the bank returns one, you get payment.returned and the balance reopens.
display_statusWhat the customer sees: Open, Due today, Due in 5d, Partially paid, Overdue 3d, Paid or Voided. For a pro-forma: Pro-forma, Deposit paid, Partially paid, Paid, Expired or Converted.
valid_until, advance_payment, deposit_percent, deposit_due, converted_toPro-forma only. deposit_due is the deposit still to pay, in cents (0 once it's paid, or when the rule isn't deposit). converted_to is the number of the invoice it became.
converted_fromInvoices only: the pro-forma it came from, or null.
amount_scheduledCents the customer has scheduled for a future date. Not yet paid.
posted_amount_total, posted_amount_dueWith the cash discount: the posted (card) total and balance. amount_* are always in your submitted amounts, so your receivables reconcile to what you invoiced. Without it, posted equals submitted.
cash_discount{ "percent", "tax_base", "discount" } fixed on the invoice when it was issued (discount = posted subtotal minus submitted subtotal), or null. Payments in webhooks carry amountCents (charged), postedAmountCents, cashDiscountCents and tender (card, ach, cash or check).
urlThe invoice in the portal (the customer signs in).
pay_urlSigned link to pay this one invoice. It opens sign-in with the invoice shown on top; signing in goes straight to paying it, and "Pay as guest" (when guest pay is on) pays without an account. Safe to put in your own emails.

GET/invoices/{number}

One invoice by your invoice number, voided ones included. The invoice object plus customer (external_id, name, email) and payments: every payment applied to it, in the same shape as the payment in webhook events (allocations shows how much went to each invoice). Unknown numbers return 404.

Request
curl https://paidyet.cloud/api/v1/invoices/HP-2026-0417 \
  -H "Authorization: Bearer $REMIT_API_KEY"

POST/invoices/{number}/void

Voids an invoice you canceled or credited in your own system. It leaves the customer's balance, can't be paid, and any payment the customer scheduled for it is canceled. You get invoice.voided and the invoice object back. An invoice with payments on it returns 409: reverse those payments in the console under Transactions first. Voiding twice returns 409.

Request
curl -X POST https://paidyet.cloud/api/v1/invoices/HP-2026-0417/void \
  -H "Authorization: Bearer $REMIT_API_KEY"

POST/invoices/{number}/payments

Records a cash or check payment you took outside the portal, so the customer's balance matches your books. Returns 201 with the invoice object (and its payments), and sends the usual invoice.paid or invoice.partially_paid webhook. Card and bank payments can't be recorded here: customers make them in the portal.

FieldDescription
amountrequiredintegerCents credited to the invoice, up to what it still owes (in your submitted amounts). More returns 422.
tenderstringcash (default) or check. With the cash discount on, the payment carries cashDiscountCents like a bank payment.
recorded_bystringShown as "Recorded by ..." in the console, e.g. your system's name or a staff member. Default your billing system.
Request
curl https://paidyet.cloud/api/v1/invoices/HP-2026-0417/payments \
  -H "Authorization: Bearer $REMIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "amount": 100000, "tender": "check", "recorded_by": "Front desk" }'

Pro-forma invoices

A pro-forma is an advance bill: what the work will cost, sent before it's done so the customer can approve it, raise a PO or pay up front. Create one with "type": "proforma" on POST /invoices. It differs from an invoice in these ways:

  • Its own numbers. Leave out number and it gets the next one in your pro-forma series (PF-0001, PF-0002, ...), separate from your invoice numbers.
  • Never owed or overdue. No reminders, past-due notices, autopay or monthly statements, and it's left out of balances (amount_due on customers, the portal's Balance due, the console's Outstanding).
  • Paid up front, under your rule. advance_payment decides what the customer can pay: full, deposit (the deposit_percent deposit, or the full amount) or any amount. Payments are made now, not scheduled, and payment plans and fast pay don't apply. You get invoice.paid or invoice.partially_paid as usual, with data.invoice.type set to proforma.
  • Valid until a date. After valid_until it can't be paid, shows as Expired, and you get invoice.expired (your billing email gets a note too). You can still convert or void it.
  • Labeled for the customer. The email, portal page and PDF all say "Pro-forma invoice" and that the final invoice follows.
Request
curl https://paidyet.cloud/api/v1/invoices \
  -H "Authorization: Bearer $REMIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "proforma",
    "customer": { "external_id": "CUST-7740", "name": "Torrance Medical Plaza", "email": "facilities@torrancemed.com" },
    "description": "Parking structure planter rebuild",
    "issued_on": "2026-11-06",
    "valid_until": "2026-12-06",
    "advance_payment": "deposit",
    "deposit_percent": 50,
    "line_items": [ { "description": "Drought-tolerant replanting", "unit_amount": 184000, "category": "Planting" } ]
  }'
Response 201 (excerpt)
{ "number": "PF-0001", "type": "proforma", "status": "open", "display_status": "Pro-forma",
  "amount_total": 184000, "valid_until": "2026-12-06", "advance_payment": "deposit",
  "deposit_percent": 50, "deposit_due": 92000, "converted_to": null, ... }

Voiding works as for an invoice, and you can record cash or check payments on it. In the console, pro-formas have their own tab under Invoices.

POST/invoices/{number}/convert

Turns a pro-forma into an invoice when the work is done. The invoice takes the pro-forma's customer, lines, prices and everything paid on it, so a deposit or prepayment counts toward it. The customer is emailed the invoice, and from then on it's owed like any other: reminders, past-due notices and autopay apply. The pro-forma closes with status converted and converted_to set, and its pay link opens the invoice. Returns 201 with the new invoice object (converted_from set) plus refunds. Converting twice, or converting an invoice, returns 409.

FieldDescription
numberstringThe invoice's number. Default: the next in your invoice series (your newest invoice number, counted up by one). An existing number returns 409.
issued_ondateDefault today.
due_ondateDefault: as many days after issued_on as the pro-forma's due_on was after its issue date.
termsstringDefault the pro-forma's terms.
line_items, taxarray, integerThe final amounts, when they differ from the pro-forma. Same fields and rules as creating an invoice. Default: the pro-forma's lines.

When the invoice comes to less than was prepaid, the difference is refunded, newest payment first. Card and bank payments are refunded through PaidYET; the payment stands, its refundedCents shows what went back, and it's credited to the invoice only up to the new total. A part of a payment can only be refunded once it has settled, so converting for less returns 409 on the day of a card payment, or while a bank payment is still settling: convert the next business day, or keep the total at least what was prepaid. Cash and check aren't refunded by the processor: refunds[].by_processor is false and you hand the money back.

Request
curl https://paidyet.cloud/api/v1/invoices/PF-0001/convert \
  -H "Authorization: Bearer $REMIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "number": "HP-2026-0901", "due_on": "2026-12-15" }'
Response 201 (excerpt)
{ "number": "HP-2026-0901", "type": "invoice", "status": "partially_paid", "converted_from": "PF-0001",
  "amount_total": 184000, "amount_paid": 92000, "amount_due": 92000,
  "refunds": [], ... }

Each refund in refunds is { "payment": "PY-7KQ2MX", "tender": "card", "amount": 8000, "by_processor": true }, in the payment's own prices (a card refund includes the card price under the cash discount). The console's Convert to invoice keeps the pro-forma's lines; convert through the API to change the amounts.

Payments

GET/payments

Every payment, newest first, in the same shape as the payment in webhook events: portal, guest, autopay, plan installments, scheduled ones still to run, and cash or check. Use it to reconcile, or to catch up after missed webhooks.

QueryDescription
sincedateOnly payments made, paid, settled or reversed on or after this date.
statusstringOnly payments with this status, e.g. succeeded, pending (bank payment settling) or scheduled.
Response 200
{ "data": [ { "confirmation": "PY-7KQ2MX", "amountCents": 100000, "tender": "card", "status": "succeeded",
    "allocations": [ { "invoiceId": "inv_7Hq2", "number": "HP-2026-0417", "amountCents": 100000 } ], ... } ] }

Customers

Customers are created by POST /invoices and keyed by your external_id.

GET/customers GET/customers/{external_id}

Each customer with name, email, address, invoice_count, open_invoice_count, amount_due (cents, voided invoices and pro-formas left out) and portal_url. One customer also lists contacts: the people who can sign in, with email, name, role (owner, pay or view) and status.

Response 200
{ "external_id": "CUST-8841", "name": "Vega Properties LLC", "email": "ap@vegaproperties.com",
  "invoice_count": 6, "open_invoice_count": 2, "amount_due": 411500,
  "portal_url": "https://paidyet.cloud/harbor", "contacts": [ ... ] }

Invoicing settings

GET/invoicing/settings PUT/invoicing/settings

Define your categories and tag keys once, before sending invoices that use them. Each tag becomes a filter and a spend breakdown for your customers: a landscaper might use property and crew, a law firm matter, a school student. The same settings are editable at paidyet.cloud/merchant. PUT changes only the fields you send and returns the full settings.

FieldDescription
categoriesstring[]Service types allowed on line items. Replaces the whole list, so send every category you want to keep. Entries that differ only by case count once.
tagsobject[]{ key, label, plural }. Added to your existing tags; tags you don't send are kept. Sending a key you already have updates its label or plural in place. To delete one, send { "key": "crew", "remove": true }. Keys are letters, numbers and underscores, starting with a letter, and are stored lowercase. plural defaults to the label plus "s".
guest_paybooleanPay without signing in (pay links and invoice-number lookup).
partial_paymentsbooleanAllow paying part of a balance.
scheduled_paymentsbooleanAllow choosing a future payment date.
autopaybooleanOffer autopay to customers.
payment_methodsstring[]card, ach, or both.
remindersobjectPayment reminders on a schedule: { "enabled": true, "every": 1, "unit": "weeks" }. unit is days, weeks or months, counted from when the invoice was sent, until it's paid; at most 7 per invoice. Customers who turned reminders off in their notification settings don't get them.
cash_discountobjectCash discount, markup style: { "enabled": true, "percent": 3.000, "tax_base": "posted", "disclosure": "A discount is applied to all cash purchases. Posted prices reflect card payment." }. The amounts you submit are the cash prices and are stored exactly. Customers see posted prices everywhere: each unit price × (1 + percent), rounded half up, with tax on the posted price (tax_base: "cash" keeps your tax as submitted). Card pays the posted total. Bank (ACH) and cash or check you record pay your submitted total, and the difference is the cash discount. The rate is fixed on each invoice when it's issued, so changing it affects new invoices only. percent takes up to 3 decimals.
tech_chargeobjectTech platform charge on every payment: { "enabled": true, "type": "percent", "percent": 2.5 } or { "enabled": true, "type": "flat", "amount_cents": 250 }. Added to each payment's total (each plan installment too), never to the invoice, and the invoice is credited only its own amount. Like the cash discount, it's fixed on each invoice when it's issued, so changing it affects new invoices only. A payment's techChargeCents shows it in webhooks. tech_charge and cash_discount are one or the other: turning one on turns the other off, and enabling both in one request returns 422.
fast_payobjectEarly payment discount: { "enabled": true, "discount_percent": 2, "within": 48, "unit": "hours" }. unit is hours, days or weeks, counted from when the invoice was sent. While it's open, customers paying the invoice in full see the discounted amount with a countdown; afterwards the option is gone. The invoice is credited in full; the payment's discountCents shows the discount in webhooks. Fields you leave out keep their value.
payment_plansobjectLet customers split an invoice into installments: { "enabled": true, "installments": [4, 6], "interval": "month", "fee_percent": 20, "min_amount": 10000 }. installments are the counts offered (2–24); interval is week, 2weeks or month; fee_percent is added to the invoice and split across the installments ($100 at 20% in 4 = 4 × $30); min_amount is in cents. The first installment is charged right away and the rest automatically. The invoice is credited the principal only; each payment's feeCents and plan (installment, of) appear in webhook payloads. Fields you leave out keep their value.
webhook_urlstringhttps URL for webhooks. Empty string removes it.
webhook_secretstring, read-onlyCreated the first time you set a webhook URL. Use it to verify signatures.
Request
curl -X PUT https://paidyet.cloud/api/v1/invoicing/settings \
  -H "Authorization: Bearer $REMIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "categories": ["Maintenance", "Repairs", "Tree care", "Planting"],
    "tags": [ { "key": "property", "label": "Property", "plural": "Properties" },
              { "key": "crew", "label": "Crew lead", "plural": "Crew leads" } ],
    "webhook_url": "https://billing.harborpine.com/hooks/paidyet"
  }'
Later: add a tag, remove another (property is kept)
curl -X PUT https://paidyet.cloud/api/v1/invoicing/settings \
  -H "Authorization: Bearer $REMIT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "tags": [ { "key": "job_site", "label": "Job site" },
                { "key": "crew", "remove": true } ] }'

Webhooks

When something happens to a payment, Remit sends a JSON POST to your webhook_url. Mark the invoice paid in your own system from invoice.paid, and reopen it on payment.returned, payment.voided or payment.refunded.

Delivery. Each event is sent once, with a 3-second timeout, and is not retried. Respond with any 2xx quickly and do your work afterwards. To catch anything missed, poll GET /invoices?since=… on a schedule.

Events

invoice.paidAn invoice's balance reached zero. Sent per invoice, so a payment across three invoices sends up to three events.
invoice.partially_paidA payment was applied but a balance remains.
payment.scheduledThe customer scheduled a payment for a future date. Nothing is charged yet.
payment.settledA bank (ACH) payment settled.
payment.returnedA bank payment was returned. The invoice's balance is owed again.
payment.voidedYour staff reversed a payment from the merchant console while PaidYET's batch was still open, so it was voided and never settles. data.invoices_voided lists any invoices voided in the same step; the others are owed again.
payment.refundedSame, after the batch had closed: PaidYET refunded the full amount. Same invoices_voided field.
invoice.voidedAn invoice was voided from the merchant console, either directly or while reversing its payment. It no longer shows in the customer's portal and can't be paid.
invoice.convertedA pro-forma became an invoice. data.proforma and data.invoice (id, number, amount_total, amount_paid, amount_due), and data.refunds (payment, amount, tender) when the invoice came to less than was prepaid.
invoice.expiredA pro-forma passed its valid_until date without being paid in full. The customer can no longer pay it; convert, void or reissue it.
invoice.paid
{
  "id": "evt_5b1f0c2a9d7e4f31",
  "type": "invoice.paid",
  "created": 1793145600,
  "merchant": "harbor",
  "data": {
    "invoice": { "id": "inv_7Hq2", "number": "HP-2026-0417", "amount_due": 0, "amount_paid": 311500 },
    "payment": {
      "id": 42, "confirmation": "PY-U72FRE", "amountCents": 311500,
      "methodType": "ach", "methodLabel": "Business checking ·· 8820",
      "status": "pending", "paidOn": "2026-10-28", "settlesOn": "2026-10-30",
      "scheduledFor": null, "source": "portal", "failureReason": null,
      "allocations": [ { "invoiceId": "inv_7Hq2", "number": "HP-2026-0417", "amountCents": 311500 } ]
    }
  }
}

data.invoice.type is invoice or proforma on invoice.paid and invoice.partially_paid. The payment object uses camelCase keys; refundedCents is any part given back when a pro-forma's invoice came to less than was prepaid. status is succeeded (card), pending (bank payment settling), scheduled, returned or failed. source is portal, guest or autopay. allocations shows how one charge was split across invoices.

Verify signatures

Every request has a PaidYET-Signature header: t=<unix time>,v1=<hex>. Compute HMAC-SHA256 of t + "." + raw request body with your webhook_secret and compare it to v1. Use the raw body exactly as received, before any JSON parsing, and reject timestamps more than 5 minutes old.

Node.js
import crypto from 'node:crypto';

export function verifyPaidYet(rawBody, header, secret) {
  const parts = Object.fromEntries(header.split(',').map((p) => p.split('=')));
  if (Math.abs(Date.now() / 1000 - Number(parts.t)) > 300) return false;
  const expected = crypto.createHmac('sha256', secret).update(`${parts.t}.${rawBody}`).digest('hex');
  return parts.v1?.length === expected.length
    && crypto.timingSafeEqual(Buffer.from(parts.v1), Buffer.from(expected));
}
PHP
function verifyPaidYet(string $rawBody, string $header, string $secret): bool
{
    parse_str(str_replace(',', '&', $header), $p);
    if (abs(time() - (int) ($p['t'] ?? 0)) > 300) return false;
    $expected = hash_hmac('sha256', $p['t'] . '.' . $rawBody, $secret);
    return hash_equals($expected, (string) ($p['v1'] ?? ''));
}

How payments work

  • Payments run through your own PaidYET account. Connect it at paidyet.cloud/merchant under Payments, with sandbox and/or production credentials, and choose which one is active.
  • Card numbers are entered in PaidYET's secure card form and never reach Remit or your systems. The form returns a token, which is charged with PaidYET's POST /v3/transaction.
  • Each charge appears in your PaidYET dashboard tied to the customer: its external_id is your customer number (the customer.external_id you sent), email is the payer, comments reads like ShoutYourName LLC (CUST-8844) · CALLIE-2026-0418 · PY-U72FRE, and custom_fields holds customer, customer_id, invoices, confirmation and source for searching. The confirmation matches the one in webhooks and receipts.
  • One charge can pay several invoices, in full or in part. Customers can also schedule payments and turn on autopay, if you allow those.
  • Bank (ACH) payments show as pending, count toward the balance right away, and settle in 1 to 3 business days.

Partner API

For ISOs, resellers and platforms that set up billing portals for many merchants. A partner creates a merchant in one call and gets back that merchant's API key, which then drives the invoice endpoints above.

Base URL
https://paidyet.cloud/api/partner/v1
Auth
Bearer <partner API key>

Partner keys start with pyb_partner_. PaidYET emails yours as a secure one-time link: opening it sends a code to the same address, and the key is shown once. Lost it? Ask support@paidyet.com for a new one (the old key stops working). A partner only ever sees the merchants it created. New here? Start with the getting started guide.

Three keys, three jobs. The partner key creates merchants. Each merchant's merchant API key (returned once when you create it) sends that merchant's invoices. The merchant's PaidYET API key processes their payments. Keep all of them on your server.

POST/merchants

Creates a merchant portal at https://paidyet.cloud/{slug} and returns 201 with the merchant and its api_key. The key is shown only in this response; store it. If you lose it, the merchant's owner can generate a new one under Developers.

FieldDescription
namerequiredstringBusiness name shown to customers.
slugstringThe portal address, paidyet.cloud/{slug}. 2-40 lowercase letters, numbers and single hyphens. Leave it out and one is made from the name (Acme Plumbing, LLC becomes acme-plumbing, or acme-plumbing-2 if taken). It can't be changed later, so pick carefully.
external_idstringYour id for this merchant. Returned on every read. Sending one you've already used returns 409 with the existing merchant, so retries are safe.
short_namestringShorter name for tight spots, e.g. Acme.
emailstringThe merchant's billing inbox. Customer questions and disputes go here.
phonestringShown on invoices.
addressstringOne line, shown on invoices.
timezonestringIANA name, e.g. America/Chicago. Decides what "today" means for due dates and reminders. Default America/Los_Angeles.
brand_colorstringHex color, e.g. #2E6B4F.
ownerobject{ "email", "name" }. This person becomes the merchant's owner and signs in at paidyet.cloud/merchant with a one-time code. No password.
send_welcome_emailbooleanDefault true: the owner gets a "Your billing portal is ready" email with a sign-in link. Send false to tell them yourself.
paidyetobjectOptional: connect the merchant's PaidYET account now. environment (sandbox or live, default sandbox), api_key, and paypage (required for live). The key is checked with PaidYET first; if PaidYET rejects it, nothing is created and you get 422. Leave it out and the owner connects PaidYET after signing in.
Request
curl -X POST https://paidyet.cloud/api/partner/v1/merchants \
  -H "Authorization: Bearer pyb_partner_8a1d…" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Sunrise Dental Group",
    "external_id": "acct_10442",
    "email": "billing@sunrisedental.com",
    "timezone": "America/Chicago",
    "owner": { "email": "maria@sunrisedental.com", "name": "Maria Lopez" },
    "paidyet": { "environment": "sandbox", "api_key": "…" }
  }'
Response 201
{
  "merchant": {
    "id": 58,
    "slug": "sunrise-dental-group",
    "external_id": "acct_10442",
    "name": "Sunrise Dental Group",
    "short_name": null,
    "email": "billing@sunrisedental.com",
    "phone": null,
    "address": null,
    "timezone": "America/Chicago",
    "brand_color": "#2E6B4F",
    "status": "active",
    "portal_url": "https://paidyet.cloud/sunrise-dental-group",
    "console_url": "https://paidyet.cloud/merchant/sunrise-dental-group",
    "owners": [ { "email": "maria@sunrisedental.com", "name": "Maria Lopez" } ],
    "paidyet": { "environment": "sandbox", "connected": true, "sandbox_connected": true, "live_connected": false },
    "created_at": "2026-10-21 14:50:40"
  },
  "api_key": "pyb_live_c41e…"
}

Then set the merchant's categories, tags and portal rules with PUT /api/v1/invoicing/settings using the returned api_key, and start sending invoices. PaidYET keys are never returned.

Validation errors return 422 (409 for a taken slug or a repeated external_id) with the field that failed: { "error": "\"acme\" is already taken.", "field": "slug" }.

GET/merchants GET/merchants/{slug}

The merchants you created, newest first, as { "merchants": [ … ] }, or one as { "merchant": { … } }. Use it to check whether the owner has connected PaidYET yet (paidyet.connected). A slug you didn't create returns 404.

GET/slugs?slug=&name=

Check a slug before you create the merchant, or get a suggestion from a business name. Either parameter works alone.

Request
curl "https://paidyet.cloud/api/partner/v1/slugs?slug=sunrise&name=Sunrise%20Dental%20Group" \
  -H "Authorization: Bearer pyb_partner_8a1d…"
Response 200
{ "slug": "sunrise", "available": false, "reason": "\"sunrise\" is already taken.", "suggestion": "sunrise-dental-group" }

Errors

Errors return a non-2xx status with a message you can show or log:

{ "error": "line_items[0].category \"Mowing\" is not one of your categories." }
StatusWhen
401Missing or invalid API key, or the key was replaced. The partner API only accepts partner keys; the merchant API only accepts merchant keys.
409An invoice with that number already exists. Partner API: the slug is taken or the external_id was already used.
422Validation: a required field is missing, a date isn't YYYY-MM-DD, unit_amount isn't an integer, or a category or tag key isn't defined in your settings.

Testing

  • Connect your sandbox PaidYET credentials and keep Payments on Sandbox while you build. Nothing is really charged.
  • Sandbox test card: 4000 1000 1111 2224, expiry 09/32, CVC 123, any 5-digit ZIP. Declined card: 4000 3006 1111 2224.
  • Sandbox bank account: routing 999999992, account 111111. ACH needs to be enabled on your PaidYET sandbox merchant.
  • Switch Payments to Production when you're ready for real charges. Your invoices, customers and API key stay the same.