To add a store credit to a subscriber, do an HTTP POST like so:
[ ~ ] $ curl -i -u 2dac9d3d93326f97da4845d407789da232514b48:X \
-H 'Content-Type: application/xml' \
-d '
<credit>
<amount>2.34</amount>
</credit>' \
https://spreedly.com/api/v4/meresheep/subscribers/444/credits.xml
In that call, 'meresheep' is the url suffix of the site.
What we’re doing here is adding a store credit to a particular subscriber. This can be a positive or a negative store credit, as long as the total subscriber store credit is greater than or equal to 0. If successful, a status code of 201 (Created) is returned.
A 404 (Not Found) status code is returned if there is no subscriber with the customer id.
A 422 (Unprocessable Entity) is returned if there are any validation errors on the passed in Credit.