---
title: "Get subscription's billing attempts"
method: GET
path: "/customers/{customerId}/subscriptions/{subscriptionId}/billing-attempts"
tags: ["Subscriptions"]
---

# Get subscription's billing attempts

`GET /customers/{customerId}/subscriptions/{subscriptionId}/billing-attempts`

List the billing attempts associated with a single subscription

## Path parameters

- `customerId` string, required
- `subscriptionId` string, required

## Query parameters

- `limit` integer
- `lastEvaluatedKey` string
- `reverse` boolean

## Response `200`

List of billing attempts for a subscription

- object
  - `Items` BillingAttemptDynamo[]
    - `BillingAttemptId` string — Identifier of the billing attempt
    - `BillingAttemptStatus` string — Status (FAILURE|SUCCESS)
    - `ErrorCode` string — Error code (if status is FAILURE)
    - `ErrorMessage` string — Error message (if status is FAILURE)
    - `BillingAttemptAmount` string, float — Stringified amount
    - `BillingAttemptCurrencyCode` string — Currency
    - `CustomerId` string — Identifier of the customer
    - `SubscriptionId` string — Identifier of the subscription
    - `CreatedAt` string, date-time — Date of creation
    - `CompletedAt` string, date-time — Date of completion
  - `LastEvaluatedKey` SubscriptionKeyDynamo
    - `PK` object
      - `S` string
    - `SK` object
      - `S` string

---

[API](https://skmtc.net/awtomic/apis/awtomic-api.md) · [All operations](https://skmtc.net/awtomic/apis/awtomic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/awtomic/awtomic-api/versions/dfe3dfce125c/schema)
