Update a purchase

Updates a Purchase object. Only purcahses with status draft are updated.

Path Params
string
required

The unique ID of the Purchase you want to update

Body Params
string

Closing date of this purchase

float
Defaults to 0

A positive number representing the amount or percentage of the discount

string
enum
Defaults to %

Can be $ or %. $ apply amount as discount. % apply percentage as discount.

Allowed:
string

The ID of the document type for this purchase should create.

date

The deadline for the purchase.

lines
array of objects

List of Purchase Line objects which represents the items for which this purchase is being charged.

lines
string

A simple text with a 100 characters as max length.

json

A freely usable key/value object. Useful for storing custom information.

int32
Defaults to 0

The specific number for this Purchase. If left at 0, the number will be automatically assigned according to the sequence.

string

ID of related Supplier object.

tax_settings
object

Fields used to define tax aspects specific to the different electronic invoicing regulations of each country.

boolean
Defaults to false

Determines whether the Purchase is for test use or not

Responses

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