Edit existing Sale

In this case you must specify the id in the URL and change the data you wanna update

Path Params
string
required

id of the Sale that need to be updated

Body Params

Object data that need to be updated

string
required
string
required
length between 3 and 30
date-time
required
integer
required
string
required
integer
string
boolean
boolean
number
string
integer
string
boolean
string
length between 0 and 16
date-time

Delivering date

string
string
e_invoice
object
string

this param can be used by external integration that needs to save a unique id associated with the sale

boolean
string | null
string
string
string
string
price_changes
array of objects
price_changes
integer
Defaults to 0
number
string
sale_customer
object
integer

used by Tilby's app to know the sales count and order

integer

it is used if this sales come from another sale. Can happen in payment split for example

string

it is used if this sales come from another sale. Can happen in payment split for example

string
number
number
sent_exits
object
string
number
string
length ≤ 25
number

Sum of price * quantity + discount/surcharges of all sale_items

number

Payment change (also known as 'resto'). This will be set by the app when the sale will be closed. It's calculated if the sum of payments is greater than final_amount of the sale

string
enum

It is "cash" when there are cash payments in the array of payments.
it is "ticket" when there are tickets and no cash payments in the array of payments.
it is "other" when there are no cash or tickets in the payments.

Allowed:
date-time

Closing (or Storing) date

number

Sum of price * quantity + discount/surcharges of all sale_items + discount/surcharges on amount

number

Sum of final_price * quantity of all sale_items

date-time
integer
integer

it is used if the order is sent to cash registry

string
enum
Defaults to normal

it is used if the order is sent to cash registry

Allowed:
string

it is used if the order is sent to cash registry

payments
array of objects
payments
sale_documents
array of objects
sale_documents
sale_items
array of objects
sale_items
string

Tilby Pass Shop ID

string
enum
required

Sale status, can be open, closed or stored

Allowed:
string

must be unique

Responses

404

Order not found

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