Enregistrer des instantanés de rapports
Soumet les indicateurs opérationnels et financiers d'une installation pour une période donnée.
Paramètres
-
snapshots
arrayobligatoireTableau d'objets Report Snapshot à enregistrer. 25 éléments maximum par requête. Chaque élément doit inclure soit
facility_id(obligatoire si vous n'utilisez paslinking_identifier), soitlinking_identifier(obligatoire si vous n'utilisez pasfacility_id).
Valeur renvoyée
Renvoie un message simple confirmant l'opération de synchronisation.
Requête
curl -X POST https://partner-api.performancehub.co/partner/v1/report-snapshots \
-u sk_live_YOUR_PARTNER_SECRET_KEY: \
-H "Content-Type: application/json" \
-d '{
"snapshots": [
{
"facility_id": "550e8400-e29b-41d4-a716-446655440000",
// "linking_identifier": "branch_downtown", // If using linking identifier
"start_date": "2025-01-01",
"end_date": "2025-01-31",
"metrics": {
"members": {
"active": 1200,
"new": 45,
"cancelled": 12
},
"revenue": {
"total_payments": 289000.00,
"currency": "AUD"
}
}
}
]
}'
Réponse
{
"message": "Report snapshot sync successful."
}