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

# Auto Reload

> Use auto reload to automatically load a specified amount into an account whenever the account balance falls below a defined threshold due to spending.

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>;
};

Auto reload enables you to automatically load a specified amount into an account when the account balance falls below a defined threshold.

Auto reloads execute only when the account balance falls below the trigger value due to spending. They do not execute due to unloading of funds or because of lack of funds when a user or business is first created.

You can define auto reloads at the level of an account holder, a card product, or a program. Each auto reload draws from a single funding source.

In the case of auto reloads defined at more than one level, the following order of precedence (first to last) determines which auto reload is executed:

<Steps>
  <Step>
    Account holder
  </Step>

  <Step>
    Card product
  </Step>

  <Step>
    Program
  </Step>
</Steps>

<h2 id="post_autoreloads">
  Create auto reload
</h2>

**Action:** `POST`\
**Endpoint:** `/autoreloads`

{/* <EndpointCard
title="Creates an auto reload object"
path="/autoreloads"
method="post"
/> */}

Use this endpoint to create an auto reload.

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

| Fields                                                                      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| --------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| active<br /><br />boolean<br /><br />Optional                               | Specifies whether the auto reload is active.<br /><br />Only one auto reload per level, per object, can be active.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`true`                                                                                                                                                                                                                                                                                                                                                                                                                |
| association<br /><br />object<br /><br />Optional                           | Specifies the scope of the auto reload.<br /><br />Input no more than one field. If no value is supplied, the auto reload applies at the program level.<br /><br />**Allowable Values:**<br /><br />`business_token`, `card_product_token`, `user_token`                                                                                                                                                                                                                                                                                                                                                                                |
| association.**business\_token**<br /><br />string<br /><br />Optional       | Unique identifier of the business for which the auto reload is configured.<br /><br />Send a `GET` request to `/businesses` to retrieve business tokens.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                                                                                                                                                                                                                                                                                         |
| association.**card\_product\_token**<br /><br />string<br /><br />Optional  | Unique identifier of the card product for which the auto reload is configured.<br /><br />Send a `GET` request to `/cardproducts` to retrieve card product tokens.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                                                                                                                                                                                                                                                                               |
| association.**user\_token**<br /><br />string<br /><br />Optional           | Unique identifier of the user for which the auto reload is configured.<br /><br />Send a `GET` request to `/users` to retrieve user tokens.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| currency\_code<br /><br />string<br /><br />Required                        | 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 />Any currency code allowed by your program                                                                                                                                                                                                                                                                                                                                                                                                                 |
| funding\_source\_address\_token<br /><br />string<br /><br />Optional       | Unique identifier of the funding source address to use for this auto reload.<br /><br />If your funding source is an ACH account, then a `funding_source_address_token` is not required. If your funding source is a payment card, you must have at least one funding source address in order to create a GPA order.<br /><br />Send a `GET` request to `/fundingsources/addresses/user/{user_token}` to retrieve address tokens for a user.<br /><br />Send a `GET` request to `/fundingsources/addresses/business/{business_token}` to retrieve address tokens for a business.<br /><br />**Allowable Values:**<br /><br />1–36 chars |
| funding\_source\_token<br /><br />string<br /><br />Optional                | Unique identifier of the funding source to use for this auto reload.<br /><br />Send a `GET` request to `/fundingsources/user/{user_token}` to retrieve funding source tokens for a user.<br /><br />Send a `GET` request to `/fundingsources/business/{business_token}` to retrieve funding source tokens for a business.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                                                                                                                       |
| order\_scope<br /><br />object<br /><br />Required                          | Defines the balance threshold and reload amounts.<br /><br />**Allowable Values:**<br /><br />`gpa`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| order\_scope.**gpa**<br /><br />object<br /><br />Optional                  | Defines the type of order.<br /><br />**Allowable Values:**<br /><br />`reload_amount`, `trigger_amount`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| order\_scope.gpa.**reload\_amount**<br /><br />decimal<br /><br />Required  | Available balance on the card after the reload has completed.<br /><br />This value must be greater than or equal to the value of `trigger_amount`. Note that this is not the same as the amount added to the card, which will vary from reload to reload.<br /><br />**Allowable Values:**<br /><br />0.01 min                                                                                                                                                                                                                                                                                                                         |
| order\_scope.gpa.**trigger\_amount**<br /><br />decimal<br /><br />Required | Threshold that determines when the reload happens.<br /><br />The reload is triggered when the card balance falls below this amount.<br /><br />**Allowable Values:**<br /><br />0.01 min                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| token<br /><br />string<br /><br />Optional                                 | Unique identifier of the auto reload.<br /><br />If you do not include a token, the system will generate one automatically. This token is necessary for use in other API calls, so we recommend that rather than let the system generate one, you use a simple string that is easy to remember. This value cannot be updated.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                                                                                                                    |

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

