> ## Documentation Index
> Fetch the complete documentation index at: https://www.marqeta.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Payment Schedules

> Use Payment Schedules to schedule a one-time or recurring payment on a credit account.

export const EndpointCard = ({method = "API", title, children, href, arrow = true}) => {
  const METHOD_STYLES = {
    GET: {
      bg: "mint-bg-green-400/20 dark:mint-bg-green-400/20",
      text: "mint-text-green-700 dark:mint-text-green-400",
      border: "mint-border-green-300 dark:mint-border-green-700"
    },
    POST: {
      bg: "mint-bg-blue-400/20 dark:mint-bg-blue-400/20",
      text: "mint-text-blue-700 dark:mint-text-blue-400"
    },
    PUT: {
      bg: "mint-bg-yellow-400/20 dark:mint-bg-yellow-400/20",
      text: "mint-text-yellow-700 dark:mint-text-yellow-400"
    },
    PATCH: {
      bg: "mint-bg-orange-400/20 dark:mint-bg-orange-400/20",
      text: "mint-text-orange-700 dark:mint-text-orange-400"
    },
    DELETE: {
      bg: "mint-bg-red-400/20 dark:mint-bg-red-400/20",
      text: "mint-text-red-700 dark:mint-text-red-400"
    },
    API: {
      bg: "mint-bg-black",
      text: "mint-text-white"
    }
  };
  const MethodBadge = ({method}) => {
    const style = METHOD_STYLES[method?.toUpperCase()] ?? METHOD_STYLES.GET;
    return <span className={`
          method-pill rounded-lg font-semibold px-1.5 py-0.5 text-xs leading-5 ${style.bg} ${style.text}`}>
        {method?.toUpperCase()}
      </span>;
  };
  const content = <div className="group flex items-center gap-4 border border-gray-200 dark:border-gray-700 rounded-xl p-5 hover:border-gray-400 dark:hover:border-gray-500 hover:shadow-md transition-all cursor-pointer">
      {}
      <div className="shrink-0">
        <MethodBadge method={method} />
      </div>
      {}
      <div className="flex-1 min-w-0">
        <p className="font-semibold text-gray-900 dark:text-white text-sm leading-snug">{title}</p>
        {children && <p className="mt-1 text-sm text-gray-500 dark:text-gray-400 line-clamp-2">{children}</p>}
      </div>
    </div>;
  if (!href) return content;
  return <a href={href} className="block no-underline border-b-0 mb-2">
      {content}
    </a>;
};

Use the payment schedule endpoints to create and retrieve payment schedules and payment schedule transitions on a [credit account](/core-api/credit-accounts/).

A payment schedule allows you to schedule a one-time or recurring payment on a credit account. For more on payments, see [About Credit Account Payments](/developer-guides/about-credit-account-payments/).

