Skip to Content
SaaSFlow
DevelopersAPIReferencetransactions

Link stripe invoices

Book one or more Stripe invoices onto the transaction that paid them, taking the service period, tax split and customer from each invoice instead of the…

Authentication

Checking whether you're signed in…
POST
/companies/{companyId}/transactions/link_stripe_invoices

Authorization

headerAuthorization<token>

A SaaSFlow API key (format sf_…) or an OAuth bearer token. Paste only the key — the proxy adds the Bearer prefix. Create an API key in Settings → Company settings → API keys — see API keys.

Path Parameters

companyId*string
Formatuuid

Request Body

application/json
  1. body
transactionId*string
Length1 <= length
stripeAccountId*string
Length1 <= length
stripeInvoiceIds*array<>
Items1 <= items

Response Body

Invoices linked

application/json
  1. response
createdByInvoice*
uncovered*number
covered*boolean
skipped*array<>
Example Request
curl -X POST 'https://api.saasflow.com/companies/497f6eca-6276-4993-bfeb-53cbbbba6f08/transactions/link_stripe_invoices' \  -H 'Content-Type: application/json' \  -d '{  "transactionId": "string",  "stripeAccountId": "string",  "stripeInvoiceIds": [    "string"  ]}'
Example Response
{  "createdByInvoice": {    "property1": 0,    "property2": 0  },  "uncovered": 0,  "covered": true,  "skipped": [    {      "stripeInvoiceId": "string",      "reason": "string"    }  ]}