```json JSON lines wrap theme={null}
{
  "token": "my_user_01_autoreload_01",
  "active": false,
  "currency_code": "USD",
  "association": {
    "user_token": "my_user_01"
  },
  "funding_source_token": "my_program_funding_source_01",
  "order_scope": {
    "gpa": {
      "trigger_amount": 100,
      "reload_amount": 200
    }
  }
}
```

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

| Fields                                                                                   | Description                                                                                                                                                                                                             |
| ---------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| active<br /><br />boolean<br /><br />Conditionally returned                              | Specifies whether the auto reload is active.<br /><br />This field is returned if it exists in the resource.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                |
| association<br /><br />object<br /><br />Conditionally returned                          | Specifies the scope of the auto reload.<br /><br />**Allowable Values:**<br /><br />`business_token`, `card_product_token`, `user_token`                                                                                |
| association.**business\_token**<br /><br />string<br /><br />Conditionally returned      | Unique identifier of the business for which the auto reload is configured.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                       |
| association.**card\_product\_token**<br /><br />string<br /><br />Conditionally returned | Unique identifier of the card product for which the auto reload is configured.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                   |
| association.**user\_token**<br /><br />string<br /><br />Conditionally returned          | Unique identifier of the user for which the auto reload is configured.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                           |
| created\_time<br /><br />datetime<br /><br />Returned                                    | Date and time when the auto reload object was created, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                                                                 |
| currency\_code<br /><br />string<br /><br />Returned                                     | 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 />Any currency code allowed by your program |
| funding\_source\_address\_token<br /><br />string<br /><br />Conditionally returned      | Unique identifier of the funding source address to use for this auto reload.<br /><br />This field is returned if it exists in the resource.<br /><br />**Allowable Values:**<br /><br />1–36 chars                     |
| funding\_source\_token<br /><br />string<br /><br />Conditionally returned               | Unique identifier of the funding source to use for this auto reload.<br /><br />This field is returned if it exists in the resource.<br /><br />**Allowable Values:**<br /><br />1–36 chars                             |
| last\_modified\_time<br /><br />datetime<br /><br />Returned                             | Date and time when the auto reload object was last modified, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                                                           |
| order\_scope<br /><br />object<br /><br />Returned                                       | Defines the balance threshold and reload amounts.<br /><br />**Allowable Values:**<br /><br />`gpa`                                                                                                                     |
| order\_scope.**gpa**<br /><br />object<br /><br />Conditionally returned                 | Defines the type of order.<br /><br />**Allowable Values:**<br /><br />`reload_amount`, `trigger_amount`                                                                                                                |
| order\_scope.gpa.**reload\_amount**<br /><br />decimal<br /><br />Returned               | Available balance on the card after the reload has completed.<br /><br />**Allowable Values:**<br /><br />0.01 min                                                                                                      |
| order\_scope.gpa.**trigger\_amount**<br /><br />decimal<br /><br />Returned              | Threshold that determines when the reload happens.<br /><br />The reload is triggered when the card balance falls below this amount.<br /><br />**Allowable Values:**<br /><br />0.01 min                               |
| token<br /><br />string<br /><br />Conditionally returned                                | Unique identifier of the auto reload.<br /><br />This field is always returned.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                  |

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

