Accept Promotion
Record when customer accepts a SEPA Instant or Open Banking promotion and calculate savings
POST/api/push/acceptAuth Required
publicproduct
Example Request
cURL
curl -X POST https://margin.so/api/push/accept \
-H "Content-Type: application/json" \
-d '{}'JavaScript
const response = await fetch('https://margin.so/api/push/accept', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'sk_live_your_api_key_here'
},
body: JSON.stringify({})
});
const data = await response.json();
console.log(data);Python
import requests
response = requests.post(
'https://margin.so/api/push/accept',
headers={
'Content-Type': 'application/json',
'X-API-Key': 'sk_live_your_api_key_here'
},
json={}
)
data = response.json()
print(data)Example Response
{
"success": true,
"data": {}
}Request Body
| Field | Type | Required | Description |
|---|