Create Bulk Purchase

This function is used to create a set of Purchases for a Customer. By default, the Purchases will be added in Draft status and must be finalized before it charges against the Customer account. Optionally, you can set these purchases to auto-finalize and purchase immediately.

Note, the Purchases key/value is a nested list which allows you to post any number of purchases as its own list.

Query Params
boolean

Set to true to simulate creating the purchases and show resulting simulated draft invoices.

Body Params
int32
required

This is the ID of the Customer making the purchases

boolean

This flag determines if the system should enter the Purchases as Draft Purchases or if the system should auto finalize the Purchases and charge for them immediately. If set to True, Fusebill will auto finalize the Purchases. If set to False, the Purchases will be added to the Customer in Draft mode.

purchases
array
required

This is a list of Purchases which the Customer is attempting to make.

purchases*
invoiceCollectOptions
object

This can be used to provide special invoice collection instructions for the invoice which may be generated if autoPurchase is true

Responses

Language
Credentials
Header
LoadingLoading…
Response
Choose an example:
application/json