```json JSON lines wrap theme={null}
{
  "token": "my_user_01_autoreload_01",
  "active": false,
  "association": {
    "user_token": "my_user_01"
  },
  "funding_source_token": "my_program_funding_source_01",
  "order_scope": {
    "gpa": {
      "trigger_amount": 100,
      "reload_amount": 200
    }
  },
  "currency_code": "USD",
  "created_time": "2022-11-10T22:15:20Z",
  "last_modified_time": "2022-11-10T22:15:20Z"
}
```

<h2 id="get_autoreloads">
  List auto reloads
</h2>

**Action:** `GET`\
**Endpoint:** `/autoreloads`

{/* <EndpointCard
title="Lists all auto reloads for the program"
path="/autoreloads"
method="get"
/> */}

Use this endpoint to list auto reloads configured for the program or for a specific card product, user, or business.

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

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

| Fields                                                | Description                                                                                                                                                                                                                                                                                                                                                                                                               |
| ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| card\_product<br /><br />string<br /><br />Optional   | Unique identifier of the card product whose auto reloads you want to retrieve.<br /><br />**Allowable Values:**<br /><br />Existing `card_product` token                                                                                                                                                                                                                                                                  |
| user\_token<br /><br />string<br /><br />Optional     | Unique identifier of the user whose auto reloads you want to retrieve.<br /><br />**Allowable Values:**<br /><br />Existing `user` token                                                                                                                                                                                                                                                                                  |
| business\_token<br /><br />string<br /><br />Optional | Unique identifier of the business whose auto reloads you want to retrieve.<br /><br />**Allowable Values:**<br /><br />Existing `business` token                                                                                                                                                                                                                                                                          |
| count<br /><br />integer<br /><br />Optional          | Number of resources to retrieve.<br /><br />**Allowable Values:**<br /><br />1-10<br /><br />**Default value:**<br />10                                                                                                                                                                                                                                                                                                   |
| 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 />Any integer<br /><br />**Default value:**<br />0                                                                                                                                                                                                                                                                |
| fields<br /><br />string<br /><br />Optional          | Comma-delimited list of fields to return (`field_1,field_2`, and so on). Leave blank to return all fields.<br /><br />**Allowable Values:**<br /><br />Comma-delimited list of fields, or blank                                                                                                                                                                                                                           |
| sort\_by<br /><br />string<br /><br />Optional        | Field on which to sort. Use any field in the resource model, or one of the system fields `lastModifiedTime` or `createdTime`. Prefix the field name with a hyphen (`-`) to sort in descending order. Omit the hyphen to sort in ascending order.<br /><br />**Allowable Values:**<br /><br />`createdTime`, `lastModifiedTime`, or any field in the resource model<br /><br />**Default value:**<br />`-lastModifiedTime` |

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

