Subscription Invoice Account

Deduct Service Credit

POST
/subscriptions/{subscription_id}/service_credit_deductions.json

Deducts a service credit from the subscription in the specified amount. The credit amount being deducted must be equal to or less than the current credit balance.

Authorization

BasicAuth
AuthorizationBasic <token>

The username is a Maxio Chargify API key. The password is x.

In: header

Path Parameters

subscription_id*integer

The Chargify id of the subscription.

Request Body

application/json

deduction*

Response Body

application/json

curl -X POST "https://example.com/subscriptions/0/service_credit_deductions.json" \  -H "Content-Type: application/json" \  -d '{    "deduction": {      "amount": "1",      "memo": "Deduction"    }  }'
Empty