Update Sale

Update the product registered under the license_number provided.

SecurityApiKeyAuth and CustomAuth
Request
path Parameters
id
required
string

Reference (entity_ID) for the sale you are updating.

Example: 80d15c7713a74feeb4c1c5f533697644
state
required
string

Lower case ANSI standard 38:2009 USPS codes of the US state where licensee is operating.

Enum: "ca" "or" "nv" "mt" "co" "mi" "il" "ma" "ri" "nj" "md" "de" "va" "oh" "ky" "al" "ms" "mn" "la" "ok" "sd" "me"
header Parameters
x-api-key
required
string

Trace API key header

Example: b123x21wbHlkYXBpa2V5
Authorization
required
string

Company and user credentials authentication

Example: KMP-JSON token=dmVuZG9yLWFwaS1rZXk6dX12312sdfs2V5
Request Body schema: application/json
required
object (license_base)
actions
required
object

Specific action id from sales/actions for the update request. Note: different put requests require different structures.

price_change_date
required
string

time stamp in ISO 8601 UTC format representing the time the price change was made.

required
object

Trace currency id retrieved from sales/currency_types. Must match original sale currency.

required
Array of objects

Array of one or more lots in which you are attempting to update the price on for a particular sale.

Responses
200

OK

400

Bad Request

put/{state}/v1/sales/{id}
Request samples
application/json
{
  • "license": {
    },
  • "actions": {
    },
  • "price_change_date": "2021-05-21T20:29:19Z",
  • "currency": {
    },
  • "line_items": [
    ]
}
Response samples
application/json
{
  • "results": {
    },
  • "warnings": [ ]
}