> ## 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.

# Payments

> Use Payments to create and retrieve payments made on a credit account to pay off or pay down the account balance.

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 payments endpoints to create and retrieve payments made on a [credit account](/core-api/credit-accounts/), release payment holds, or transition payment statuses.

A payment is an amount paid toward an account balance to reduce the total amount owed on the 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.

Creating a payment 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">
  Create account payment
</h2>

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

Create a new payment to apply toward a credit account’s balance.

<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 to create a payment.<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.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                 |
| method<br /><br />string<br /><br />Required                 | Method of payment.<br /><br />**Allowable Values:**<br /><br />`ACH`, `CHECK`, `DEBIT`, `CASH`                                                                                            |
| payment\_source\_token<br /><br />string<br /><br />Optional | Unique identifier of the payment source. Required for ACH payments.<br /><br />**Allowable Values:**<br /><br />36 char max<br /><br />Existing payment source token                      |
| amount<br /><br />decimal<br /><br />Required                | Amount of the payment.<br /><br />**Allowable Values:**<br /><br />0 min                                                                                                                  |
| 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` |
| impact\_time<br /><br />datetime<br /><br />Optional         | Date and time when the payment impacts the account balance and fee calculations.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                 |
| description<br /><br />string<br /><br />Required            | Description of the payment.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                      |
| metadata<br /><br />string<br /><br />Optional               | Customer-defined additional information about the payment (for example, a check number).<br /><br />**Allowable Values:**<br /><br />255 char max                                         |
| hold\_days<br /><br />integer<br /><br />Optional            | Overrides the configured default number of days for which to hold ACH and check payments.<br /><br />**Allowable Values:**<br /><br />0–30                                                |

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

```json JSON lines wrap theme={null}
{
  "token": "payment_token_1239",
  "method": "ACH",
  "payment_source_token": "payment_source_token_1112",
  "amount": 2500,
  "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.<br /><br />If in the `detail_object`, unique identifier of the detail object.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                 |
| account\_token<br /><br />string<br /><br />Returned                                   | Unique identifier of the credit account on which the payment is made.<br /><br />**Allowable Values:**<br /><br />36 char max<br /><br />Existing account token                                                                                                                         |
| method<br /><br />string<br /><br />Returned                                           | Method of payment.<br /><br />**Allowable Values:**<br /><br />`ACH`, `CHECK`, `DEBIT`, `CASH`                                                                                                                                                                                          |
| payment\_source\_token<br /><br />string<br /><br />Conditionally returned             | Unique identifier of the payment source.<br /><br />Required for ACH payments.<br /><br />**Allowable Values:**<br /><br />Existing payment source token                                                                                                                                |
| payment\_schedule\_token<br /><br />string<br /><br />Conditionally returned           | Unique identifier of the payment schedule.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                      |
| amount<br /><br />decimal<br /><br />Returned                                          | Total amount of the payment.<br /><br />**Allowable Values:**<br /><br />0 min                                                                                                                                                                                                          |
| 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`                                                                                               |
| status<br /><br />string<br /><br />Returned                                           | Current status of the payment or refund.<br /><br />**Allowable Values:**<br /><br />`INITIATED`, `PENDING`, `PROCESSING`, `SUBMITTED`, `CANCELLED`, `COMPLETED`, `RETURNED`, `REFUNDED`, `SYS_ERROR`, `ACH_ERROR`                                                                      |
| description<br /><br />string<br /><br />Returned                                      | Description of the payment.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                    |
| metadata<br /><br />string<br /><br />Conditionally returned                           | Customer-defined additional information about the payment (for example, a check number).<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                       |
| hold\_days<br /><br />integer<br /><br />Returned                                      | After a payment completes, the number of days to hold the available credit on the account before increasing it.<br /><br />**Allowable Values:**<br /><br />Any integer                                                                                                                 |
| hold\_end\_time<br /><br />datetime<br /><br />Conditionally returned                  | Date and time when the available credit hold is released.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                                                                                                                                      |
| is\_manually\_released<br /><br />boolean<br /><br />Conditionally returned            | Whether the available credit hold was manually released for this payment.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`false`                                                                                                        |
| on\_hold<br /><br />boolean<br /><br />Conditionally returned                          | Whether the available credit is on hold for this payment.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`false`                                                                                                                        |
| returned\_details<br /><br />object<br /><br />Conditionally returned                  | Contains information on a returned payment.<br /><br />**Allowable Values:**<br /><br />Existing `returned_details` object                                                                                                                                                              |
| returned\_details.**return\_code**<br /><br />string<br /><br />Returned               | Return code for the returned payment. For more, see <a href="/developer-guides/ach-origination/#_nacha_ach_return_codes">NACHA ACH return codes</a>.<br /><br />**Allowable Values:**<br /><br />Valid return code                                                                      |
| returned\_details.**return\_reason**<br /><br />string<br /><br />Returned             | Reason the payment was returned. For more, see <a href="/developer-guides/ach-origination/#_nacha_ach_return_codes">NACHA ACH return codes</a>.<br /><br />**Allowable Values:**<br /><br />Valid return reason                                                                         |
| refund\_details<br /><br />object<br /><br />Conditionally returned                    | Contains details for a refund.<br /><br />**Allowable Values:**<br /><br />Existing `refund_details` object                                                                                                                                                                             |
| refund\_details.**method**<br /><br />string<br /><br />Returned                       | Payment instrument used to issue the refund.<br /><br />**Allowable Values:**<br /><br />`ACH`, `CHECK`                                                                                                                                                                                 |
| refund\_details.**description**<br /><br />string<br /><br />Returned                  | Description of the refund.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                     |
| refund\_details.**status**<br /><br />string<br /><br />Returned                       | Current status of the refund.<br /><br />**Allowable Values:**<br /><br />`INITIATED`, `PENDING`, `PROCESSING`, `SUBMITTED`, `CANCELLED`, `COMPLETED`, `RETURNED`                                                                                                                       |
| waive\_returned\_payment\_fee<br /><br />boolean<br /><br />Conditionally returned     | A value of `true` indicates that a returned payment fee should not be applied. The default value of this field is `false`.<br /><br />This field is only considered when transitioning the status of the fee to `REFUNDED`.<br /><br />**Allowable Values:**<br /><br />`true`, `false` |
| created\_time<br /><br />datetime<br /><br />Returned                                  | Date and time when the payment 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 />Returned                                  | Date and time when the payment was last updated on Marqeta’s credit platform, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                                                                                                          |
| transitions<br /><br />array of objects<br /><br />Returned                            | Contains one or more `transitions` objects, which contain information about a payment status transition.<br /><br />**Allowable Values:**<br /><br />One or more `transitions` objects                                                                                                  |
| transitions\[].**token**<br /><br />string<br /><br />Returned                         | Unique identifier of the payment status transition.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                             |
| transitions\[].**account\_token**<br /><br />string<br /><br />Returned                | Unique identifier of the credit account on which you want to transition a payment status.<br /><br />**Allowable Values:**<br /><br />Existing account token                                                                                                                            |
| transitions\[].**payment\_token**<br /><br />string<br /><br />Returned                | Unique identifier of the payment whose status you want to transition.<br /><br />**Allowable Values:**<br /><br />Existing payment token                                                                                                                                                |
| transitions\[].**status**<br /><br />string<br /><br />Returned                        | Current status of the payment or refund.<br /><br />**Allowable Values:**<br /><br />`INITIATED`, `PENDING`, `PROCESSING`, `SUBMITTED`, `CANCELLED`, `COMPLETED`, `RETURNED`, `REFUNDED`, `SYS_ERROR`, `ACH_ERROR`                                                                      |
| transitions\[].**created\_time**<br /><br />datetime<br /><br />Conditionally returned | Date and time when the payment transition was created on Marqeta’s credit platform, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                                                                                                    |
| allocations<br /><br />array of objects<br /><br />Conditionally returned              | List of objects that contain information about how a payment is allocated.<br /><br />**Allowable Values:**<br /><br />List of payment allocations                                                                                                                                      |
| allocations\[].**bucket**<br /><br />undefined<br /><br />Returned                     | Category to which a portion of the payment is allocated.<br /><br />**Allowable Values:**<br /><br />`PRINCIPAL`, `INTEREST`, `FEES`<br /><br />36 char max                                                                                                                             |
| allocations\[].**amount**<br /><br />decimal<br /><br />Returned                       | Total amount of the payment allocation.<br /><br />**Allowable Values:**<br /><br />0 min                                                                                                                                                                                               |
| program\_migration\_time<br /><br />datetime<br /><br />Conditionally returned         | Date and time when the statement summary was migrated to Marqeta’s credit platform, in UTC.<br /><br />The value of this field is `null` if it has not been migrated.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                          |

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

```json JSON expandable lines wrap theme={null}
{
  "token": "4749ab00-fec1-471c-ac5b-b8d31d06d7e4",
  "account_token": "7d68f45b-1232-4283-a0ea-6b0418d37692",
  "method": "ACH",
  "payment_source_token": "4474c16b-7ba7-435b-8854-237d492e3f32",
  "amount": 2500,
  "currency_code": "USD",
  "status": "COMPLETED",
  "description": "Account statement payment",
  "metadata": "\\\"bank_account_last_4_digits\\\":\\\"7234\\\\\"bank_name\\\":\\\"Bank Finance Plus\\\"",
  "hold_days": 1,
  "hold_end_time": "2024-02-03T11:32:24.727Z",
  "is_manually_released": false,
  "on_hold": false,
  "returned_details": null,
  "refund_details": null,
  "created_time": "2024-01-31T15:03:09.717Z",
  "updated_time": "2024-02-03T12:00:30.072Z",
  "transitions": [
    {
      "token": "b62d45d5-4495-4490-a898-3781229b235d",
      "account_token": "7d68f45b-1232-4283-a0ea-6b0418d37692",
      "payment_token": "4749ab00-fec1-471c-ac5b-b8d31d06d7e4",
      "status": "PROCESSING",
      "created_time": "2024-02-01T02:04:11.645Z"
    },
    {
      "token": "82d79178-5c97-41c2-80e5-bd99bb6bb61c",
      "account_token": "7d68f45b-1232-4283-a0ea-6b0418d37692",
      "payment_token": "4749ab00-fec1-471c-ac5b-b8d31d06d7e4",
      "status": "SUBMITTED",
      "created_time": "2024-02-01T03:39:22.505Z"
    },
    {
      "token": "c2a83d12-eeff-460a-b88a-bf7a2e40b251",
      "account_token": "7d68f45b-1232-4283-a0ea-6b0418d37692",
      "payment_token": "4749ab00-fec1-471c-ac5b-b8d31d06d7e4",
      "status": "PENDING",
      "created_time": "2024-01-31T15:30:45.028Z"
    },
    {
      "token": "156b5134-b37d-49cf-89d5-7123b321ba5c",
      "account_token": "7d68f45b-1232-4283-a0ea-6b0418d37692",
      "payment_token": "4749ab00-fec1-471c-ac5b-b8d31d06d7e4",
      "status": "COMPLETED",
      "created_time": "2024-02-02T11:32:24.727Z"
    },
    {
      "token": "64ca6c83-937c-4d37-86ae-14766bf87540",
      "account_token": "7d68f45b-1232-4283-a0ea-6b0418d37692",
      "payment_token": "4749ab00-fec1-471c-ac5b-b8d31d06d7e4",
      "status": "INITIATED",
      "created_time": "2024-01-31T15:03:09.723Z"
    }
  ]
}
```

<h2 id="list_payments">
  List account payments
</h2>

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

Retrieve an array of payments on a 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 to retrieve payments.<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                                                                                                                                                                                                                                                                                                                                                                                                  |
| -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| start\_date<br /><br />date<br /><br />Optional          | Beginning of the date range of the payments to return.<br /><br />**Allowable Values:**<br /><br />Example: 2024-01-01                                                                                                                                                                                                                                                                                       |
| end\_date<br /><br />date<br /><br />Optional            | End of the date range of the payments to return.<br /><br />**Allowable Values:**<br /><br />Example: 2024-02-01                                                                                                                                                                                                                                                                                             |
| count<br /><br />integer<br /><br />Optional             | Number of account payments resources to retrieve.<br /><br />**Allowable Values:**<br /><br />1–100                                                                                                                                                                                                                                                                                                          |
| 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` |
| statuses<br /><br />array of strings<br /><br />Optional | Array of statuses by which to filter payments.<br /><br />**Allowable Values:**<br /><br />`INITIATED`, `PENDING`, `PROCESSING`, `SUBMITTED`, `CANCELLED`, `COMPLETED`, `RETURNED`, `REFUNDED`, `SYS_ERROR`, `ACH_ERROR`                                                                                                                                                                                     |

<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                                           | Contains one or more payments on a credit account.<br /><br />**Allowable Values:**<br /><br />One or more payment objects                                                                                                                                                              |
| data\[].**token**<br /><br />string<br /><br />Returned                                        | Unique identifier of the payment.<br /><br />If in the `detail_object`, unique identifier of the detail object.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                 |
| data\[].**account\_token**<br /><br />string<br /><br />Returned                               | Unique identifier of the credit account on which the payment is made.<br /><br />**Allowable Values:**<br /><br />36 char max<br /><br />Existing account token                                                                                                                         |
| data\[].**method**<br /><br />string<br /><br />Returned                                       | Method of payment.<br /><br />**Allowable Values:**<br /><br />`ACH`, `CHECK`, `DEBIT`, `CASH`                                                                                                                                                                                          |
| data\[].**payment\_source\_token**<br /><br />string<br /><br />Conditionally returned         | Unique identifier of the payment source.<br /><br />Required for ACH payments.<br /><br />**Allowable Values:**<br /><br />Existing payment source token                                                                                                                                |
| data\[].**payment\_schedule\_token**<br /><br />string<br /><br />Conditionally returned       | Unique identifier of the payment schedule.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                      |
| data\[].**amount**<br /><br />decimal<br /><br />Returned                                      | Total amount of the payment.<br /><br />**Allowable Values:**<br /><br />0 min                                                                                                                                                                                                          |
| 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\[].**status**<br /><br />string<br /><br />Returned                                       | Current status of the payment or refund.<br /><br />**Allowable Values:**<br /><br />`INITIATED`, `PENDING`, `PROCESSING`, `SUBMITTED`, `CANCELLED`, `COMPLETED`, `RETURNED`, `REFUNDED`, `SYS_ERROR`, `ACH_ERROR`                                                                      |
| data\[].**description**<br /><br />string<br /><br />Returned                                  | Description of the payment.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                    |
| data\[].**metadata**<br /><br />string<br /><br />Conditionally returned                       | Customer-defined additional information about the payment (for example, a check number).<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                       |
| data\[].**hold\_days**<br /><br />integer<br /><br />Returned                                  | After a payment completes, the number of days to hold the available credit on the account before increasing it.<br /><br />**Allowable Values:**<br /><br />Any integer                                                                                                                 |
| data\[].**hold\_end\_time**<br /><br />datetime<br /><br />Conditionally returned              | Date and time when the available credit hold is released.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                                                                                                                                      |
| data\[].**is\_manually\_released**<br /><br />boolean<br /><br />Conditionally returned        | Whether the available credit hold was manually released for this payment.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`false`                                                                                                        |
| data\[].**on\_hold**<br /><br />boolean<br /><br />Conditionally returned                      | Whether the available credit is on hold for this payment.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`false`                                                                                                                        |
| data\[].**returned\_details**<br /><br />object<br /><br />Conditionally returned              | Contains information on a returned payment.<br /><br />**Allowable Values:**<br /><br />Existing `returned_details` object                                                                                                                                                              |
| data\[].returned\_details.**return\_code**<br /><br />string<br /><br />Returned               | Return code for the returned payment. For more, see <a href="/developer-guides/ach-origination/#_nacha_ach_return_codes">NACHA ACH return codes</a>.<br /><br />**Allowable Values:**<br /><br />Valid return code                                                                      |
| data\[].returned\_details.**return\_reason**<br /><br />string<br /><br />Returned             | Reason the payment was returned. For more, see <a href="/developer-guides/ach-origination/#_nacha_ach_return_codes">NACHA ACH return codes</a>.<br /><br />**Allowable Values:**<br /><br />Valid return reason                                                                         |
| data\[].**refund\_details**<br /><br />object<br /><br />Conditionally returned                | Contains details for a refund.<br /><br />**Allowable Values:**<br /><br />Existing `refund_details` object                                                                                                                                                                             |
| data\[].refund\_details.**method**<br /><br />string<br /><br />Returned                       | Payment instrument used to issue the refund.<br /><br />**Allowable Values:**<br /><br />`ACH`, `CHECK`                                                                                                                                                                                 |
| data\[].refund\_details.**description**<br /><br />string<br /><br />Returned                  | Description of the refund.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                     |
| data\[].refund\_details.**status**<br /><br />string<br /><br />Returned                       | Current status of the refund.<br /><br />**Allowable Values:**<br /><br />`INITIATED`, `PENDING`, `PROCESSING`, `SUBMITTED`, `CANCELLED`, `COMPLETED`, `RETURNED`                                                                                                                       |
| data\[].**waive\_returned\_payment\_fee**<br /><br />boolean<br /><br />Conditionally returned | A value of `true` indicates that a returned payment fee should not be applied. The default value of this field is `false`.<br /><br />This field is only considered when transitioning the status of the fee to `REFUNDED`.<br /><br />**Allowable Values:**<br /><br />`true`, `false` |
| data\[].**created\_time**<br /><br />datetime<br /><br />Returned                              | Date and time when the payment 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 />Returned                              | Date and time when the payment was last updated on Marqeta’s credit platform, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                                                                                                          |
| data\[].**transitions**<br /><br />array of objects<br /><br />Returned                        | Contains one or more `transitions` objects, which contain information about a payment status transition.<br /><br />**Allowable Values:**<br /><br />One or more `transitions` objects                                                                                                  |
| data\[].transitions\[].**token**<br /><br />string<br /><br />Returned                         | Unique identifier of the payment status transition.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                             |
| data\[].transitions\[].**account\_token**<br /><br />string<br /><br />Returned                | Unique identifier of the credit account on which you want to transition a payment status.<br /><br />**Allowable Values:**<br /><br />Existing account token                                                                                                                            |
| data\[].transitions\[].**payment\_token**<br /><br />string<br /><br />Returned                | Unique identifier of the payment whose status you want to transition.<br /><br />**Allowable Values:**<br /><br />Existing payment token                                                                                                                                                |
| data\[].transitions\[].**status**<br /><br />string<br /><br />Returned                        | Current status of the payment or refund.<br /><br />**Allowable Values:**<br /><br />`INITIATED`, `PENDING`, `PROCESSING`, `SUBMITTED`, `CANCELLED`, `COMPLETED`, `RETURNED`, `REFUNDED`, `SYS_ERROR`, `ACH_ERROR`                                                                      |
| data\[].transitions\[].**created\_time**<br /><br />datetime<br /><br />Conditionally returned | Date and time when the payment transition was created on Marqeta’s credit platform, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                                                                                                    |
| data\[].**allocations**<br /><br />array of objects<br /><br />Conditionally returned          | List of objects that contain information about how a payment is allocated.<br /><br />**Allowable Values:**<br /><br />List of payment allocations                                                                                                                                      |
| data\[].allocations\[].**bucket**<br /><br />undefined<br /><br />Returned                     | Category to which a portion of the payment is allocated.<br /><br />**Allowable Values:**<br /><br />`PRINCIPAL`, `INTEREST`, `FEES`<br /><br />36 char max                                                                                                                             |
| data\[].allocations\[].**amount**<br /><br />decimal<br /><br />Returned                       | Total amount of the payment allocation.<br /><br />**Allowable Values:**<br /><br />0 min                                                                                                                                                                                               |
| data\[].**program\_migration\_time**<br /><br />datetime<br /><br />Conditionally returned     | Date and time when the statement summary was migrated to Marqeta’s credit platform, in UTC.<br /><br />The value of this field is `null` if it has not been migrated.<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": 2,
  "is_more": false,
  "data": [
    {
      "token": "4749ab00-fec1-471c-ac5b-b8d31d06d7e4",
      "account_token": "7d68f45b-1232-4283-a0ea-6b0418d37692",
      "method": "ACH",
      "payment_source_token": "4474c16b-7ba7-435b-8854-237d492e3f32",
      "amount": 2500,
      "currency_code": "USD",
      "status": "COMPLETED",
      "description": "Account statement payment",
      "metadata": "\\\"bank_account_last_4_digits\\\":\\\"7234\\\\\"bank_name\\\":\\\"Bank Finance Plus\\\"",
      "hold_days": 1,
      "hold_end_time": "2024-02-03T11:32:24.727Z",
      "is_manually_released": false,
      "on_hold": false,
      "returned_details": null,
      "created_time": "2024-01-31T15:03:09.717Z",
      "updated_time": "2024-02-03T12:00:30.072Z",
      "transitions": [
        {
          "token": "b62d45d5-4495-4490-a898-3781229b235d",
          "account_token": "7d68f45b-1232-4283-a0ea-6b0418d37692",
          "payment_token": "4749ab00-fec1-471c-ac5b-b8d31d06d7e4",
          "status": "PROCESSING",
          "created_time": "2024-02-01T02:04:11.645Z"
        },
        {
          "token": "82d79178-5c97-41c2-80e5-bd99bb6bb61c",
          "account_token": "7d68f45b-1232-4283-a0ea-6b0418d37692",
          "payment_token": "4749ab00-fec1-471c-ac5b-b8d31d06d7e4",
          "status": "SUBMITTED",
          "created_time": "2024-02-01T03:39:22.505Z"
        },
        {
          "token": "c2a83d12-eeff-460a-b88a-bf7a2e40b251",
          "account_token": "7d68f45b-1232-4283-a0ea-6b0418d37692",
          "payment_token": "4749ab00-fec1-471c-ac5b-b8d31d06d7e4",
          "status": "PENDING",
          "created_time": "2024-01-31T15:30:45.028Z"
        },
        {
          "token": "156b5134-b37d-49cf-89d5-7123b321ba5c",
          "account_token": "7d68f45b-1232-4283-a0ea-6b0418d37692",
          "payment_token": "4749ab00-fec1-471c-ac5b-b8d31d06d7e4",
          "status": "COMPLETED",
          "created_time": "2024-02-02T11:32:24.727Z"
        },
        {
          "token": "64ca6c83-937c-4d37-86ae-14766bf87540",
          "account_token": "7d68f45b-1232-4283-a0ea-6b0418d37692",
          "payment_token": "4749ab00-fec1-471c-ac5b-b8d31d06d7e4",
          "status": "INITIATED",
          "created_time": "2024-01-31T15:03:09.723Z"
        }
      ]
    },
    {
      "token": "my_payment_25",
      "account_token": "my_account_token_12",
      "method": "CHECK",
      "amount": 25,
      "currency_code": "USD",
      "status": "COMPLETED",
      "description": "minimum payment",
      "hold_days": 0,
      "is_manually_released": false,
      "on_hold": false,
      "created_time": "2024-09-03T23:03:05.675Z",
      "updated_time": "2024-09-03T23:03:05.675Z",
      "transitions": [
        {
          "token": "my_transition_token1234",
          "account_token": "my_account_token_12",
          "payment_token": "my_payment_25",
          "status": "COMPLETED",
          "created_time": "2024-09-03T23:03:05.683Z"
        }
      ],
      "allocations": [
        {
          "bucket": "PRINCIPAL",
          "amount": 25
        },
        {
          "bucket": "INTEREST",
          "amount": 15
        },
        {
          "bucket": "FEES",
          "amount": 5
        }
      ]
    }
  ]
}
```

<h2 id="retrieve_payment">
  Retrieve account payment
</h2>

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

Retrieve a payment for a 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 to retrieve a payment.<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\_token<br /><br />string<br /><br />Required | Unique identifier of the payment to retrieve.<br /><br />Send a `GET` request to `/credit/accounts/{token}/payments` to retrieve existing payment tokens.<br /><br />**Allowable Values:**<br /><br />Existing payment token                  |

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

| Fields                                                                                 | Description                                                                                                                                                                                                                                                                             |
| -------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Returned                                            | Unique identifier of the payment.<br /><br />If in the `detail_object`, unique identifier of the detail object.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                 |
| account\_token<br /><br />string<br /><br />Returned                                   | Unique identifier of the credit account on which the payment is made.<br /><br />**Allowable Values:**<br /><br />36 char max<br /><br />Existing account token                                                                                                                         |
| method<br /><br />string<br /><br />Returned                                           | Method of payment.<br /><br />**Allowable Values:**<br /><br />`ACH`, `CHECK`, `DEBIT`, `CASH`                                                                                                                                                                                          |
| payment\_source\_token<br /><br />string<br /><br />Conditionally returned             | Unique identifier of the payment source.<br /><br />Required for ACH payments.<br /><br />**Allowable Values:**<br /><br />Existing payment source token                                                                                                                                |
| payment\_schedule\_token<br /><br />string<br /><br />Conditionally returned           | Unique identifier of the payment schedule.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                      |
| amount<br /><br />decimal<br /><br />Returned                                          | Total amount of the payment.<br /><br />**Allowable Values:**<br /><br />0 min                                                                                                                                                                                                          |
| 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`                                                                                               |
| status<br /><br />string<br /><br />Returned                                           | Current status of the payment or refund.<br /><br />**Allowable Values:**<br /><br />`INITIATED`, `PENDING`, `PROCESSING`, `SUBMITTED`, `CANCELLED`, `COMPLETED`, `RETURNED`, `REFUNDED`, `SYS_ERROR`, `ACH_ERROR`                                                                      |
| description<br /><br />string<br /><br />Returned                                      | Description of the payment.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                    |
| metadata<br /><br />string<br /><br />Conditionally returned                           | Customer-defined additional information about the payment (for example, a check number).<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                       |
| hold\_days<br /><br />integer<br /><br />Returned                                      | After a payment completes, the number of days to hold the available credit on the account before increasing it.<br /><br />**Allowable Values:**<br /><br />Any integer                                                                                                                 |
| hold\_end\_time<br /><br />datetime<br /><br />Conditionally returned                  | Date and time when the available credit hold is released.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                                                                                                                                      |
| is\_manually\_released<br /><br />boolean<br /><br />Conditionally returned            | Whether the available credit hold was manually released for this payment.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`false`                                                                                                        |
| on\_hold<br /><br />boolean<br /><br />Conditionally returned                          | Whether the available credit is on hold for this payment.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`false`                                                                                                                        |
| returned\_details<br /><br />object<br /><br />Conditionally returned                  | Contains information on a returned payment.<br /><br />**Allowable Values:**<br /><br />Existing `returned_details` object                                                                                                                                                              |
| returned\_details.**return\_code**<br /><br />string<br /><br />Returned               | Return code for the returned payment. For more, see <a href="/developer-guides/ach-origination/#_nacha_ach_return_codes">NACHA ACH return codes</a>.<br /><br />**Allowable Values:**<br /><br />Valid return code                                                                      |
| returned\_details.**return\_reason**<br /><br />string<br /><br />Returned             | Reason the payment was returned. For more, see <a href="/developer-guides/ach-origination/#_nacha_ach_return_codes">NACHA ACH return codes</a>.<br /><br />**Allowable Values:**<br /><br />Valid return reason                                                                         |
| refund\_details<br /><br />object<br /><br />Conditionally returned                    | Contains details for a refund.<br /><br />**Allowable Values:**<br /><br />Existing `refund_details` object                                                                                                                                                                             |
| refund\_details.**method**<br /><br />string<br /><br />Returned                       | Payment instrument used to issue the refund.<br /><br />**Allowable Values:**<br /><br />`ACH`, `CHECK`                                                                                                                                                                                 |
| refund\_details.**description**<br /><br />string<br /><br />Returned                  | Description of the refund.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                     |
| refund\_details.**status**<br /><br />string<br /><br />Returned                       | Current status of the refund.<br /><br />**Allowable Values:**<br /><br />`INITIATED`, `PENDING`, `PROCESSING`, `SUBMITTED`, `CANCELLED`, `COMPLETED`, `RETURNED`                                                                                                                       |
| waive\_returned\_payment\_fee<br /><br />boolean<br /><br />Conditionally returned     | A value of `true` indicates that a returned payment fee should not be applied. The default value of this field is `false`.<br /><br />This field is only considered when transitioning the status of the fee to `REFUNDED`.<br /><br />**Allowable Values:**<br /><br />`true`, `false` |
| created\_time<br /><br />datetime<br /><br />Returned                                  | Date and time when the payment 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 />Returned                                  | Date and time when the payment was last updated on Marqeta’s credit platform, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                                                                                                          |
| transitions<br /><br />array of objects<br /><br />Returned                            | Contains one or more `transitions` objects, which contain information about a payment status transition.<br /><br />**Allowable Values:**<br /><br />One or more `transitions` objects                                                                                                  |
| transitions\[].**token**<br /><br />string<br /><br />Returned                         | Unique identifier of the payment status transition.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                             |
| transitions\[].**account\_token**<br /><br />string<br /><br />Returned                | Unique identifier of the credit account on which you want to transition a payment status.<br /><br />**Allowable Values:**<br /><br />Existing account token                                                                                                                            |
| transitions\[].**payment\_token**<br /><br />string<br /><br />Returned                | Unique identifier of the payment whose status you want to transition.<br /><br />**Allowable Values:**<br /><br />Existing payment token                                                                                                                                                |
| transitions\[].**status**<br /><br />string<br /><br />Returned                        | Current status of the payment or refund.<br /><br />**Allowable Values:**<br /><br />`INITIATED`, `PENDING`, `PROCESSING`, `SUBMITTED`, `CANCELLED`, `COMPLETED`, `RETURNED`, `REFUNDED`, `SYS_ERROR`, `ACH_ERROR`                                                                      |
| transitions\[].**created\_time**<br /><br />datetime<br /><br />Conditionally returned | Date and time when the payment transition was created on Marqeta’s credit platform, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                                                                                                    |
| allocations<br /><br />array of objects<br /><br />Conditionally returned              | List of objects that contain information about how a payment is allocated.<br /><br />**Allowable Values:**<br /><br />List of payment allocations                                                                                                                                      |
| allocations\[].**bucket**<br /><br />undefined<br /><br />Returned                     | Category to which a portion of the payment is allocated.<br /><br />**Allowable Values:**<br /><br />`PRINCIPAL`, `INTEREST`, `FEES`<br /><br />36 char max                                                                                                                             |
| allocations\[].**amount**<br /><br />decimal<br /><br />Returned                       | Total amount of the payment allocation.<br /><br />**Allowable Values:**<br /><br />0 min                                                                                                                                                                                               |
| program\_migration\_time<br /><br />datetime<br /><br />Conditionally returned         | Date and time when the statement summary was migrated to Marqeta’s credit platform, in UTC.<br /><br />The value of this field is `null` if it has not been migrated.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                          |

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

