Skip to main content
GET
/
subscriptions
/
cp
/
api
/
subscription-billing-attempts
/
refund-preview
/
{id}
Calculate refund amount preview
curl --request GET \
  --url https://www.myshop.com/apps/subscriptions/cp/api/subscription-billing-attempts/refund-preview/{id}
{
  "orderAmount": 45.99,
  "processingFees": 1.5,
  "restockingFee": 0,
  "refundAmount": 44.49,
  "currency": "USD"
}

Documentation Index

Fetch the complete documentation index at: https://developers.appstle.com/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

id
integer<int64>
required

Billing attempt ID

Query Parameters

subscriptionContractId
integer<int64>

Subscription contract ID for validation

Response

Refund preview calculated successfully