Create a pay link without emailing it
POST/billing/transactions/:id/pay-link
Returns a card pay link for an accepted (approved) estimate or quote, for your own website or app to send the customer to. Partner Flow never emails or messages anyone for this call: the payment request is created unsent, and the invoice it may issue for the approved lines is issued without the customer’s “invoice ready” email. Use POST /billing/transactions/{id}/request-payment instead when you want Partner Flow to email the customer.
amount (a decimal string) collects part of the balance, e.g. a deposit; it defaults to the whole outstanding balance (send {} for the defaults). expiresInDays (1–30, default 30) sets when a new link stops taking payments. Calling again for the same transaction and amount while a link is still pending and unexpired returns that link (reused: true) instead of making another.
The payment is recorded on the transaction when the customer pays (as for an emailed link). Needs Stripe connected. Errors: 404 when the transaction is not your company’s; 409 NOT_APPROVED (the customer has not accepted it), NOTHING_DUE or STRIPE_NOT_CONNECTED; 400 INVALID_AMOUNT (zero, or more than the outstanding balance) or NO_CUSTOMER_EMAIL.
Scope: payment_links:create
Request
Responses
- 200
- 400
- 404
- 409
The pay link (new or reused).
Invalid body, INVALID_AMOUNT or NO_CUSTOMER_EMAIL.
Transaction not found for your company.
NOT_APPROVED, NOTHING_DUE or STRIPE_NOT_CONNECTED.