| Fields                                                                                           | Description                                                                                                                                                                                                                                                                        |
| ------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| count<br /><br />integer<br /><br />Conditionally returned                                       | Number of resources to retrieve.<br /><br />This field is returned if there are objects in your returned array.<br /><br />**Allowable Values:**<br /><br />1-10                                                                                                                   |
| data<br /><br />array of objects<br /><br />Conditionally returned                               | Array of auto reload objects.<br /><br />Objects are returned as appropriate to your query.<br /><br />**Allowable Values:**<br /><br />Valid array of one or more auto reload objects                                                                                             |
| data\[].**active**<br /><br />boolean<br /><br />Conditionally returned                          | Specifies whether the auto reload is active.<br /><br />This field is returned if it exists in the resource.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                                                                           |
| data\[].**association**<br /><br />object<br /><br />Conditionally returned                      | Specifies the scope of the auto reload.<br /><br />**Allowable Values:**<br /><br />`business_token`, `card_product_token`, `user_token`                                                                                                                                           |
| data\[].association.**business\_token**<br /><br />string<br /><br />Conditionally returned      | Unique identifier of the business for which the auto reload is configured.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                  |
| data\[].association.**card\_product\_token**<br /><br />string<br /><br />Conditionally returned | Unique identifier of the card product for which the auto reload is configured.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                              |
| data\[].association.**user\_token**<br /><br />string<br /><br />Conditionally returned          | Unique identifier of the user for which the auto reload is configured.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                      |
| data\[].**created\_time**<br /><br />datetime<br /><br />Returned                                | Date and time when the auto reload object was created, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                                                                                                                            |
| data\[].**currency\_code**<br /><br />string<br /><br />Returned                                 | 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 />Any currency code allowed by your program                                                            |
| data\[].**funding\_source\_address\_token**<br /><br />string<br /><br />Conditionally returned  | Unique identifier of the funding source address to use for this auto reload.<br /><br />This field is returned if it exists in the resource.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                |
| data\[].**funding\_source\_token**<br /><br />string<br /><br />Conditionally returned           | Unique identifier of the funding source to use for this auto reload.<br /><br />This field is returned if it exists in the resource.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                        |
| data\[].**last\_modified\_time**<br /><br />datetime<br /><br />Returned                         | Date and time when the auto reload object was last modified, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                                                                                                                      |
| data\[].**order\_scope**<br /><br />object<br /><br />Returned                                   | Defines the balance threshold and reload amounts.<br /><br />**Allowable Values:**<br /><br />`gpa`                                                                                                                                                                                |
| data\[].order\_scope.**gpa**<br /><br />object<br /><br />Conditionally returned                 | Defines the type of order.<br /><br />**Allowable Values:**<br /><br />`reload_amount`, `trigger_amount`                                                                                                                                                                           |
| data\[].order\_scope.gpa.**reload\_amount**<br /><br />decimal<br /><br />Returned               | Available balance on the card after the reload has completed.<br /><br />**Allowable Values:**<br /><br />0.01 min                                                                                                                                                                 |
| data\[].order\_scope.gpa.**trigger\_amount**<br /><br />decimal<br /><br />Returned              | Threshold that determines when the reload happens.<br /><br />The reload is triggered when the card balance falls below this amount.<br /><br />**Allowable Values:**<br /><br />0.01 min                                                                                          |
| data\[].**token**<br /><br />string<br /><br />Conditionally returned                            | Unique identifier of the auto reload.<br /><br />This field is always returned.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                             |
| end\_index<br /><br />integer<br /><br />Conditionally returned                                  | Sort order index of the last resource in the returned array.<br /><br />This field is returned if there are objects in your returned array.<br /><br />**Allowable Values:**<br /><br />Any integer                                                                                |
| is\_more<br /><br />boolean<br /><br />Conditionally returned                                    | A value of `true` indicates that more unreturned resources exist. A value of `false` indicates that no more unreturned resources exist.<br /><br />This field is returned if there are objects in your returned array.<br /><br />**Allowable Values:**<br /><br />`true`, `false` |
| start\_index<br /><br />integer<br /><br />Conditionally returned                                | Sort order index of the first resource in the returned array.<br /><br />This field is returned if there are objects in your returned array.<br /><br />**Allowable Values:**<br /><br />Any integer                                                                               |

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

```json JSON expandable lines wrap theme={null}
{
  "count": 1,
  "start_index": 0,
  "end_index": 0,
  "is_more": false,
  "data": [
    {
      "token": "my_user_01_autoreload_01",
      "active": false,
      "funding_source_token": "my_program_funding_source_01",
      "association": {
        "user_token": "my_user_01"
      },
      "order_scope": {
        "gpa": {
          "trigger_amount": 100,
          "reload_amount": 200
        }
      },
      "currency_code": "USD",
      "created_time": "2022-11-10T22:15:20Z",
      "last_modified_time": "2022-11-10T22:21:59Z"
    }
  ]
}
```

<h2 id="get_autoreloads_token">
  Retrieve auto reload
</h2>

**Action:** `GET`\
**Endpoint:** `/autoreloads/{token}`

{/* <EndpointCard
title="Returns a specific auto reload object"
path="/autoreloads/{token}"
method="get"
/> */}

Use this endpoint to retrieve a specific auto reload object.

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

