Skip to main content

Trigger an action for a contract

POST 

/contracts/action

Trigger an action for a contract

Request

Body

required

Contract data

    configuration

    object

    action_id ContractActionEnum (string)required

    Possible values: [activate, enrol, cancel, renew, resume, suspend, terminate, update_imei, withdraw]

    Contract Action

    market_id stringrequired
    callback_url string

    Callback URL to be called when the action is completed

    payload

    object

    This payload will change based on the action

    oneOf

    contract_id string

    Contract ID

Responses

Successful operation

Schema

    contract_id string

    Contract ID

    status StatusContractEnum (string)

    Possible values: [Canceled, Draft, Expired, Finished, In_progress, Pending, Suspended]

    Contract status Enum

Loading...