Subscription Invoice Account

Issue Service Credit

POST
/subscriptions/{subscription_id}/service_credits.json

Adds a service credit to the subscription in the specified amount. The credit is subsequently applied to the next generated invoice.

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

service_credit*

Response Body

application/json

application/json

curl -X POST "https://example.com/subscriptions/0/service_credits.json" \  -H "Content-Type: application/json" \  -d '{    "service_credit": {      "amount": "1"    }  }'
{  "id": 101,  "amount_in_cents": 1000,  "ending_balance_in_cents": 2000,  "entry_type": "Credit",  "memo": "Credit to group account"}