Digitail API
Sales

Change Sale state

1min
PUT
https://developer.digitail.io/api/v1/sale/{id}/change-edit-state
Sandbox server (uses test data)

Permissions needed: any of (CREATE_CHECKUPS, EDIT_CHECKUPS, CREATE_EDIT_COUNTER_SALE, SELL_SERVICES); sometimes REOPEN_SALE Change just the Sale's edit state

Authentication
Bearer
Path Parameters
id
*
Body Parameters
body
*
edit_state
Responses
200
successful operation
data
400
The request was invalid or contained data that was not allowed.
message
401
The authorization token is missing or invalid.
403
The user is not authorized to perform the requested operation.
422
Bad request
Example
{"message":"The given data was invalid.","errors":{"edit_state":["This value is invalid"]}}
429
The user has sent too many requests in a given amount of time ("rate limiting"). Max 200 requests per minute.