POST
/
charges
/
trigger-charge
Re-trigger a stuck charge
curl --request POST \
  --url https://api.next.orenda.finance/charges/trigger-charge \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "chargeId": "0e2a7b54-9c3d-4a1f-8b6e-2f4c1d9a7e10"
}
'
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({chargeId: '0e2a7b54-9c3d-4a1f-8b6e-2f4c1d9a7e10'})
};

fetch('https://api.next.orenda.finance/charges/trigger-charge', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
import requests

url = "https://api.next.orenda.finance/charges/trigger-charge"

payload = { "chargeId": "0e2a7b54-9c3d-4a1f-8b6e-2f4c1d9a7e10" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
{
  "message": "Success"
}
{
"message": "Missing or invalid chargeId"
}
{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}
{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}

Authorizations

Authorization
string
header
required

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

Query Parameters

programId
string
required

The program the request is scoped to. Required on every endpoint.

Body

application/json
chargeId
string
required

Identifier of the charge to re-trigger.

Example:

"0e2a7b54-9c3d-4a1f-8b6e-2f4c1d9a7e10"

Response

The charge was re-triggered.

message
string
Example:

"Success"