← Back to Overview

Analyze Payment History

Analyze historical payment data to estimate potential SEPA Instant savings

POST/api/push/analyzeAuth Required
publicproduct

Example Request

cURL

curl -X POST https://margin.so/api/push/analyze \
  -H "Content-Type: application/json" \
  -d '{}'

JavaScript

const response = await fetch('https://margin.so/api/push/analyze', {
  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/analyze',
    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

FieldTypeRequiredDescription