Skip to content

Refunds & cancellations

Refund a transaction, fully or partially, with its internal transaction id:

Terminal window
# Full refund
curl "https://api.creditcore.io/api/refund/99101" \
-H "Authorization: Bearer $CREDITCORE_API_TOKEN"
# Partial refund of 4.50
curl "https://api.creditcore.io/api/refund/99101?amountToRefund=4.50" \
-H "Authorization: Bearer $CREDITCORE_API_TOKEN"
  • Only transactions with refundStatus: REFUNDABLE can be refunded.
  • The amount can’t exceed the original amount.
  • A new transaction of type REFUNDED with a negative amount is recorded and a REFUND webhook is sent.
  • Refunding does not cancel the subscription. Unsubscribe the customer too if you want to stop renewals.

Stop a customer’s subscription:

Terminal window
curl -X POST "https://api.creditcore.io/api/unsubscribe/5812" \
-H "Authorization: Bearer $CREDITCORE_API_TOKEN"
  • The customer status becomes UNSUBSCRIBED and renewals stop immediately.
  • A CANCELLATION webhook is sent.
  • Past transactions are not refunded automatically.