Execute contract
POST {{backofficeURL}}/SolitxService/ContractService/contracts/execute?access_token={{useraccessToken}}&contractUUID={{contractUUID}}
The endpoint returns cashflows based on the contractUUID provided as a parameter. When a contract gets executed the ContractStatus will change from ''PreDeal' to 'performant'.
Each cashflow or event JSON consists of
- event time
- execution type
- Transaction: events that trigger a transaction
- ContractUpdate: events that trigger a (contract) state update
- status
- A business event can be in status
scheduled
,pending
, orprocessed
- A business event can be in status
- event type
- IP
- PR
- IED
- MD etc
event body (JSON)
- For ContractUpdate-type events, the following EventBody is created:
{
ContractID: [ Varchar ],
Terms: [ To update specific contract attribute in terms]
} - For transaction-type events, the following EventBody is created
{
Value
: [ event value ],
Units
: [ event currency ],
DebitPaymentMethodID
:[ payment channel Id of used for debit-side transaction ]
CreditPaymentMethodID
:[ payment channel Id of used for credit-side transaction ]
- For ContractUpdate-type events, the following EventBody is created:
}
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
access_token | string | ||
contractUUID | string |