Suspend a processor
curl --request POST \
--url https://olive-gateway-a6ba.onrender.com/api/v1/processors/{id}/suspend \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "Suspected fraudulent activity"
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: 'Suspected fraudulent activity'})
};
fetch('https://olive-gateway-a6ba.onrender.com/api/v1/processors/{id}/suspend', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://olive-gateway-a6ba.onrender.com/api/v1/processors/{id}/suspend"
payload = { "reason": "Suspected fraudulent activity" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{}{}{}Processors
Suspend Processor
Suspend a processor to prevent transactions
POST
/
processors
/
{id}
/
suspend
Suspend a processor
curl --request POST \
--url https://olive-gateway-a6ba.onrender.com/api/v1/processors/{id}/suspend \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "Suspected fraudulent activity"
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: 'Suspected fraudulent activity'})
};
fetch('https://olive-gateway-a6ba.onrender.com/api/v1/processors/{id}/suspend', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://olive-gateway-a6ba.onrender.com/api/v1/processors/{id}/suspend"
payload = { "reason": "Suspected fraudulent activity" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{}{}{}Suspend Processor
Suspend a processor to prevent them from processing transactions.Endpoint
POST /api/v1/processors/:id/suspend
Authentication
string
required
Bearer token (Admin JWT)
Path Parameters
string
required
Processor UUID
Request Body
string
Suspension reason (e.g., “Suspected fraudulent activity”)
Response
{
"success": true,
"message": "Processor suspended successfully"
}
Effects
- Processor status changes to
suspended - All POS transactions are rejected
- Dashboard access is blocked
- API key is deactivated
Errors
| Code | Description |
|---|---|
| 400 | Invalid request |
| 404 | Processor not found |
| 401 | Unauthorized |
Authorizations
JWT token from admin login for administrative operations. Format: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'
Path Parameters
Processor ID
Body
application/json
Suspension reason
Example:
"Suspected fraudulent activity"
Response
Processor suspended successfully
The response is of type object.
⌘I