Skip to content

Listing Charges

Retrieves all app charges for the current store.

Endpoint: https://api.youcan.shop/billing/apps/charges

Method: GET

Response

json
[200]
[
  {
    "type": "onetime",
    "id": "aoch_01234567890abcdef",
    "store_id": "...",
    "name": "Premium Features Unlock",
    "status": "active",
    "price": {
      "amount": "29.99",
      "currency": "USD"
    },
    "test": false
  },
  {
    "type": "recurring",
    "id": "arch_01234567890abcdef",
    "store_id": "...",
    "name": "Monthly Subscription",
    "status": "active",
    "plans": [
      {
        "interval": 30,
        "price": {
          "amount": "19.99",
          "currency": "USD"
        }
      }
    ],
    "test": false,
    "trial_days": 7,
    "created_at": 1640995200,
    "period_ends_at": 1643673600
  }
]

The response is a mixed array of AppOnetimeCharge and AppRecurringCharge objects. Use the type field to differentiate them.