Skip to main content

get-strategy

Send in a header named Secret-Strategy the secret, sent in to create the strategy, encoded in Base64.

This will validate the request to the strategy to decode the encrypted settings.

InformationDataDescription
URL-Provided by boltPay squad
Endpoint/execution-strategy/{strategySid}strategySid: The strategy SID generated after the created strategy request.
MethodGET-

Request

GET /execution-strategy/7b75ce51-bb2a-4fe2-9008-ecc5b257dfd8

Headers: { Content-Type: application/json, Strategy-Secret: asdxcv123asdzxcv, Authorization: Bearer asd123asdfd123.asdasd123.asda13213 }

Response

{
"version": 7,
"description": "Test strategy",
"name": "test-strategy",
"sid": "00000000-ffff-a1b2-c3d4-123qwe456rty",
"updatedAt": "2024-05-15T09:39:39.308Z",
"createdAt": "2022-01-06T10:16:14.040Z",
"settings": {
"config": {
"timezone": "Europe/Lisboa"
},
"schedule": {
"calendars": [
{
"key": "flow",
"task": "execute-flow",
"scheduleAfter": {
"unit": "months",
"amount": 1
}
}
]
},
"services": [
...,
{
"key": "payment-gateway",
"baseUrls": [
...
],
"authorization": [
...
],
"credentialPath": "access_token",
"methods": [
...
]
}
],
"tasks": [
{
"key": "execute-flow",
"retryConfig": {
"times": 6,
"pauseBeforeCancel": true,
"retryAfter": {
"unit": "minutes",
"amount": 30
}
},
"steps": [
...,
{
"key": "execute-payment-step",
"action": "execute-payment-action",
"nextStep": "create-payment-info-success-step",
"nextStepRules": [
{
"if": "onBeforeRetry",
"nextStep": "payment-failure-email-step"
},
{
"if": "onBeforePause",
"nextStep": "crmz-update-contract-onhold-step"
}
]
},
...,
{
"key": "create-payment-info-fail-step",
"action": "crmz-payment-result-action",
"final": true
}
],
"initialStep": "validate-contract-step"
}
],
"actions": [
...
],
"onCancelTasks": null
}
}