```json JSON expandable lines wrap theme={null}
{
  "token": "4749ab00-fec1-471c-ac5b-b8d31d06d7e4",
  "account_token": "7d68f45b-1232-4283-a0ea-6b0418d37692",
  "method": "ACH",
  "payment_source_token": "4474c16b-7ba7-435b-8854-237d492e3f32",
  "amount": 2500,
  "currency_code": "USD",
  "status": "COMPLETED",
  "description": "Account statement payment",
  "metadata": "\\\"bank_account_last_4_digits\\\":\\\"7234\\\\\"bank_name\\\":\\\"Bank Finance Plus\\\"",
  "hold_days": 1,
  "hold_end_time": "2024-02-03T11:32:24.727Z",
  "is_manually_released": false,
  "on_hold": false,
  "returned_details": null,
  "created_time": "2024-01-31T15:03:09.717Z",
  "updated_time": "2024-02-03T12:00:30.072Z",
  "transitions": [
    {
      "token": "b62d45d5-4495-4490-a898-3781229b235d",
      "account_token": "7d68f45b-1232-4283-a0ea-6b0418d37692",
      "payment_token": "4749ab00-fec1-471c-ac5b-b8d31d06d7e4",
      "status": "PROCESSING",
      "created_time": "2024-02-01T02:04:11.645Z"
    },
    {
      "token": "82d79178-5c97-41c2-80e5-bd99bb6bb61c",
      "account_token": "7d68f45b-1232-4283-a0ea-6b0418d37692",
      "payment_token": "4749ab00-fec1-471c-ac5b-b8d31d06d7e4",
      "status": "SUBMITTED",
      "created_time": "2024-02-01T03:39:22.505Z"
    },
    {
      "token": "c2a83d12-eeff-460a-b88a-bf7a2e40b251",
      "account_token": "7d68f45b-1232-4283-a0ea-6b0418d37692",
      "payment_token": "4749ab00-fec1-471c-ac5b-b8d31d06d7e4",
      "status": "PENDING",
      "created_time": "2024-01-31T15:30:45.028Z"
    },
    {
      "token": "156b5134-b37d-49cf-89d5-7123b321ba5c",
      "account_token": "7d68f45b-1232-4283-a0ea-6b0418d37692",
      "payment_token": "4749ab00-fec1-471c-ac5b-b8d31d06d7e4",
      "status": "COMPLETED",
      "created_time": "2024-02-02T11:32:24.727Z"
    },
    {
      "token": "64ca6c83-937c-4d37-86ae-14766bf87540",
      "account_token": "7d68f45b-1232-4283-a0ea-6b0418d37692",
      "payment_token": "4749ab00-fec1-471c-ac5b-b8d31d06d7e4",
      "status": "INITIATED",
      "created_time": "2024-01-31T15:03:09.723Z"
    }
  ]
}
```