To receive webhook notifications when ACH payment transition events occur, see [Credit account payment transition events](/core-api/event-types/#_credit_account_payment_transition_events) in Event Types.

Making a payment on a payment schedule triggers the creation of a [journal entry](/core-api/credit-account-journal-entries/) belonging to the `PAYMENT` group. For more on payment journal entries, see [Payments](/developer-guides/about-credit-account-journal-entries/#_payments) in the About Credit Account Journal Entries guide.

<h2 id="create_payment_schedule">
  Create payment schedule
</h2>

**Action:** `POST`\
**Endpoint:** `/credit/accounts/{account_token}/paymentschedules`

Create a new payment schedule, either one-time or recurring.

<h3 id="_url_path_parameters">
  URL path parameters
</h3>

| Fields                                               | Description                                                                                                                                                                                                                                                   |
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| account\_token<br /><br />string<br /><br />Required | Unique identifier of the credit account for which you want to create a payment schedule.<br /><br />Send a `GET` request to `/credit/accounts` to retrieve existing credit account tokens.<br /><br />**Allowable Values:**<br /><br />Existing account token |

<h3 id="_request_body">
  Request body
</h3>

| Fields                                                          | Description                                                                                                                                                                               |
| --------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Optional                     | Unique identifier of the payment schedule.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                        |
| payment\_source\_token<br /><br />string<br /><br />Required    | Unique identifier of the payment source.<br /><br />**Allowable Values:**<br /><br />36 char max<br /><br />Existing payment source token                                                 |
| amount\_category<br /><br />string<br /><br />Required          | A category used to determine the actual payment amount.<br /><br />**Allowable Values:**<br /><br />`FIXED`, `MINIMUM_PAYMENT`, `REMAINING_STATEMENT_BALANCE`, `CURRENT_BALANCE`          |
| amount<br /><br />decimal<br /><br />Optional                   | Amount of the payment.<br /><br />Required if `amount_category` is `FIXED`.<br /><br />**Allowable Values:**<br /><br />Format: 0.00                                                      |
| frequency<br /><br />string<br /><br />Required                 | Defines how often to make a scheduled payment.<br /><br />**Allowable Values:**<br /><br />`ONCE`, `MONTHLY`                                                                              |
| payment\_day<br /><br />string<br /><br />Optional              | Day on which monthly payments are made.<br /><br />Required if `frequency` is `MONTHLY`.<br /><br />**Allowable Values:**<br /><br />`PAYMENT_DUE_DAY`                                    |
| next\_payment\_impact\_date<br /><br />date<br /><br />Optional | Date to make a one-time payment.<br /><br />Required if frequency is `ONCE`.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                               |
| currency\_code<br /><br />string<br /><br />Required            | Valid three-digit <a href="https://www.iso.org/iso-4217-currency-codes.html" target="_blank" rel="noopener">ISO 4217 currency code</a>.<br /><br />**Allowable Values:**<br /><br />`USD` |
| description<br /><br />string<br /><br />Optional               | Description of the payment schedule.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                             |

<h3 id="_sample_request_body">
  Sample request body
</h3>

```json JSON lines wrap theme={null}
{
  "token": "payment_schedule_token_1239",
  "payment_source_token": "payment_source_token_1112",
  "amount_category": "FIXED",
  "amount": 100,
  "frequency": "MONTHLY",
  "payment_day": "PAYMENT_DUE_DAY",
  "currency_code": "USD",
  "description": "Account statement payment"
}
```

<h3 id="_response_body">
  Response body
</h3>

| Fields                                                                        | Description                                                                                                                                                                               |
| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Returned                                   | Unique identifier of the payment schedule.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                        |
| payment\_source\_token<br /><br />string<br /><br />Returned                  | Unique identifier of a payment source.<br /><br />**Allowable Values:**<br /><br />Existing payment source token                                                                          |
| account\_token<br /><br />string<br /><br />Returned                          | Unique identifier of the credit account on which the payment schedule is made.<br /><br />**Allowable Values:**<br /><br />Existing account token                                         |
| amount\_category<br /><br />string<br /><br />Returned                        | A category used to determine the actual payment amount.<br /><br />**Allowable Values:**<br /><br />`FIXED`, `MINIMUM_PAYMENT`, `REMAINING_STATEMENT_BALANCE`, `CURRENT_BALANCE`          |
| status<br /><br />string<br /><br />Returned                                  | Status of the payment schedule.<br /><br />**Allowable Values:**<br /><br />`ACTIVE`, `COMPLETED`, `TERMINATED`                                                                           |
| amount<br /><br />decimal<br /><br />Conditionally returned                   | Amount of the payment.<br /><br />Returned if the `amount_category` is `FIXED`.<br /><br />**Allowable Values:**<br /><br />Format: 0.00                                                  |
| frequency<br /><br />string<br /><br />Returned                               | Defines how often to make a scheduled payment.<br /><br />**Allowable Values:**<br /><br />`ONCE`, `MONTHLY`                                                                              |
| payment\_day<br /><br />string<br /><br />Conditionally returned              | Day on which monthly payments are made.<br /><br />Returned if the `frequency` is `MONTHLY`.<br /><br />**Allowable Values:**<br /><br />`PAYMENT_DUE_DAY`                                |
| next\_payment\_impact\_date<br /><br />date<br /><br />Conditionally returned | Date to make a one-time payment.<br /><br />Returned if `frequency` is `ONCE`.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                             |
| currency\_code<br /><br />string<br /><br />Returned                          | Valid three-digit <a href="https://www.iso.org/iso-4217-currency-codes.html" target="_blank" rel="noopener">ISO 4217 currency code</a>.<br /><br />**Allowable Values:**<br /><br />`USD` |
| description<br /><br />string<br /><br />Conditionally returned               | Description of the payment schedule.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                             |
| created\_time<br /><br />datetime<br /><br />Conditionally returned           | Date and time when the payment schedule was created on Marqeta’s credit platform, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                        |
| updated\_time<br /><br />datetime<br /><br />Conditionally returned           | Date and time when the payment schedule was last updated on Marqeta’s credit platform, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                   |

<h3 id="_sample_response_body">
  Sample response body
</h3>

```json JSON lines wrap theme={null}
{
  "token": "4749ab00-fec1-471c-ac5b-b8d31d06d7e4",
  "account_token": "12f10563-d5f2-11ec-889b-bd3a73e55331",
  "payment_source_token": "7d68f45b-1232-4283-a0ea-6b0418d37692",
  "amount_category": "FIXED",
  "status": "COMPLETED",
  "amount": 2500,
  "frequency": "ONCE",
  "next_payment_impact_date": "2024-01-31",
  "currency_code": "USD",
  "description": "Scheduled account payment",
  "created_time": "2024-01-12T15:03:09.717Z"
}
```

<h2 id="retrieve_payment_schedules">
  List payment schedules
</h2>

**Action:** `GET`\
**Endpoint:** `/credit/accounts/{account_token}/paymentschedules`

Retrieve an array of payment schedules on a specific credit account.

This endpoint supports [sorting and pagination](/core-api/sorting-and-pagination/).

<h3 id="_url_path_parameters_2">
  URL path parameters
</h3>

| Fields                                               | Description                                                                                                                                                                                                                                                    |
| ---------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| account\_token<br /><br />string<br /><br />Required | Unique identifier of the credit account for which you want to retrieve payment schedules.<br /><br />Send a `GET` request to `/credit/accounts` to retrieve existing credit account tokens.<br /><br />**Allowable Values:**<br /><br />Existing account token |

<h3 id="_url_query_parameters">
  URL query parameters
</h3>

| Fields                                                    | Description                                                                                                                                                                                                                                                                                                                                                                                                  |
| --------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| statuses<br /><br />array of strings<br /><br />Optional  | Status of the payment schedules to retrieve.<br /><br />**Allowable Values:**<br /><br />`ACTIVE`, `COMPLETED`, `TERMINATED`                                                                                                                                                                                                                                                                                 |
| frequency<br /><br />array of strings<br /><br />Optional | Frequency of the payment schedules to retrieve.<br /><br />**Allowable Values:**<br /><br />`ONCE`, `MONTHLY`                                                                                                                                                                                                                                                                                                |
| count<br /><br />integer<br /><br />Optional              | Number of payment schedule resources to retrieve.<br /><br />**Allowable Values:**<br /><br />1 min                                                                                                                                                                                                                                                                                                          |
| start\_index<br /><br />integer<br /><br />Optional       | Sort order index of the first resource in the returned array.<br /><br />**Allowable Values:**<br /><br />0 min                                                                                                                                                                                                                                                                                              |
| sort\_by<br /><br />string<br /><br />Optional            | Field on which to sort. Prefix the field name with a hyphen (`-`) to sort in descending order. Omit the hyphen to sort in ascending order.<br /><br />**NOTE:** You must sort using system field names such as `lastModifiedTime`, and not by the field names appearing in response bodies such as `last_modified_time`.<br /><br />**Allowable Values:**<br /><br />`lastModifiedTime`, `-lastModifiedTime` |

<h3 id="_response_body_2">
  Response body
</h3>

| Fields                                                                                    | Description                                                                                                                                                                               |
| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| count<br /><br />integer<br /><br />Returned                                              | Number of resources returned.<br /><br />**Allowable Values:**<br /><br />1-10                                                                                                            |
| start\_index<br /><br />integer<br /><br />Returned                                       | Sort order index of the first resource in the returned array.<br /><br />**Allowable Values:**<br /><br />Any integer                                                                     |
| end\_index<br /><br />integer<br /><br />Returned                                         | Sort order index of the last resource in the returned array.<br /><br />**Allowable Values:**<br /><br />Any integer                                                                      |
| is\_more<br /><br />boolean<br /><br />Returned                                           | A value of `true` indicates that more unreturned resources exist.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                             |
| data<br /><br />array of objects<br /><br />Returned                                      | List of payment schedules.<br /><br />**Allowable Values:**<br /><br />Valid array of one or more payment schedule objects                                                                |
| data\[].**token**<br /><br />string<br /><br />Returned                                   | Unique identifier of the payment schedule.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                        |
| data\[].**payment\_source\_token**<br /><br />string<br /><br />Returned                  | Unique identifier of a payment source.<br /><br />**Allowable Values:**<br /><br />Existing payment source token                                                                          |
| data\[].**account\_token**<br /><br />string<br /><br />Returned                          | Unique identifier of the credit account on which the payment schedule is made.<br /><br />**Allowable Values:**<br /><br />Existing account token                                         |
| data\[].**amount\_category**<br /><br />string<br /><br />Returned                        | A category used to determine the actual payment amount.<br /><br />**Allowable Values:**<br /><br />`FIXED`, `MINIMUM_PAYMENT`, `REMAINING_STATEMENT_BALANCE`, `CURRENT_BALANCE`          |
| data\[].**status**<br /><br />string<br /><br />Returned                                  | Status of the payment schedule.<br /><br />**Allowable Values:**<br /><br />`ACTIVE`, `COMPLETED`, `TERMINATED`                                                                           |
| data\[].**amount**<br /><br />decimal<br /><br />Conditionally returned                   | Amount of the payment.<br /><br />Returned if the `amount_category` is `FIXED`.<br /><br />**Allowable Values:**<br /><br />Format: 0.00                                                  |
| data\[].**frequency**<br /><br />string<br /><br />Returned                               | Defines how often to make a scheduled payment.<br /><br />**Allowable Values:**<br /><br />`ONCE`, `MONTHLY`                                                                              |
| data\[].**payment\_day**<br /><br />string<br /><br />Conditionally returned              | Day on which monthly payments are made.<br /><br />Returned if the `frequency` is `MONTHLY`.<br /><br />**Allowable Values:**<br /><br />`PAYMENT_DUE_DAY`                                |
| data\[].**next\_payment\_impact\_date**<br /><br />date<br /><br />Conditionally returned | Date to make a one-time payment.<br /><br />Returned if `frequency` is `ONCE`.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                             |
| data\[].**currency\_code**<br /><br />string<br /><br />Returned                          | Valid three-digit <a href="https://www.iso.org/iso-4217-currency-codes.html" target="_blank" rel="noopener">ISO 4217 currency code</a>.<br /><br />**Allowable Values:**<br /><br />`USD` |
| data\[].**description**<br /><br />string<br /><br />Conditionally returned               | Description of the payment schedule.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                             |
| data\[].**created\_time**<br /><br />datetime<br /><br />Conditionally returned           | Date and time when the payment schedule was created on Marqeta’s credit platform, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                        |
| data\[].**updated\_time**<br /><br />datetime<br /><br />Conditionally returned           | Date and time when the payment schedule was last updated on Marqeta’s credit platform, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                   |

<h3 id="_sample_response_body_2">
  Sample response body
</h3>

```json JSON expandable lines wrap theme={null}
{
  "count": 2,
  "start_index": 0,
  "end_index": 1,
  "is_more": false,
  "data": [
    {
      "token": "mytoken",
      "payment_source_token": "source1",
      "account_token": "account1",
      "amount_category": "REMAINING_STATEMENT_BALANCE",
      "status": "ACTIVE",
      "amount": null,
      "frequency": "MONTHLY",
      "payment_day": "PAYMENT_DUE_DAY",
      "next_payment_impact_date": "2023-08-31",
      "currency_code": "USD",
      "description": "Sample payoff",
      "created_time": "2023-08-22T22:17:11.407Z",
      "updated_time": "2023-08-22T22:17:11.407Z"
    },
    {
      "token": "mytoken1",
      "payment_source_token": "source1",
      "account_token": "account1",
      "amount_category": "FIXED",
      "status": "COMPLETED",
      "amount": 100,
      "frequency": "ONCE",
      "payment_day": "PAYMENT_DUE_DAY",
      "next_payment_impact_date": "2023-08-10",
      "currency_code": "USD",
      "description": "Sample payment",
      "created_time": "2023-07-22T22:13:31.426Z",
      "updated_time": "2023-07-22T22:13:31.426Z"
    }
  ]
}
```

<h2 id="retrieve_payment_schedule">
  Retrieve payment schedule
</h2>

**Action:** `GET`\
**Endpoint:** `/credit/accounts/{account_token}/paymentschedules/{payment_schedule_token}`

Retrieve a single payment schedule on a specific credit account.

<h3 id="_url_path_parameters_3">
  URL path parameters
</h3>

| Fields                                                         | Description                                                                                                                                                                                                                                                                           |
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| account\_token<br /><br />string<br /><br />Required           | Unique identifier of the credit account for which you want to retrieve a payment schedule.<br /><br />Send a `GET` request to `/credit/accounts` to retrieve existing credit account tokens.<br /><br />**Allowable Values:**<br /><br />Existing account token                       |
| payment\_schedule\_token<br /><br />string<br /><br />Required | Unique identifier of the payment schedule that you want to retrieve.<br /><br />Send a `GET` request to `/credit/accounts/{account_token}/paymentschedules` to retrieve existing payment schedule tokens.<br /><br />**Allowable Values:**<br /><br />Existing payment schedule token |

<h3 id="_response_body_3">
  Response body
</h3>

| Fields                                                                        | Description                                                                                                                                                                               |
| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Returned                                   | Unique identifier of the payment schedule.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                        |
| payment\_source\_token<br /><br />string<br /><br />Returned                  | Unique identifier of a payment source.<br /><br />**Allowable Values:**<br /><br />Existing payment source token                                                                          |
| account\_token<br /><br />string<br /><br />Returned                          | Unique identifier of the credit account on which the payment schedule is made.<br /><br />**Allowable Values:**<br /><br />Existing account token                                         |
| amount\_category<br /><br />string<br /><br />Returned                        | A category used to determine the actual payment amount.<br /><br />**Allowable Values:**<br /><br />`FIXED`, `MINIMUM_PAYMENT`, `REMAINING_STATEMENT_BALANCE`, `CURRENT_BALANCE`          |
| status<br /><br />string<br /><br />Returned                                  | Status of the payment schedule.<br /><br />**Allowable Values:**<br /><br />`ACTIVE`, `COMPLETED`, `TERMINATED`                                                                           |
| amount<br /><br />decimal<br /><br />Conditionally returned                   | Amount of the payment.<br /><br />Returned if the `amount_category` is `FIXED`.<br /><br />**Allowable Values:**<br /><br />Format: 0.00                                                  |
| frequency<br /><br />string<br /><br />Returned                               | Defines how often to make a scheduled payment.<br /><br />**Allowable Values:**<br /><br />`ONCE`, `MONTHLY`                                                                              |
| payment\_day<br /><br />string<br /><br />Conditionally returned              | Day on which monthly payments are made.<br /><br />Returned if the `frequency` is `MONTHLY`.<br /><br />**Allowable Values:**<br /><br />`PAYMENT_DUE_DAY`                                |
| next\_payment\_impact\_date<br /><br />date<br /><br />Conditionally returned | Date to make a one-time payment.<br /><br />Returned if `frequency` is `ONCE`.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-dd                                             |
| currency\_code<br /><br />string<br /><br />Returned                          | Valid three-digit <a href="https://www.iso.org/iso-4217-currency-codes.html" target="_blank" rel="noopener">ISO 4217 currency code</a>.<br /><br />**Allowable Values:**<br /><br />`USD` |
| description<br /><br />string<br /><br />Conditionally returned               | Description of the payment schedule.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                             |
| created\_time<br /><br />datetime<br /><br />Conditionally returned           | Date and time when the payment schedule was created on Marqeta’s credit platform, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                        |
| updated\_time<br /><br />datetime<br /><br />Conditionally returned           | Date and time when the payment schedule was last updated on Marqeta’s credit platform, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                   |

<h3 id="_sample_response_body_3">
  Sample response body
</h3>

```json JSON lines wrap theme={null}
{
  "token": "4749ab00-fec1-471c-ac5b-b8d31d06d7e4",
  "account_token": "12f10563-d5f2-11ec-889b-bd3a73e55331",
  "payment_source_token": "7d68f45b-1232-4283-a0ea-6b0418d37692",
  "amount_category": "FIXED",
  "status": "COMPLETED",
  "amount": 2500,
  "frequency": "ONCE",
  "next_payment_impact_date": "2024-01-31",
  "currency_code": "USD",
  "description": "Scheduled account payment",
  "created_time": "2024-01-12T15:03:09.717Z"
}
```

<h2 id="create_payment_schedule_transition">
  Create payment schedule transition
</h2>

**Action:** `POST`\
**Endpoint:** `/credit/accounts/{account_token}/paymentschedules/{payment_schedule_token}/transitions`

Transition a payment schedule to a new status.

<h3 id="_url_path_parameters_4">
  URL path parameters
</h3>

| Fields                                                         | Description                                                                                                                                                                                                                                                                               |
| -------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| account\_token<br /><br />string<br /><br />Required           | Unique identifier of the credit account on which to transition a payment schedule.<br /><br />Send a `GET` request to `/credit/accounts` to retrieve existing credit account tokens.<br /><br />**Allowable Values:**<br /><br />Existing account token                                   |
| payment\_schedule\_token<br /><br />string<br /><br />Required | Unique identifier of the payment schedule whose status is to transition.<br /><br />Send a `GET` request to `/credit/accounts/{account_token}/paymentschedules` to retrieve existing payment schedule tokens.<br /><br />**Allowable Values:**<br /><br />Existing payment schedule token |

<h3 id="_request_body_2">
  Request body
</h3>

| Fields                                       | Description                                                                                                     |
| -------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Optional  | Unique identifier of the payment schedule transition.<br /><br />**Allowable Values:**<br /><br />36 char max   |
| status<br /><br />string<br /><br />Required | Status of the payment schedule.<br /><br />**Allowable Values:**<br /><br />`ACTIVE`, `COMPLETED`, `TERMINATED` |

<h3 id="_sample_request_body_2">
  Sample request body
</h3>

```json JSON lines wrap theme={null}
{
  "token": "4749ab00-fec1-471c-ac5b-b8d31d06d7e4",
  "status": "TERMINATED"
}
```

<h3 id="_response_body_4">
  Response body
</h3>

| Fields                                                                       | Description                                                                                                                                                                                                                                                                               |
| ---------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Conditionally returned                    | Unique identifier of the payment schedule transition.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                             |
| account\_token<br /><br />string<br /><br />Conditionally returned           | Unique identifier of the credit account on which to transition a payment schedule.<br /><br />Send a `GET` request to `/credit/accounts` to retrieve existing credit account tokens.<br /><br />**Allowable Values:**<br /><br />Existing account token                                   |
| payment\_schedule\_token<br /><br />string<br /><br />Conditionally returned | Unique identifier of the payment schedule whose status is to transition.<br /><br />Send a `GET` request to `/credit/accounts/{account_token}/paymentschedules` to retrieve existing payment schedule tokens.<br /><br />**Allowable Values:**<br /><br />Existing payment schedule token |
| status<br /><br />string<br /><br />Conditionally returned                   | Status of the payment schedule.<br /><br />**Allowable Values:**<br /><br />`ACTIVE`, `COMPLETED`, `TERMINATED`                                                                                                                                                                           |
| created\_time<br /><br />datetime<br /><br />Conditionally returned          | Date and time when the payment schedule transition was created on Marqeta’s credit platform, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                                                                                             |
| updated\_time<br /><br />datetime<br /><br />Conditionally returned          | Date and time when the payment schedule transition was last updated on Marqeta’s credit platform, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                                                                                        |

<h3 id="_sample_response_body_4">
  Sample response body
</h3>

```json JSON lines wrap theme={null}
{
  "token": "payment_schedule_transition_token_111",
  "account_token": "credit_account_token_1232",
  "payment_schedule_token": "payment_schedule_token_1232",
  "status": "TERMINATED",
  "created_time": "2024-01-12T15:03:09.717Z",
  "updated_time": "2024-01-12T15:03:09.717Z"
}
```

<h2 id="retrieve_payment_schedule_transitions">
  Retrieve payment schedule transitions
</h2>

**Action:** `GET`\
**Endpoint:** `/credit/accounts/{account_token}/paymentschedules/{payment_schedule_token}/transitions`

Retrieve an array of payment schedule transitions on a specific credit account.

<h3 id="_url_path_parameters_5">
  URL path parameters
</h3>

| Fields                                                         | Description                                                                                                                                                                                                                                                                                            |
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| account\_token<br /><br />string<br /><br />Required           | Unique identifier of the credit account for which you want to retrieve payment schedule transitions.<br /><br />Send a `GET` request to `/credit/accounts` to retrieve existing credit account tokens.<br /><br />**Allowable Values:**<br /><br />Existing account token                              |
| payment\_schedule\_token<br /><br />string<br /><br />Required | Unique identifier of the payment schedule for which you want to retrieve transitions.<br /><br />Send a `GET` request to `/credit/accounts/{account_token}/paymentschedules` to retrieve existing payment schedule tokens.<br /><br />**Allowable Values:**<br /><br />Existing payment schedule token |

<h3 id="_url_query_parameters_2">
  URL query parameters
</h3>

| Fields                                              | Description                                                                                                                                                                                                                                                                                                                                                                             |
| --------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| count<br /><br />integer<br /><br />Optional        | Number of payment schedule resources to retrieve.<br /><br />**Allowable Values:**<br /><br />1 min                                                                                                                                                                                                                                                                                     |
| start\_index<br /><br />integer<br /><br />Optional | Sort order index of the first resource in the returned array.<br /><br />**Allowable Values:**<br /><br />0 min                                                                                                                                                                                                                                                                         |
| sort\_by<br /><br />string<br /><br />Optional      | Field on which to sort. Prefix the field name with a hyphen (`-`) to sort in descending order. Omit the hyphen to sort in ascending order.<br /><br />**NOTE:** You must sort using system field names such as `createdTime`, and not by the field names appearing in response bodies such as `created_time`.<br /><br />**Allowable Values:**<br /><br />`createdTime`, `-createdTime` |

<h3 id="_response_body_5">
  Response body
</h3>

| Fields                                                                                   | Description                                                                                                                                                                                                                                                                               |
| ---------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| count<br /><br />integer<br /><br />Returned                                             | Number of resources returned.<br /><br />**Allowable Values:**<br /><br />1-10                                                                                                                                                                                                            |
| start\_index<br /><br />integer<br /><br />Returned                                      | Sort order index of the first resource in the returned array.<br /><br />**Allowable Values:**<br /><br />Any integer                                                                                                                                                                     |
| end\_index<br /><br />integer<br /><br />Returned                                        | Sort order index of the last resource in the returned array.<br /><br />**Allowable Values:**<br /><br />Any integer                                                                                                                                                                      |
| is\_more<br /><br />boolean<br /><br />Returned                                          | A value of `true` indicates that more unreturned resources exist.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                                                                                                                             |
| data<br /><br />array of objects<br /><br />Returned                                     | List of payment schedule transitions.<br /><br />**Allowable Values:**<br /><br />Valid array of one or more payment schedule transition objects                                                                                                                                          |
| data\[].**token**<br /><br />string<br /><br />Conditionally returned                    | Unique identifier of the payment schedule transition.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                             |
| data\[].**account\_token**<br /><br />string<br /><br />Conditionally returned           | Unique identifier of the credit account on which to transition a payment schedule.<br /><br />Send a `GET` request to `/credit/accounts` to retrieve existing credit account tokens.<br /><br />**Allowable Values:**<br /><br />Existing account token                                   |
| data\[].**payment\_schedule\_token**<br /><br />string<br /><br />Conditionally returned | Unique identifier of the payment schedule whose status is to transition.<br /><br />Send a `GET` request to `/credit/accounts/{account_token}/paymentschedules` to retrieve existing payment schedule tokens.<br /><br />**Allowable Values:**<br /><br />Existing payment schedule token |
| data\[].**status**<br /><br />string<br /><br />Conditionally returned                   | Status of the payment schedule.<br /><br />**Allowable Values:**<br /><br />`ACTIVE`, `COMPLETED`, `TERMINATED`                                                                                                                                                                           |
| data\[].**created\_time**<br /><br />datetime<br /><br />Conditionally returned          | Date and time when the payment schedule transition was created on Marqeta’s credit platform, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                                                                                             |
| data\[].**updated\_time**<br /><br />datetime<br /><br />Conditionally returned          | Date and time when the payment schedule transition was last updated on Marqeta’s credit platform, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                                                                                        |

<h3 id="_sample_response_body_5">
  Sample response body
</h3>

```json JSON expandable lines wrap theme={null}
{
  "count": 2,
  "start_index": 0,
  "end_index": 1,
  "is_more": false,
  "data": [
    {
      "token": "transition1",
      "account_token": "account1",
      "payment_schedule_token": "payment1",
      "status": "TERMINATED",
      "created_time": "2023-08-23T11:25:34.342Z",
      "updated_time": "2023-08-23T11:25:34.342Z"
    },
    {
      "token": "transition2",
      "account_token": "account2",
      "payment_schedule_token": "payment2",
      "status": "ACTIVE",
      "created_time": "2023-08-22T22:17:11.407Z",
      "updated_time": "2023-08-22T22:17:11.407Z"
    }
  ]
}
```

<h2 id="retrieve_payment_schedule_transition">
  Retrieve payment schedule transition
</h2>

**Action:** `GET`\
**Endpoint:** `/credit/accounts/{account_token}/paymentschedules/{payment_schedule_token}/transitions/{token}`

Retrieve a single payment schedule transition on a specific credit account.

<h3 id="_url_path_parameters_6">
  URL path parameters
</h3>

| Fields                                                         | Description                                                                                                                                                                                                                                                                                                                                            |
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| account\_token<br /><br />string<br /><br />Required           | Unique identifier of the credit account for which you want to retrieve a payment schedule transition.<br /><br />Send a `GET` request to `/credit/accounts` to retrieve existing credit account tokens.<br /><br />**Allowable Values:**<br /><br />Existing account token                                                                             |
| payment\_schedule\_token<br /><br />string<br /><br />Required | Unique identifier of the payment schedule you want to retrieve.<br /><br />Send a `GET` request to `/credit/accounts/{account_token}/paymentschedules` to retrieve existing payment schedule tokens.<br /><br />**Allowable Values:**<br /><br />Existing payment schedule token                                                                       |
| token<br /><br />string<br /><br />Required                    | Unique identifier of the payment schedule transition you want to retrieve.<br /><br />Send a `GET` request to `/credit/accounts/{account_token}/paymentschedules/{payment_schedule_token}/transitions` to retrieve existing payment schedule transition tokens.<br /><br />**Allowable Values:**<br /><br />Existing payment schedule transition token |

<h3 id="_response_body_6">
  Response body
</h3>

| Fields                                                                       | Description                                                                                                                                                                                                                                                                               |
| ---------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Conditionally returned                    | Unique identifier of the payment schedule transition.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                             |
| account\_token<br /><br />string<br /><br />Conditionally returned           | Unique identifier of the credit account on which to transition a payment schedule.<br /><br />Send a `GET` request to `/credit/accounts` to retrieve existing credit account tokens.<br /><br />**Allowable Values:**<br /><br />Existing account token                                   |
| payment\_schedule\_token<br /><br />string<br /><br />Conditionally returned | Unique identifier of the payment schedule whose status is to transition.<br /><br />Send a `GET` request to `/credit/accounts/{account_token}/paymentschedules` to retrieve existing payment schedule tokens.<br /><br />**Allowable Values:**<br /><br />Existing payment schedule token |
| status<br /><br />string<br /><br />Conditionally returned                   | Status of the payment schedule.<br /><br />**Allowable Values:**<br /><br />`ACTIVE`, `COMPLETED`, `TERMINATED`                                                                                                                                                                           |
| created\_time<br /><br />datetime<br /><br />Conditionally returned          | Date and time when the payment schedule transition was created on Marqeta’s credit platform, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                                                                                             |
| updated\_time<br /><br />datetime<br /><br />Conditionally returned          | Date and time when the payment schedule transition was last updated on Marqeta’s credit platform, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                                                                                        |

<h3 id="_sample_response_body_6">
  Sample response body
</h3>

```json JSON lines wrap theme={null}
{
  "token": "transition2",
  "account_token": "account1",
  "payment_schedule_token": "payment1",
  "status": "ACTIVE",
  "created_time": "2023-08-22T22:17:11.407Z",
  "updated_time": "2023-08-22T22:17:11.407Z"
}
```


## Related topics

- [Payments](/docs/core-api/credit-account-payments.md)
- [About Credit Account Payments](/docs/developer-guides/about-credit-account-payments.md)
- [2022 Release Notes](/docs/developer-guides/release-notes-2022.md)
- [Platform Overview](/docs/developer-guides/platform-overview.md)
- [Credit Accounts](/docs/core-api/credit-accounts.md)