| Fields                                      | Description                                                                                                  |
| ------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| token<br /><br />string<br /><br />Required | Unique identifier of the auto reload.<br /><br />**Allowable Values:**<br /><br />Existing auto reload token |

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

| Fields                                       | Description                                                                                                                                                                                     |
| -------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| fields<br /><br />string<br /><br />Optional | Comma-delimited list of fields to return (`field_1,field_2`, and so on). Leave blank to return all fields.<br /><br />**Allowable Values:**<br /><br />Comma-delimited list of fields, or blank |

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

| Fields                                                                                   | Description                                                                                                                                                                                                             |
| ---------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| active<br /><br />boolean<br /><br />Conditionally returned                              | Specifies whether the auto reload is active.<br /><br />This field is returned if it exists in the resource.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                |
| association<br /><br />object<br /><br />Conditionally returned                          | Specifies the scope of the auto reload.<br /><br />**Allowable Values:**<br /><br />`business_token`, `card_product_token`, `user_token`                                                                                |
| association.**business\_token**<br /><br />string<br /><br />Conditionally returned      | Unique identifier of the business for which the auto reload is configured.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                       |
| association.**card\_product\_token**<br /><br />string<br /><br />Conditionally returned | Unique identifier of the card product for which the auto reload is configured.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                   |
| association.**user\_token**<br /><br />string<br /><br />Conditionally returned          | Unique identifier of the user for which the auto reload is configured.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                           |
| created\_time<br /><br />datetime<br /><br />Returned                                    | Date and time when the auto reload object was created, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                                                                 |
| currency\_code<br /><br />string<br /><br />Returned                                     | 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 />Any currency code allowed by your program |
| funding\_source\_address\_token<br /><br />string<br /><br />Conditionally returned      | Unique identifier of the funding source address to use for this auto reload.<br /><br />This field is returned if it exists in the resource.<br /><br />**Allowable Values:**<br /><br />1–36 chars                     |
| funding\_source\_token<br /><br />string<br /><br />Conditionally returned               | Unique identifier of the funding source to use for this auto reload.<br /><br />This field is returned if it exists in the resource.<br /><br />**Allowable Values:**<br /><br />1–36 chars                             |
| last\_modified\_time<br /><br />datetime<br /><br />Returned                             | Date and time when the auto reload object was last modified, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                                                           |
| order\_scope<br /><br />object<br /><br />Returned                                       | Defines the balance threshold and reload amounts.<br /><br />**Allowable Values:**<br /><br />`gpa`                                                                                                                     |
| order\_scope.**gpa**<br /><br />object<br /><br />Conditionally returned                 | Defines the type of order.<br /><br />**Allowable Values:**<br /><br />`reload_amount`, `trigger_amount`                                                                                                                |
| order\_scope.gpa.**reload\_amount**<br /><br />decimal<br /><br />Returned               | Available balance on the card after the reload has completed.<br /><br />**Allowable Values:**<br /><br />0.01 min                                                                                                      |
| order\_scope.gpa.**trigger\_amount**<br /><br />decimal<br /><br />Returned              | Threshold that determines when the reload happens.<br /><br />The reload is triggered when the card balance falls below this amount.<br /><br />**Allowable Values:**<br /><br />0.01 min                               |
| token<br /><br />string<br /><br />Conditionally returned                                | Unique identifier of the auto reload.<br /><br />This field is always returned.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                  |

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

```json JSON lines wrap theme={null}
{
  "token": "my_user_01_autoreload_01",
  "active": false,
  "funding_source_token": "my_program_funding_source_01",
  "association": {
    "user_token": "my_user_01"
  },
  "order_scope": {
    "gpa": {
      "trigger_amount": 100,
      "reload_amount": 200
    }
  },
  "currency_code": "USD",
  "created_time": "2022-11-10T22:15:20Z",
  "last_modified_time": "2022-11-10T22:21:59Z"
}
```

<h2 id="put_autoreloads_token">
  Update auto reload
</h2>

**Action:** `PUT`\
**Endpoint:** `/autoreloads/{token}`

{/* <EndpointCard
title="Updates a specific auto reload object"
path="/autoreloads/{token}"
method="put"
/> */}

