PUT
/
v1
/
organizations
/
{organizationId}
/
contracts
/
{contractId}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-site-context
string
required

The x-site-context header is a JSON object that contains information about the source you wish to pull from. The mandatory account is the 24 character identifier found in Copilot. The channel (Sales channel ID), stage (environment name), and date attributes can be used to further narrow the scope of your data source.

Path Parameters

organizationId
string
required

Fabric internal id of the record.

contractId
string
required

Fabric internal id of the record or contract id.

Body

application/json
startDate
string

start date of the contract. It should be lower that the end date.

endDate
string

end date of the contract. It should be after the start date.

status
enum<string>

status

Available options:
ACTIVE,
DRAFT,
INACTIVE
contractType
string

contract type

priceListId
integer

price list id to create a relationship priceList-contract if sent.

additionalAttributes
object

Contains all additional attributes not captured in the schema.

Response

200 - application/json
_id
string
required

Fabric internal id of the record

contractId
string
required

contract id. It must have 2 or more characters.

partyId
string
required

Fabric internal id for party

status
enum<string>
required

status

Available options:
ACTIVE,
DRAFT,
INACTIVE
startDate
string
required

start date of the contract. It should be lower that the end date.

endDate
string
required

end date of the contract. It should be after the start date.

onContract
boolean
required

on contract flag. The default value is false.

promotionStacking
boolean
required

promotion stacking flag. The default value is false.

isDeleted
boolean
required

flag that indicates if the record is deleted

createdAt
string
required

date of creation of the record

updatedAt
string
required

laste date of update of the record

addressId
string

Fabric internal id for address

accountId
string

Fabric internal id for account

contractType
string

contract type

additionalAttributes
object

Contains all additional attributes not captured in the schema.

contractPriceList
object

this relationship we'll be created only if priceListId was sent in the request body