<h2 id="release_payment_hold">
  Release payment hold
</h2>

**Action:** `POST`\
**Endpoint:** `/credit/accounts/{account_token}/payments/{payment_token}/releasehold`

Manually release a payment hold on a credit account.

<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 a payment hold is being released.<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\_token<br /><br />string<br /><br />Required | Unique identifier of the payment currently on hold.<br /><br />Send a `GET` request to `/credit/accounts/{account_token}/payments` to retrieve existing payment tokens.<br /><br />**Allowable Values:**<br /><br />Existing payment token              |

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

| Fields                                                                                 | Description                                                                                                                                                                                                                                                                             |
| -------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Returned                                            | Unique identifier of the payment.<br /><br />If in the `detail_object`, unique identifier of the detail object.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                 |
| account\_token<br /><br />string<br /><br />Returned                                   | Unique identifier of the credit account on which the payment is made.<br /><br />**Allowable Values:**<br /><br />36 char max<br /><br />Existing account token                                                                                                                         |
| method<br /><br />string<br /><br />Returned                                           | Method of payment.<br /><br />**Allowable Values:**<br /><br />`ACH`, `CHECK`, `DEBIT`, `CASH`                                                                                                                                                                                          |
| payment\_source\_token<br /><br />string<br /><br />Conditionally returned             | Unique identifier of the payment source.<br /><br />Required for ACH payments.<br /><br />**Allowable Values:**<br /><br />Existing payment source token                                                                                                                                |
| payment\_schedule\_token<br /><br />string<br /><br />Conditionally returned           | Unique identifier of the payment schedule.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                      |
| amount<br /><br />decimal<br /><br />Returned                                          | Total amount of the payment.<br /><br />**Allowable Values:**<br /><br />0 min                                                                                                                                                                                                          |
| 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`                                                                                               |
| status<br /><br />string<br /><br />Returned                                           | Current status of the payment or refund.<br /><br />**Allowable Values:**<br /><br />`INITIATED`, `PENDING`, `PROCESSING`, `SUBMITTED`, `CANCELLED`, `COMPLETED`, `RETURNED`, `REFUNDED`, `SYS_ERROR`, `ACH_ERROR`                                                                      |
| description<br /><br />string<br /><br />Returned                                      | Description of the payment.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                    |
| metadata<br /><br />string<br /><br />Conditionally returned                           | Customer-defined additional information about the payment (for example, a check number).<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                       |
| hold\_days<br /><br />integer<br /><br />Returned                                      | After a payment completes, the number of days to hold the available credit on the account before increasing it.<br /><br />**Allowable Values:**<br /><br />Any integer                                                                                                                 |
| hold\_end\_time<br /><br />datetime<br /><br />Conditionally returned                  | Date and time when the available credit hold is released.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                                                                                                                                      |
| is\_manually\_released<br /><br />boolean<br /><br />Conditionally returned            | Whether the available credit hold was manually released for this payment.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`false`                                                                                                        |
| on\_hold<br /><br />boolean<br /><br />Conditionally returned                          | Whether the available credit is on hold for this payment.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`false`                                                                                                                        |
| returned\_details<br /><br />object<br /><br />Conditionally returned                  | Contains information on a returned payment.<br /><br />**Allowable Values:**<br /><br />Existing `returned_details` object                                                                                                                                                              |
| returned\_details.**return\_code**<br /><br />string<br /><br />Returned               | Return code for the returned payment. For more, see <a href="/developer-guides/ach-origination/#_nacha_ach_return_codes">NACHA ACH return codes</a>.<br /><br />**Allowable Values:**<br /><br />Valid return code                                                                      |
| returned\_details.**return\_reason**<br /><br />string<br /><br />Returned             | Reason the payment was returned. For more, see <a href="/developer-guides/ach-origination/#_nacha_ach_return_codes">NACHA ACH return codes</a>.<br /><br />**Allowable Values:**<br /><br />Valid return reason                                                                         |
| refund\_details<br /><br />object<br /><br />Conditionally returned                    | Contains details for a refund.<br /><br />**Allowable Values:**<br /><br />Existing `refund_details` object                                                                                                                                                                             |
| refund\_details.**method**<br /><br />string<br /><br />Returned                       | Payment instrument used to issue the refund.<br /><br />**Allowable Values:**<br /><br />`ACH`, `CHECK`                                                                                                                                                                                 |
| refund\_details.**description**<br /><br />string<br /><br />Returned                  | Description of the refund.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                     |
| refund\_details.**status**<br /><br />string<br /><br />Returned                       | Current status of the refund.<br /><br />**Allowable Values:**<br /><br />`INITIATED`, `PENDING`, `PROCESSING`, `SUBMITTED`, `CANCELLED`, `COMPLETED`, `RETURNED`                                                                                                                       |
| waive\_returned\_payment\_fee<br /><br />boolean<br /><br />Conditionally returned     | A value of `true` indicates that a returned payment fee should not be applied. The default value of this field is `false`.<br /><br />This field is only considered when transitioning the status of the fee to `REFUNDED`.<br /><br />**Allowable Values:**<br /><br />`true`, `false` |
| created\_time<br /><br />datetime<br /><br />Returned                                  | Date and time when the payment 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 />Returned                                  | Date and time when the payment was last updated on Marqeta’s credit platform, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                                                                                                          |
| transitions<br /><br />array of objects<br /><br />Returned                            | Contains one or more `transitions` objects, which contain information about a payment status transition.<br /><br />**Allowable Values:**<br /><br />One or more `transitions` objects                                                                                                  |
| transitions\[].**token**<br /><br />string<br /><br />Returned                         | Unique identifier of the payment status transition.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                             |
| transitions\[].**account\_token**<br /><br />string<br /><br />Returned                | Unique identifier of the credit account on which you want to transition a payment status.<br /><br />**Allowable Values:**<br /><br />Existing account token                                                                                                                            |
| transitions\[].**payment\_token**<br /><br />string<br /><br />Returned                | Unique identifier of the payment whose status you want to transition.<br /><br />**Allowable Values:**<br /><br />Existing payment token                                                                                                                                                |
| transitions\[].**status**<br /><br />string<br /><br />Returned                        | Current status of the payment or refund.<br /><br />**Allowable Values:**<br /><br />`INITIATED`, `PENDING`, `PROCESSING`, `SUBMITTED`, `CANCELLED`, `COMPLETED`, `RETURNED`, `REFUNDED`, `SYS_ERROR`, `ACH_ERROR`                                                                      |
| transitions\[].**created\_time**<br /><br />datetime<br /><br />Conditionally returned | Date and time when the payment transition was created on Marqeta’s credit platform, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                                                                                                    |
| allocations<br /><br />array of objects<br /><br />Conditionally returned              | List of objects that contain information about how a payment is allocated.<br /><br />**Allowable Values:**<br /><br />List of payment allocations                                                                                                                                      |
| allocations\[].**bucket**<br /><br />undefined<br /><br />Returned                     | Category to which a portion of the payment is allocated.<br /><br />**Allowable Values:**<br /><br />`PRINCIPAL`, `INTEREST`, `FEES`<br /><br />36 char max                                                                                                                             |
| allocations\[].**amount**<br /><br />decimal<br /><br />Returned                       | Total amount of the payment allocation.<br /><br />**Allowable Values:**<br /><br />0 min                                                                                                                                                                                               |
| program\_migration\_time<br /><br />datetime<br /><br />Conditionally returned         | Date and time when the statement summary was migrated to Marqeta’s credit platform, in UTC.<br /><br />The value of this field is `null` if it has not been migrated.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                          |

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

```json JSON expandable lines wrap theme={null}
{
  "token": "my_payment_25",
  "account_token": "my_account_token_12",
  "method": "CHECK",
  "amount": 25,
  "currency_code": "USD",
  "status": "COMPLETED",
  "description": "minimum payment",
  "metadata": "check_number123",
  "hold_days": 5,
  "hold_end_time": "2024-09-09T22:48:09.721Z",
  "is_manually_released": true,
  "on_hold": false,
  "created_time": "2024-09-09T22:42:35.065Z",
  "updated_time": "2024-09-09T22:48:09.722Z",
  "transitions": [
    {
      "token": "my_transition_token1234",
      "account_token": "account-12",
      "payment_token": "my_payment_25",
      "status": "COMPLETED",
      "created_time": "2024-09-09T22:42:35.068Z"
    }
  ]
}
```

<h2 id="transition_payment">
  Transition account payment status
</h2>

**Action:** `POST`\
**Endpoint:** `/credit/accounts/{account_token}/payments/{payment_token}/transitions`

Transition a credit account payment’s status to a new status.

<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 transition a payment status.<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\_token<br /><br />string<br /><br />Required | Unique identifier of the payment whose status you want to transition.<br /><br />Send a `GET` request to `/credit/accounts/{account_token}/payments` endpoint to retrieve existing payment tokens for a given account.<br /><br />**Allowable Values:**<br /><br />Existing payment token |

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

| Fields                                                                | Description                                                                                                                                                                                                                                               |
| --------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Optional                           | Unique identifier of the payment status transition.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                               |
| status<br /><br />string<br /><br />Required                          | Current status of the payment or refund.<br /><br />**Allowable Values:**<br /><br />`INITIATED`, `PENDING`, `PROCESSING`, `SUBMITTED`, `CANCELLED`, `COMPLETED`, `RETURNED`, `REFUNDED`, `SYS_ERROR`, `ACH_ERROR`                                        |
| refund\_details<br /><br />object<br /><br />Optional                 | Contains details for a refund.<br /><br />**Allowable Values:**<br /><br />`method`, `description`                                                                                                                                                        |
| refund\_details.**method**<br /><br />string<br /><br />Required      | Payment instrument used to issue the refund.<br /><br />**Allowable Values:**<br /><br />`ACH`, `CHECK`                                                                                                                                                   |
| refund\_details.**description**<br /><br />string<br /><br />Required | Description of the refund.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                       |
| waive\_returned\_payment\_fee<br /><br />boolean<br /><br />Optional  | A value of `true` indicates that a returned payment fee should not be applied if one is applicable. This is false by default. This field is only considered during a transition to `REFUNDED`<br /><br />**Allowable Values:**<br /><br />`true`, `false` |

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

```json JSON lines wrap theme={null}
{
  "status": "RETURNED"
}
```

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

| Fields                                                              | Description                                                                                                                                                                                                        |
| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| token<br /><br />string<br /><br />Returned                         | Unique identifier of the payment status transition.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                        |
| account\_token<br /><br />string<br /><br />Returned                | Unique identifier of the credit account on which you want to transition a payment status.<br /><br />**Allowable Values:**<br /><br />Existing account token                                                       |
| payment\_token<br /><br />string<br /><br />Returned                | Unique identifier of the payment whose status you want to transition.<br /><br />**Allowable Values:**<br /><br />Existing payment token                                                                           |
| status<br /><br />string<br /><br />Returned                        | Current status of the payment or refund.<br /><br />**Allowable Values:**<br /><br />`INITIATED`, `PENDING`, `PROCESSING`, `SUBMITTED`, `CANCELLED`, `COMPLETED`, `RETURNED`, `REFUNDED`, `SYS_ERROR`, `ACH_ERROR` |
| created\_time<br /><br />datetime<br /><br />Conditionally returned | Date and time when the payment transition was created on Marqeta’s credit platform, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                               |

<h2 id="resend_webhook_event">
  Resend credit event notification
</h2>

**Action:** `POST`\
**Endpoint:** `/credit/webhooks/{event_type}/{resource_token}`

Resends a credit event notification to your webhook endpoint.

Although you send this request as a `POST`, all parameters are passed in the URL and the body is empty. The event notification is resent to your webhook endpoint and also returned in the response to this request.

For details on how to configure your webhook endpoint, see the About Webhooks [tutorial](/developer-guides/about-webhooks/#_tutorial). For the complete `/webhooks` endpoint reference, see [Webhooks](/core-api/webhooks/).

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

| Fields                                                | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ----------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| event\_type<br /><br />string<br /><br />Required     | Specifies the type of event you want to resend.<br /><br />**Allowable Values:**<br /><br />`ledgerentry`, `journalentry`, `accounttransition`, `accountstatement`, `paymenttransition`, `delinquencytransition`, `paymentreminders`, `substatus`, `accountsignupbonus`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| resource\_token<br /><br />string<br /><br />Required | Unique identifier of the resource for which you want to resend a notification.<br /><br />- Send a `GET` request to `/credit/accounts/{account_token}/journalentries` to retrieve existing journal entry tokens.<br />- Send a `GET` request to `/credit/accounts/{account_token}/ledgerentries` to retrieve existing ledger entry tokens.<br />- Send a `GET` request to `/accounts/{account_token}/accounttransitions` to retrieve existing account transition tokens.<br />- Send a `GET` request to `/credit/accounts/{account_token}/payments/{payment_token}` to retrieve existing payment transition tokens.<br />- Send a `GET` request to `/accounts/{account_token}/statements` to retrieve existing statement summary tokens.<br />- Send a `GET` request to `/accounts/{account_token}/delinquencystate/transitions` to retrieve existing delinquency state transition tokens.<br />- Send a `GET` request to `/accounts/{account_token}/statements/{statement_summary_token}/paymentreminders/{token}` to retrieve existing payment reminder tokens.<br />- Send a `GET` request to `/credit/substatuses` to retrieve existing substatus tokens.<br />- Send a `GET` request to `/credit/accounts` to retrieve existing credit account tokens and identify the specific account for the resend event.<br /><br />**Allowable Values:**<br /><br />Existing journal entry token, ledger entry token, account transition token, payment transition token, statement summary token, delinquency transition token, or substatus token |

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

| Fields                                                     | Description                                                                                                                       |
| ---------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| unused<br /><br />string<br /><br />Conditionally returned | Event notification that was resent to your webhook endpoint.<br /><br />**Allowable Values:**<br /><br />Valid event notification |

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

The following code block shows a sample of a resent `creditaccounttransitions` event.

```json JSON lines wrap theme={null}
{
  "token": "my_credit_account_transition_token1234",
  "account_token": "my_credit_account_token1234",
  "original_status": "UNACTIVATED",
  "status": "ACTIVE",
  "created_time": "2024-08-18T20:25:10.408Z"
}
```

The following code block shows a sample of a resent `creditaccountstatements` event.

```json JSON lines wrap theme={null}
{
  "token": "my_credit_account_statement_token",
  "account_token": "my_credit_account_token",
  "opening_balance": 496.45,
  "closing_balance": 506.41,
  "credit_limit": 500,
  "available_credit": 0,
  "past_due_amount": 10,
  "purchases": 0,
  "interest": 4.96,
  "fees": 15,
  "credits": 0,
  "payments": 10,
  "days_in_billing_cycle": 31,
  "cycle_type": "REVOLVING",
  "opening_date": "2025-03-01T05:00:00.000Z",
  "closing_date": "2025-04-01T03:59:59.999Z",
  "created_time": "2023-08-18T22:04:31.261Z"
}
```

The following code block shows a sample of a resent `creditjournalentries` event.

```json JSON expandable lines wrap theme={null}
{
  "token": "my_journal_entry_token1234",
  "related_token": null,
  "root_token": null,
  "account_token": "my_credit_account_token1234",
  "card_token": "my_credit_card_token1234",
  "status": "PENDING",
  "group": "PURCHASE",
  "type": "authorization",
  "id": "12345678",
  "amount": 10,
  "currency_code": "USD",
  "memo": "Jane's Bakery",
  "request_time": "2024-08-18T22:06:52.000Z",
  "impact_time": "2024-08-18T22:07:21.422Z",
  "created_time": "2024-08-18T22:07:21.422Z",
  "dispute_token": null,
  "detail_token": "my_detail_token1234",
  "detail_object": {
    "type": "authorization",
    "state": "PENDING",
    "identifier": "234",
    "token": "my_detail_token1234",
    "user_token": "my_user_token",
    "acting_user_token": "my_user_token",
    "card_token": "my_credit_card_token1234",
    "gpa": {
      "currency_code": "USD",
      "ledger_balance": 510.87,
      "available_balance": 0,
      "credit_balance": 0,
      "pending_credits": 0,
      "impacted_amount": -10,
      "balances": {
        "USD": {
          "currency_code": "USD",
          "ledger_balance": 510.87,
          "available_balance": 0,
          "credit_balance": 0,
          "pending_credits": 0,
          "impacted_amount": -10
        }
      }
    },
    "gpa_order": {
      "token": "my_gpa_order_token1234",
      "amount": 10,
      "created_time": "2024-08-18T22:06:53Z",
      "last_modified_time": "2024-08-18T22:06:53Z",
      "transaction_token": "my_transaction_token1234",
      "state": "PENDING",
      "response": {
        "code": "0000",
        "memo": "Approved or completed successfully"
      },
      "funding": {
        "amount": 10,
        "source": {
          "type": "programgateway",
          "token": "**********1ab2",
          "active": true,
          "name": "credit_backed_funding_source",
          "is_default_account": false,
          "created_time": "2024-10-14T17:26:35Z",
          "last_modified_time": "2024-10-14T17:26:35Z"
        },
        "gateway_log": {
          "order_number": "my_gateway_token12345",
          "transaction_id": "my_transaction_id1234",
          "message": "Approved or completed successfully",
          "duration": 485,
          "timed_out": false,
          "response": {
            "code": "200",
            "data": {
              "jit_funding": {
                "token": "my_jit_funding_token1234",
                "method": "pgfs.authorization",
                "user_token": "my_user_token",
                "acting_user_token": "my_user_token",
                "amount": 10
              }
            }
          }
        }
      },
      "funding_source_token": "**********1ab2",
      "jit_funding": {
        "token": "my_transaction_id1234",
        "method": "pgfs.authorization",
        "user_token": "my_user_token",
        "acting_user_token": "my_user_token",
        "amount": 10
      },
      "user_token": "my_user_token",
      "currency_code": "USD"
    },
    "duration": 837,
    "created_time": "2024-08-18T22:06:52Z",
    "user_transaction_time": "2024-08-18T22:06:52Z",
    "settlement_date": "2024-08-18T00:00:00Z",
    "request_amount": 10,
    "amount": 10,
    "currency_code": "USD",
    "approval_code": "974406",
    "response": {
      "code": "0000",
      "memo": "Approved or completed successfully"
    },
    "network": "DISCOVER",
    "acquirer_fee_amount": 0,
    "acquirer": {
      "system_trace_audit_number": "376582"
    },
    "user": {
      "metadata": {
        "key1": "value1",
        "key2": "value2",
        "notification_email": "user@domain.com",
        "notification_language": "spa"
      }
    },
    "card": {
      "last_four": "9949",
      "metadata": {}
    },
    "issuer_received_time": "2024-08-18T22:06:52.771Z",
    "issuer_payment_node": "f8205a67b12b90d695b15704a64c074b",
    "network_reference_id": "484311571095",
    "card_acceptor": {
      "mid": "1234",
      "mcc": "6411",
      "name": "Jane's Bakery",
      "street_address": "1989 Fillmore St",
      "city": "San Francisco",
      "state": "CA",
      "postal_code": "94115",
      "country_code": "USA"
    },
    "pos": {
      "pin_present": false,
      "partial_approval_capable": true,
      "purchase_amount_only": false,
      "is_recurring": false,
      "is_installment": false
    }
  }
}
```

The following code block shows a sample of a resent `creditledgerentries` event.

```json JSON expandable lines wrap theme={null}
{
  "token": "my_ledger_entry_token1234",
  "related_token": null,
  "root_token": null,
  "account_token": "my_credit_account_token1234",
  "card_token": "my_credit_card_token1234",
  "status": "PENDING",
  "group": "PURCHASE",
  "type": "authorization",
  "id": "12345678",
  "amount": 10,
  "currency_code": "USD",
  "memo": "Jane's Bakery",
  "request_time": "2024-08-18T22:06:52.000Z",
  "impact_time": "2024-08-18T22:07:21.422Z",
  "created_time": "2024-08-18T22:07:21.422Z",
  "dispute_token": null,
  "detail_token": "my_detail_token1234",
  "detail_object": {
    "type": "authorization",
    "state": "PENDING",
    "identifier": "234",
    "token": "my_detail_token1234",
    "user_token": "my_user_token",
    "acting_user_token": "my_user_token",
    "card_token": "my_credit_card_token1234",
    "gpa": {
      "currency_code": "USD",
      "ledger_balance": 510.87,
      "available_balance": 0,
      "credit_balance": 0,
      "pending_credits": 0,
      "impacted_amount": -10,
      "balances": {
        "USD": {
          "currency_code": "USD",
          "ledger_balance": 510.87,
          "available_balance": 0,
          "credit_balance": 0,
          "pending_credits": 0,
          "impacted_amount": -10
        }
      }
    },
    "gpa_order": {
      "token": "my_gpa_order_token1234",
      "amount": 10,
      "created_time": "2024-08-18T22:06:53Z",
      "last_modified_time": "2024-08-18T22:06:53Z",
      "transaction_token": "my_transaction_token1234",
      "state": "PENDING",
      "response": {
        "code": "0000",
        "memo": "Approved or completed successfully"
      },
      "funding": {
        "amount": 10,
        "source": {
          "type": "programgateway",
          "token": "**********1ab2",
          "active": true,
          "name": "credit_backed_funding_source",
          "is_default_account": false,
          "created_time": "2024-10-14T17:26:35Z",
          "last_modified_time": "2024-10-14T17:26:35Z"
        },
        "gateway_log": {
          "order_number": "my_gateway_token12345",
          "transaction_id": "my_transaction_id1234",
          "message": "Approved or completed successfully",
          "duration": 485,
          "timed_out": false,
          "response": {
            "code": "200",
            "data": {
              "jit_funding": {
                "token": "my_jit_funding_token1234",
                "method": "pgfs.authorization",
                "user_token": "my_user_token",
                "acting_user_token": "my_user_token",
                "amount": 10
              }
            }
          }
        }
      },
      "funding_source_token": "**********1ab2",
      "jit_funding": {
        "token": "my_transaction_id1234",
        "method": "pgfs.authorization",
        "user_token": "my_user_token",
        "acting_user_token": "my_user_token",
        "amount": 10
      },
      "user_token": "my_user_token",
      "currency_code": "USD"
    },
    "duration": 837,
    "created_time": "2024-08-18T22:06:52Z",
    "user_transaction_time": "2024-08-18T22:06:52Z",
    "settlement_date": "2024-08-18T00:00:00Z",
    "request_amount": 10,
    "amount": 10,
    "currency_code": "USD",
    "approval_code": "974406",
    "response": {
      "code": "0000",
      "memo": "Approved or completed successfully"
    },
    "network": "DISCOVER",
    "acquirer_fee_amount": 0,
    "acquirer": {
      "system_trace_audit_number": "376582"
    },
    "user": {
      "metadata": {
        "key1": "value1",
        "key2": "value2",
        "notification_email": "user@domain.com",
        "notification_language": "spa"
      }
    },
    "card": {
      "last_four": "9949",
      "metadata": {}
    },
    "issuer_received_time": "2024-08-18T22:06:52.771Z",
    "issuer_payment_node": "f8205a67b12b90d695b15704a64c074b",
    "network_reference_id": "484311571095",
    "card_acceptor": {
      "mid": "1234",
      "mcc": "6411",
      "name": "Jane's Bakery",
      "street_address": "1989 Fillmore St",
      "city": "San Francisco",
      "state": "CA",
      "postal_code": "94115",
      "country_code": "USA"
    },
    "pos": {
      "pin_present": false,
      "partial_approval_capable": true,
      "purchase_amount_only": false,
      "is_recurring": false,
      "is_installment": false
    }
  }
}
```

The following code block shows a sample of a resent `creditpaymenttransitions` event.

```json JSON lines wrap theme={null}
{
  "token": "my_payment_transition_token1234",
  "account_token": "my_credit_account_token1234",
  "payment_token": "my_credit_account_payment_token1234",
  "status": "COMPLETED",
  "refund_details": null,
  "created_time": "2024-08-17T18:26:47.591Z"
}
```

The following code block shows a sample of a resent `creditdelinquencytransitions` event.

```json JSON lines wrap theme={null}
{
  "token": "my_delinquency_transition_token1234",
  "account_token": "my_credit_account_token1234",
  "transition_trigger_reason": "STATEMENT_GENERATION",
  "transition_trigger_time": "2024-03-01 04:59:59.999",
  "original_status": "CURRENT",
  "status": "DELINQUENT",
  "impact_time": "2024-03-01 04:59:59.999",
  "total_past_due": 100,
  "current_due": 40,
  "total_due": 140,
  "oldest_payment_due_date": "2023-02-01 04:59:59.999",
  "bucket_count": 2,
  "is_rolled_back": false,
  "created_time": "2024-03-01 04:59:59.999",
  "updated_time": "2024-03-01 04:59:59.999"
}
```

The following code block shows a sample of a resent `substatus` event.

```json JSON expandable lines wrap theme={null}
{
  "token": "substatus_token",
  "resource_type": "ACCOUNT",
  "resource_token": "my_account_token",
  "substatus": "FRAUD",
  "state": "INACTIVE",
  "is_active": false,
  "attributes": [],
  "created_time": "2024-04-02T11:23:23Z",
  "updated_time": "2024-04-02T11:23:23Z",
  "events": [
    {
      "state": "ACTIVE",
      "channel": "SYSTEM",
      "reason": "Fraud system detected suspicious activity",
      "effective_date": "2024-04-02T11:23:23Z",
      "created_time": "2024-04-02T11:23:23Z"
    },
    {
      "state": "INACTIVE",
      "channel": "ADMIN",
      "reason": "Verified non-fraud with cardholder",
      "effective_date": "2024-04-02T11:23:23Z",
      "created_time": "2024-04-02T11:23:23Z"
    }
  ]
}
```

The following code block shows a sample of a resent `accountsignupbonus` event.

```json JSON lines wrap theme={null}
{
  "token": "my_accountsignupbonus_token",
  "account_token": "my_account_token",
  "type": "STATEMENT_CREDIT",
  "status": "ISSUED",
  "accrual_start_time": "2024-04-02T11:23:23Z",
  "maturity_time": "2024-04-02T11:23:23Z",
  "spend_total": 10,
  "reward_token": "my_reward_token",
  "journal_entry_token": "my_journal_entry_token"
}
```
