Manually add an invoice to a subscription. Can be used for manually billing an account.
const client = new OutsetaApiClient({ subdomain: 'test-company', apiKey: example_key, secretKey: example_secret }); const response = await client.billing.subscriptions.add({ "Subscription": { "Uid": "dQGxEz94" }, "InvoiceDate": new Date('12/29/2021'), "InvoiceLineItems": [ { "Description": "Example Item", "Amount": 50 } ] }); console.log(response);
Response If the server returns a non-"OK" status, the whole response object will be thrown.
The invoice to add to Outseta.
The response body if response status OK, or response body of validation errors if response status 400.
Generated using TypeDoc
Manually add an invoice to a subscription. Can be used for manually billing an account.
Response If the server returns a non-"OK" status, the whole response object will be thrown.