create Transaction
POST/api/package/v1/transactions
create a generic Transaction
Request
- application/json
Body
required
serviceCode stringrequired
actionCode stringrequired
consumer string
payload object
error object
score number
actionName string
serviceName string
Responses
- 201
- application/json
- Schema
- Example (from schema)
Schema
projectId stringrequired
clientId stringrequired
serviceCode stringrequired
serviceName stringrequired
actionCode stringrequired
actionName stringrequired
isCore boolean
consumer string
status stringrequired
Possible values: [pending
, confirmed
, canceled
, error
]
score numberrequired
payload object
error object
createdAt date-timerequired
_id ObjectIdrequired
Possible values: Value must match regular expression ^[0-9a-fA-F]{24}
{
"projectId": "string",
"clientId": "string",
"serviceCode": "string",
"serviceName": "string",
"actionCode": "string",
"actionName": "string",
"isCore": true,
"consumer": "string",
"status": "pending",
"score": 0,
"payload": {},
"error": {},
"createdAt": "2024-11-12T11:02:55.916Z",
"_id": "string"
}
Loading...