membershipChargeResult
Use the SDK for application integration. This read-only reference covers Commerce, Customer Auth, Membership and Events.
All HTTP operationsTenant delegated HMAC over exact raw bytes with timestamp and delivery ID; body membershipId must exactly equal path id. Missing/foreign membership, wrong delegated method or signature is denied before ledger action. Duplicate deliveries return received=true,duplicate=true; valid response is not independent provider verification.
membershipSignaturex-membership-signature<token>HMAC of the exact raw body, timestamp and delivery ID using the tenant delegated billing secret. Requires x-membership-timestamp and x-membership-delivery-id as well; no bearer credential substitutes for this proof.
id*stringDocument ID
x-membership-timestamp*string1 <= lengthx-membership-delivery-id*string1 <= lengthapplication/json- body
Exact preprocessing input, not the normalized output union. Paid valid advisories are strict-unknown fields; malformed advisories are discarded. Unknown non-advisory keys are rejected.
kind*"charge-result""charge-result"idempotencyKey*string1 <= lengthmembershipId*string1 <= lengthstatus*"paid""paid"amount*integer0 <= value <= 9007199254740991currency*string3 <= length <= 3pgPaymentId*string1 <= lengthdeclineCategory?not (string)declineEvidence?not (MembershipDeclineEvidence)Actual shaped success body
application/json- response
received*truetrueduplicate?truetrueExamples may be generated from schemas; they are illustrative, not recorded successful API calls. Example snippets may omit required authentication headers.
curl -X POST 'https://api.01.software/api/memberships/string/charge-result' \ -H 'x-membership-timestamp: string' \ -H 'x-membership-delivery-id: string' \ -H 'Content-Type: application/json' \ -d '{ "kind": "charge-result", "idempotencyKey": "string", "membershipId": "string", "status": "paid", "amount": 0, "currency": "str", "pgPaymentId": "string"}'{ "received": true, "duplicate": true}