Refunds & cancellations
Refunds
Section titled “Refunds”Refund a transaction, fully or partially, with its internal transaction id:
# Full refundcurl "https://api.creditcore.io/api/refund/99101" \ -H "Authorization: Bearer $CREDITCORE_API_TOKEN"
# Partial refund of 4.50curl "https://api.creditcore.io/api/refund/99101?amountToRefund=4.50" \ -H "Authorization: Bearer $CREDITCORE_API_TOKEN"- Only transactions with
refundStatus: REFUNDABLEcan be refunded. - The amount can’t exceed the original amount.
- A new transaction of type
REFUNDEDwith a negative amount is recorded and aREFUNDwebhook is sent. - Refunding does not cancel the subscription. Unsubscribe the customer too if you want to stop renewals.
Cancellations
Section titled “Cancellations”Stop a customer’s subscription:
curl -X POST "https://api.creditcore.io/api/unsubscribe/5812" \ -H "Authorization: Bearer $CREDITCORE_API_TOKEN"- The customer status becomes
UNSUBSCRIBEDand renewals stop immediately. - A
CANCELLATIONwebhook is sent. - Past transactions are not refunded automatically.