Create Document

Create a new document type.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

docType should be one of: {invoice, salesreceipt, creditnote, salesorder, proform, waybill,estimate, purchase, purchaseorder or purchaserefund}

Body Params
boolean

Contact defaults are applied by default. If you don't want to apply it, set this field to false

string

(NIF / CIF / VAT) Field required if you want to choose an existing contact and contactId field is empty

string

(Contact ID) Field required if you want to choose an existing contact and contactCode field is empty

string

Field required if contactCode and contactId fields are empty and you want to create a new contact

string
string
string
string
string
string
string
integer
required
string
string

Set an existing account id

string
string
string
string

Choose the warehouse for your salesorder, purchaseorder or waybill.

boolean

Choose if the document needs to be approved or not. The default option is False.

items
array of objects
items
customFields
array of objects
customFields
string
string
string
number
tags
array of strings
tags
integer
string
string
string
string
string
number
string

When specified, triggers automatic payment collection via the given direct debit provider. Requires a valid paymentMethodId matching an active connection for that provider, and the invoice contact must have an active mandate.

Response

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json