Posts metered usage where the {origin} names the source system (for example salesforce, hubspot, aws, amp, gcp). Built for posting usage from CRM and ISV systems.
bearerAuthAuthorizationBearer <token>Opaque bearer token obtained from POST /api/token (password grant). Send as Authorization: Bearer <token>.
origin*stringSource system / cloud origin for the usage post (for example aws, amp, gcp, or a CRM name such as salesforce).
application/json- body
[key: string]?anySuccess. The business payload is returned in the Data field of the standard envelope.
application/json- response
Standard response envelope returned by every endpoint except the token endpoint.
Data*unknownThe business payload. Shape depends on the operation; occasionally a JSON-encoded string.
Status*stringBusiness outcome. Check this, not just the HTTP code.
"SUCCESS""ERROR"StatusCode?|Optional numeric status code.
ErrorDetail?||array<any>|Raw error detail when Status is ERROR. Not a stable contract.
ErrorMessage?stringHuman-readable error message when Status is ERROR.
OperationType?|Reserved; usually null.
RequestCorrelationID?stringCorrelation id for the request, useful for support.
curl -X POST 'https://api-demo.saasify.ai/api/v2/subscriptions/string/usagepost' \ -H 'Content-Type: application/json' \ -d '{ "quantity": 5, "subscriptionId": "SUB-001"}'{ "Data": { "accepted": true }, "Status": "SUCCESS", "StatusCode": 200, "ErrorDetail": null, "ErrorMessage": "", "OperationType": null, "RequestCorrelationID": "9f1c2d3e-4b5a-6789-0abc-def012345678"}