Use this endpoint to update an auto reload. Only values of parameters in the request are modified; all others are left unchanged.

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

| Fields                                      | Description                                                                                                  |
| ------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| token<br /><br />string<br /><br />Required | Unique identifier of the auto reload.<br /><br />**Allowable Values:**<br /><br />Existing auto reload token |

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

| Fields                                                                      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| --------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| active<br /><br />boolean<br /><br />Optional                               | Specifies whether the auto reload is active.<br /><br />Only one auto reload per level, per object, can be active.<br /><br />**Allowable Values:**<br /><br />`true`, `false`<br /><br />**Default value:**<br />`true`                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| association<br /><br />object<br /><br />Optional                           | Specifies the scope of the auto reload.<br /><br />Input no more than one field. If no value is supplied, the auto reload applies at the program level.<br /><br />**Allowable Values:**<br /><br />`business_token`, `card_product_token`, `user_token`                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| association.**business\_token**<br /><br />string<br /><br />Optional       | Unique identifier of the business for which the auto reload is configured.<br /><br />Send a `GET` request to `/businesses` to retrieve business tokens.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| association.**card\_product\_token**<br /><br />string<br /><br />Optional  | Unique identifier of the card product for which the auto reload is configured.<br /><br />Send a `GET` request to `/cardproducts` to retrieve card product tokens.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| association.**user\_token**<br /><br />string<br /><br />Optional           | Unique identifier of the user for which the auto reload is configured.<br /><br />Send a `GET` request to `/users` to retrieve user tokens.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| currency\_code<br /><br />string<br /><br />Optional                        | 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 />Any currency code allowed by your program                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| funding\_source\_address\_token<br /><br />string<br /><br />Optional       | Unique identifier of the funding source address to use for this auto reload.<br /><br />If your funding source is an ACH account, then a `funding_source_address_token` is not required. If your funding source is a payment card, you must have at least one funding source address in order to create a GPA order.<br /><br />**Allowable Values:**<br /><br />1–36 chars<br /><br />Existing funding source address token.<br /><br />Send a `GET` request to `/fundingsources/addresses/user/{user_token}` to retrieve address tokens for a user.<br /><br />Send a `GET` request to `/fundingsources/addresses/business/{business_token}` to retrieve address tokens for a business. |
| funding\_source\_token<br /><br />string<br /><br />Optional                | Unique identifier of the funding source to use for this auto reload.<br /><br />**Allowable Values:**<br /><br />1–36 chars<br /><br />Existing funding source token.<br /><br />Send a `GET` request to `/fundingsources/user/{user_token}` to retrieve funding source tokens for a user.<br /><br />Send a `GET` request to `/fundingsources/business/{business_token}` to retrieve funding source tokens for a business.                                                                                                                                                                                                                                                               |
| order\_scope<br /><br />object<br /><br />Optional                          | Defines the balance threshold and reload amounts.<br /><br />**Allowable Values:**<br /><br />`gpa`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| order\_scope.**gpa**<br /><br />object<br /><br />Optional                  | Defines the type of order.<br /><br />**Allowable Values:**<br /><br />`reload_amount`, `trigger_amount`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| order\_scope.gpa.**reload\_amount**<br /><br />decimal<br /><br />Required  | Available balance on the card after the reload has completed.<br /><br />This value must be greater than or equal to the value of `trigger_amount`. Note that this is not the same as the amount added to the card, which will vary from reload to reload.<br /><br />**Allowable Values:**<br /><br />0.01 min                                                                                                                                                                                                                                                                                                                                                                           |
| order\_scope.gpa.**trigger\_amount**<br /><br />decimal<br /><br />Required | Threshold that determines when the reload happens.<br /><br />The reload is triggered when the card balance falls below this amount.<br /><br />**Allowable Values:**<br /><br />0.01 min                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| token<br /><br />string<br /><br />Optional                                 | The token in the path parameter takes precedence over the `token` body field.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |

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

```json JSON lines wrap theme={null}
{
  "order_scope": {
    "gpa": {
      "trigger_amount": 250,
      "reload_amount": 500
    }
  }
}
```

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

| Fields                                                                                   | Description                                                                                                                                                                                                             |
| ---------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| active<br /><br />boolean<br /><br />Conditionally returned                              | Specifies whether the auto reload is active.<br /><br />This field is returned if it exists in the resource.<br /><br />**Allowable Values:**<br /><br />`true`, `false`                                                |
| association<br /><br />object<br /><br />Conditionally returned                          | Specifies the scope of the auto reload.<br /><br />**Allowable Values:**<br /><br />`business_token`, `card_product_token`, `user_token`                                                                                |
| association.**business\_token**<br /><br />string<br /><br />Conditionally returned      | Unique identifier of the business for which the auto reload is configured.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                       |
| association.**card\_product\_token**<br /><br />string<br /><br />Conditionally returned | Unique identifier of the card product for which the auto reload is configured.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                   |
| association.**user\_token**<br /><br />string<br /><br />Conditionally returned          | Unique identifier of the user for which the auto reload is configured.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                           |
| created\_time<br /><br />datetime<br /><br />Returned                                    | Date and time when the auto reload object was created, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                                                                 |
| currency\_code<br /><br />string<br /><br />Returned                                     | 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 />Any currency code allowed by your program |
| funding\_source\_address\_token<br /><br />string<br /><br />Conditionally returned      | Unique identifier of the funding source address to use for this auto reload.<br /><br />This field is returned if it exists in the resource.<br /><br />**Allowable Values:**<br /><br />1–36 chars                     |
| funding\_source\_token<br /><br />string<br /><br />Conditionally returned               | Unique identifier of the funding source to use for this auto reload.<br /><br />This field is returned if it exists in the resource.<br /><br />**Allowable Values:**<br /><br />1–36 chars                             |
| last\_modified\_time<br /><br />datetime<br /><br />Returned                             | Date and time when the auto reload object was last modified, in UTC.<br /><br />**Allowable Values:**<br /><br />Format: yyyy-MM-ddThh:mm:ssZ                                                                           |
| order\_scope<br /><br />object<br /><br />Returned                                       | Defines the balance threshold and reload amounts.<br /><br />**Allowable Values:**<br /><br />`gpa`                                                                                                                     |
| order\_scope.**gpa**<br /><br />object<br /><br />Conditionally returned                 | Defines the type of order.<br /><br />**Allowable Values:**<br /><br />`reload_amount`, `trigger_amount`                                                                                                                |
| order\_scope.gpa.**reload\_amount**<br /><br />decimal<br /><br />Returned               | Available balance on the card after the reload has completed.<br /><br />**Allowable Values:**<br /><br />0.01 min                                                                                                      |
| order\_scope.gpa.**trigger\_amount**<br /><br />decimal<br /><br />Returned              | Threshold that determines when the reload happens.<br /><br />The reload is triggered when the card balance falls below this amount.<br /><br />**Allowable Values:**<br /><br />0.01 min                               |
| token<br /><br />string<br /><br />Conditionally returned                                | Unique identifier of the auto reload.<br /><br />This field is always returned.<br /><br />**Allowable Values:**<br /><br />1–36 chars                                                                                  |

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

```json JSON lines wrap theme={null}
{
  "token": "my_user_01_autoreload_01",
  "active": false,
  "funding_source_token": "my_program_funding_source_01",
  "association": {
    "user_token": "my_user_01"
  },
  "order_scope": {
    "gpa": {
      "trigger_amount": 250,
      "reload_amount": 500
    }
  },
  "currency_code": "USD",
  "created_time": "2022-11-10T22:15:20Z",
  "last_modified_time": "2022-11-10T22:25:00Z"
}
```


## Related topics

- [Transactions](/docs/core-api/transactions.md)
- [Errors](/docs/core-api/errors.md)
- [2021 Release Notes](/docs/developer-guides/release-notes-2021.md)
- [Program Transfers](/docs/core-api/program-transfers.md)
- [3DS Automated Decision Service Reporting](/docs/developer-guides/3ds-automated-decision-service-reporting.md)
