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

# Gateway JIT Funding Messages

> Learn about Gateway Just-in-Time Funding messages sent by the Marqeta platform and how to respond to them appropriately.

To participate in Gateway Just-in-Time (JIT) Funding decisions, your system must handle messages sent by the Marqeta platform and return the appropriate response.

The Marqeta platform and your system exchange messages of the following types:

* **JIT Funding requests** are actionable messages sent by the Marqeta platform to an endpoint on your system referred to as the JIT Funding gateway. These synchronous messages request permission to fund a specific transaction or to answer a balance inquiry.

* **JIT Funding responses** are sent by your JIT Funding gateway to the Marqeta platform in response to a funding request or balance inquiry. Your gateway endpoint must respond to each funding request by approving or denying funding for the associated transaction. Your gateway must respond to each balance inquiry with the currently available balance for the account associated with the specified card. If you deny funding for the associated transaction, your JIT Funding response can include a descriptive decline reason. In addition, you can inject custom metadata into each response. Messages sent to the Marqeta platform must use the HTTPS protocol.

* **JIT Funding notifications** are informative messages sent by the Marqeta platform to your webhook endpoint (not the JIT Funding gateway endpoint). These asynchronous messages contain the entire transaction and inform you about its ultimate outcome. Use JIT Funding notifications to validate that the Marqeta platform receives and correctly processes each of your funding responses.

These messages apply only to Gateway JIT Funding setups. For more information about JIT Funding, see [About Just-in-Time Funding](/developer-guides/about-jit-funding/). For all transaction response fields, see [Transactions](/core-api/transactions/).

<h2 id="_the_jit_funding_object">
  The jit\_funding object
</h2>

Each JIT Funding message sent to your system contains a `jit_funding` object embedded in a `gpa_order` or `gpa_order_unload` object. Messages containing the `gpa_order` object indicate a load event, where funds are loaded into an account, while those containing the `gpa_order_unload` object indicate an unload event, where funds are removed from an account.

The `jit_funding` object contains information about the funding event, including the associated user token and transaction amount. The `method` field indicates the type of transaction and whether the message is an actionable funding request sent to your gateway endpoint or an informative message sent to your webhook endpoint.

Your gateway’s JIT Funding response must include the `jit_funding` object with the `method` found in the matching request.

The following table summarizes the available methods:

| Method                                            | Purpose     | Funding Event | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ------------------------------------------------- | ----------- | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| pgfs.adjustment.credit                            | Informative | Load          | The Marqeta platform made a balance adjustment by crediting the program gateway funding source.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| pgfs.adjustment.debit                             | Informative | Unload        | The Marqeta platform made a balance adjustment by debiting the GPA.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| pgfs.auth\_plus\_capture                          | Actionable  | Load          | Request for authorization to fund a user’s GPA and capture those funds. Used when the Marqeta platform receives a single-message financial transaction, such as a PIN debit, an ATM withdrawal, or a financial advice.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| pgfs.auth\_plus\_capture.reversal                 | Informative | Load          | A previously approved <code>pgfs.auth\_plus\_capture</code> was fully or partially reversed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| pgfs.auth\_plus\_capture.standin                  | Informative | Load          | An authorization to fund a user’s GPA and capture those funds was approved by network stand-in processing. Used when the Marqeta platform receives a single-message financial transaction, such as a PIN debit, an ATM withdrawal, or a financial advice.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| pgfs.authorization                                | Actionable  | Load          | Request for authorization to fund a user’s GPA.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| pgfs.authorization.account\_verification          | Actionable  | N/A           | An authorization request for account verification. Also known as a zero-dollar authorization.<br /><br />An account verification request allows acquirers to verify a card without putting a hold on funds. Account verification requests are declined before reaching your JIT Funding gateway if the card or cardholder is suspended or terminated.<br /><br />You can approve an account verification request, or decline it using one of the decline reasons listed in the <code>decline\_reason</code> field of <a href="/core-api/gateway-jit-funding-messages/#_the_jit_funding_object_2">the JIT Funding object</a>. For example, you could use the decline reason <code>INVALID\_MERCHANT</code> to decline an account verification request from an unauthorized retailer. If you do not include a specific decline reason in your response, Marqeta uses the decline reason "Decline account verification request."<br /><br />To validate an anticipated amount verification transaction (AAVT), your Gateway JIT Funding response must include the <code>anticipated\_amount\_supported</code> field. A value of <code>true</code> indicates that the cardholder has sufficient funds for the transaction, and a value of <code>false</code> indicates that the cardholder does not have sufficient funds. |
| pgfs.authorization.capture                        | Informative | Load          | Funds have been captured for the original authorization.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| pgfs.authorization.capture.chargeback             | Informative | Unload        | A chargeback was performed. Funds have been refunded to the <code>refunds\_destination</code> configured on the card product. In the case of JIT Funding, the <code>refunds\_destination</code> is set to <code>GATEWAY</code>, which results in the funds being returned to the Program Gateway Funding Source.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| pgfs.authorization.capture.chargeback.reversal    | Informative | Load          | A chargeback was reversed, debiting funds from the funding source.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| pgfs.authorization.incremental                    | Actionable  | Load          | Request for authorization to fund a user’s GPA for the purpose of increasing the amount of a previous authorization. This method adds to the previous amount rather than replacing it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| pgfs.authorization.reversal                       | Informative | Load          | A previously approved authorization for JIT Funding was fully or partially reversed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| pgfs.authorization.standin                        | Informative | Load          | An authorization to fund a user’s GPA was approved by network stand-in processing.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| pgfs.balanceinquiry                               | Actionable  | N/A           | Request for balance information, often the result of a cardholder request at an ATM. No funding event.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| pgfs.force\_capture                               | Informative | Load          | This method indicates one of the following:<br /><br />- Although the GPA had sufficient funds for the original authorization, it had insufficient funds for clearing. In this case, JIT Funding was not performed at authorization, so JIT Funding is forced at clearing time.<br />- The merchant force-posted the transaction and funds were provided through JIT Funding.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| pgfs.original.credit.authorization                | Actionable  | Unload        | Request for authorization to credit the GPA.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| pgfs.original.credit.authorization.clearing       | Informative | Load          | Funds have been cleared for the OCT authorization.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| pgfs.original.credit.authorization.reversal       | Informative | Unload        | A previously approved OCT authorization was fully or partially reversed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| pgfs.original.credit.auth\_plus\_capture          | Actionable  | Load          | Request for authorization to credit the GPA and capture those funds.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| pgfs.original.credit.auth\_plus\_capture.reversal | Informative | Unload        | A previously approved <code>pgfs.original.credit.auth\_plus\_capture</code> was fully or partially reversed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| pgfs.pindebit.chargeback                          | Informative | Unload        | A chargeback was performed. Funds have been refunded to the <code>refunds\_destination</code> configured on the card product. In the case of JIT Funding, the <code>refunds\_destination</code> is set to <code>GATEWAY</code>, which results in the funds being returned to the Program Gateway Funding Source.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| pgfs.pindebit.chargeback.reversal                 | Informative | Load          | A chargeback was reversed, debiting funds from the funding source.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| pgfs.product.inquiry                              | Actionable  | Load          | A zero-dollar authorization request to determine Visa Flexible Credential eligibility.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| pgfs.refund                                       | Informative | Unload        | A merchant refund was performed. Funds have been refunded to the <code>refunds\_destination</code> configured on the card product. In the case of JIT Funding, the <code>refunds\_destination</code> can only be set to <code>GATEWAY</code>, which results in the funds being returned to the Program Gateway Funding Source.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| pgfs.refund.authorization                         | Actionable  | Unload        | Request to your JIT gateway for authorization to credit the cardholder’s GPA.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| pgfs.refund.authorization.reversal                | Informative | Unload        | The financial impact of a merchant refund was reversed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |

The `jit_funding` object also contains an `address_verification` object. This object stores address data provided by the purchaser and address data held on the Marqeta platform, as well as the address match determination made by the Marqeta platform. You can use this data to help make funding decisions in response to JIT Funding requests. For more information on how to use this object, see [Using AVS with JIT Funding](/developer-guides/using-avs-with-jit-funding/).

<h2 id="_jit_funding_requests">
  JIT Funding requests
</h2>

The Marqeta platform sends JIT Funding requests to your gateway endpoint. Each request includes an abbreviated form of the related transaction (unless it is a non-financial balance inquiry, in which case there is no associated transaction). The request’s `gpa_order.jit_funding` object contains the details necessary for JIT Funding, including the amount of requested funding (note that other `amount` fields within the body might indicate different values).

<Note>
  **Note**\
  Each transaction and related JIT Funding request include only a subset of available fields, depending on the merchant, card network, or product/service purchased. For information about transaction fields, see [Transactions](/core-api/transactions/).
</Note>

<h3 id="_partial_approval">
  Partial approval
</h3>

The JIT Funding request message includes the `partial_approval_capable` field of the associated transaction. This field indicates whether your JIT Funding response can approve some amount less than the requested amount (`partial_approval_capable` is `true`) or must approve the entire amount (`partial_approval_capable` is `false`). For example, if you receive a JIT Funding request for $100, and `partial_approval_capable` is `true`, your response can approve a smaller amount, such as $50. In your response, include the partial approval amount in the `jit_funding.amount` field, just as you would when approving the whole amount.

<Note>
  **Note**\
  Support for partial approval is dependent on the merchant.
</Note>

<h3 id="_headers">
  Headers
</h3>

Each JIT Funding request includes the following HTTP headers that inform your system about the details of the incoming request.

| Name                                               | Description                                                    | Allowable Values |
| -------------------------------------------------- | -------------------------------------------------------------- | ---------------- |
| <code>x-marqeta-request-trace-id</code>            | The universally unique identifier of the JIT Funding request.  | Existing UUID    |
| <code>x-marqeta-jit-funding-gateway-version</code> | The version of your JIT Funding gateway.                       | 1.0, 2.0, 3.0    |
| <code>x-marqeta-transactions-model-version</code>  | The version of the Transaction Model returned by the Core API. | 1.0, 2.0         |

<h3 id="_the_gpa_order_jit_funding_object">
  The gpa\_order.jit\_funding object
</h3>

| Fields                                                                            | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| --------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Returned                                       | Existing JIT Funding token matching the <code>funding.gateway\_log.transaction\_id</code> field of the associated GPA order. Note that the <code>transaction\_id</code> field updates if a subsequent JIT Funding message associated with that GPA order is sent. If multiple JIT Funding messages are associated with the same GPA order, the <code>transaction\_id</code> field matches the token of the most recent message.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| method<br /><br />string<br /><br />Returned                                      | JIT Funding request type. See <a href="/core-api/gateway-jit-funding-messages/#_the_jit_funding_object">The jit\_funding object</a> for the purpose, funding event type, and description of each method.<br /><br />**Allowable Values:**<br /><br /><code>pgfs.authorization</code>, <code>pgfs.balanceinquiry</code>, <code>pgfs.authorization.incremental</code>, <code>pgfs.authorization.capture</code>, <code>pgfs.authorization.reversal</code>, <code>pgfs.auth\_plus\_capture</code>, <code>pgfs.refund</code>, <code>pgfs.force\_capture</code>, <code>pgfs.authorization.capture.chargeback</code>, <code>pgfs.authorization.capture.chargeback.reversal</code>, <code>pgfs.pindebit.chargeback</code>, <code>pgfs.pindebit.chargeback.reversal</code>, <code>pgfs.dispute.credit</code>, <code>pgfs.dispute.debit</code>, <code>pgfs.directdeposit.credit</code>, <code>pgfs.directdeposit.debit</code>, <code>pgfs.directdeposit.credit.reversal</code>, <code>pgfs.directdeposit.debit.reversal</code>, <code>pgfs.adjustment.credit</code>, <code>pgfs.adjustment.debit</code>, <code>pgfs.auth\_plus\_capture.standin</code>, <code>pgfs.authorization.standin</code>, <code>pgfs.network.load</code>, <code>pgfs.original.credit.authorization</code>, <code>pgfs.original.credit.auth\_plus\_capture</code>, <code>pgfs.refund.authorization</code>, <code>pgfs.refund.authorization.reversal</code>, <code>pgfs.billpayment</code>, <code>pgfs.billpayment.capture</code>, <code>pgfs.billpayment.reversal</code>, <code>pgfs.authorization.account\_verification</code> |
| user\_token<br /><br />string<br /><br />Returned                                 | Holder of the user account to be funded.<br /><br />**Allowable Values:**<br /><br />Existing user token.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| business\_token<br /><br />string<br /><br />Returned                             | Holder of the business account to be funded.<br /><br />**Allowable Values:**<br /><br />Existing business token                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| acting\_user\_token<br /><br />string<br /><br />Conditionally returned           | User who conducted the transaction.<br /><br />Can be a child user configured to share its parent’s account balance.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| amount<br /><br />decimal<br /><br />Returned                                     | Requested amount of funding.<br /><br />**NOTE:** This field’s value can differ from the transaction’s top-level <code>amount</code> value, which defines the authorization amount. These values differ when the account being funded has a positive account balance. Associated fees can also cause these fields to differ.<br /><br />**Allowable Values:**<br /><br />0 min                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| address\_verification<br /><br />object<br /><br />Conditionally returned         | Contains address verification data consisting of address data entered by the cardholder, address data held by the Marqeta platform, and an assertion by the Marqeta platform as to whether the two sets of data match. Returned depending on the merchant, card network, or product/service purchased.<br /><br />**Allowable Values:**<br /><br /><code>gateway</code>, <code>issuer</code>, <code>request</code>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| original\_jit\_funding\_token<br /><br />string<br /><br />Conditionally returned | Unique identifier of the first associated JIT Funding message. Useful for correlating related JIT Funding messages (that is, those associated with the same GPA order). Not included in the first of any set of related messages.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |

<h3 id="_the_gpa_order_jit_funding_address_verification_object">
  The gpa\_order.jit\_funding.address\_verification object
</h3>

| Fields                                                      | Description                                                                                                                                                                                                                                                                                                                                                                 |
| ----------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| request<br /><br />object<br /><br />Conditionally returned | Contains address verification data provided by the cardholder. Returned depending on the merchant, card network, or product/service purchased.<br /><br />**Allowable Values:**<br /><br /><code>postal\_code</code>, <code>street\_address</code>, <code>zip</code>                                                                                                        |
| issuer<br /><br />object<br /><br />Conditionally returned  | Contains both address verification data held by the Marqeta platform and an assertion by the Marqeta platform as to whether its address verification data matches that provided by the cardholder. Returned depending on the merchant, card network, or product/service purchased.<br /><br />**Allowable Values:**<br /><br /><code>on\_file</code>, <code>response</code> |

<h3 id="_the_gpa_order_jit_funding_address_verification_request_object">
  The gpa\_order.jit\_funding.address\_verification.request object
</h3>

| Fields                                                              | Description                                                                                                                                                                        |
| ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| street\_address<br /><br />string<br /><br />Conditionally returned | Street address provided by the cardholder. Returned depending on the merchant, card network, or product/service purchased.<br /><br />**Allowable Values:**<br /><br />40 char max |
| postal\_code<br /><br />string<br /><br />Conditionally returned    | Postal code provided by the cardholder. Returned depending on the merchant, card network, or product/service purchased.<br /><br />**Allowable Values:**<br /><br />10 char max    |

<h3 id="_the_gpa_order_jit_funding_address_verification_issuer_object">
  The gpa\_order.jit\_funding.address\_verification.issuer object
</h3>

| Fields                                                       | Description                                                                                                                                                                                                                                                                                         |
| ------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| on\_file<br /><br />object<br /><br />Conditionally returned | Contains address verification data stored on the Marqeta platform. Returned depending on the merchant, card network, or product/service purchased.<br /><br />**Allowable Values:**<br /><br /><code>postal\_code</code>, <code>street\_address</code>, <code>zip</code>                            |
| response<br /><br />object<br /><br />Conditionally returned | Contains an assertion by the Marqeta platform as to whether its address verification data matches that provided by the cardholder. Returned depending on the merchant, card network, or product/service purchased.<br /><br />**Allowable Values:**<br /><br /><code>code</code>, <code>memo</code> |

<h3 id="_the_gpa_order_jit_funding_address_verification_issuer_on_file_object">
  The gpa\_order.jit\_funding.address\_verification.issuer.on\_file object
</h3>

| Fields                                                              | Description                                                                                                                                                                                                                                                                                                                     |
| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| street\_address<br /><br />string<br /><br />Conditionally returned | Street address provided by the Marqeta platform. Returned depending on the merchant, card network, or product/service purchased.<br /><br />This field is a concatenation of the <code>address1</code> and <code>address2</code> fields associated with the cardholder.<br /><br />**Allowable Values:**<br /><br />40 char max |
| postal\_code<br /><br />string<br /><br />Conditionally returned    | Postal code provided by the Marqeta platform. Returned depending on the merchant, card network, or product/service purchased.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                           |

<h3 id="_the_gpa_order_jit_funding_address_verification_issuer_response_object">
  The gpa\_order.jit\_funding.address\_verification.issuer.response object
</h3>

| Fields                                     | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| code<br /><br />string<br /><br />Returned | Assertion by the Marqeta platform as to whether its address verification data matches that provided by the cardholder. The assertion is presented as a four-digit code.<br /><br />**Allowable Values:**<br /><br />One of the following assertion codes:<br /><br />Code / Address / Postal Code<br /><code>0000</code> / Match / Match<br /><code>0001</code> / Match / Not matched<br /><code>0100</code> / Not matched / Match<br /><code>0101</code> / Not matched / Not matched<br /><code>0200</code> / Data Not Present / Match<br /><code>0201</code> / Data Not Present / Not matched<br /><code>0002</code> / Match / Data Not Present<br /><code>0102</code> / Not matched / Data Not Present<br /><code>0303</code> / Not Validated / Not Validated |
| memo<br /><br />string<br /><br />Returned | Free-form comments included in the transaction data for authorization and authorization completion transactions. This field should contain additional information about address verification. Do not put personally identifiable information (PII) data here.<br /><br />**Allowable Values:**<br /><br />99 char max                                                                                                                                                                                                                                                                                                                                                                                                                                            |

<h3 id="_sample_request_returned_fields">
  Sample request (returned fields)
</h3>

The following sample JIT Funding request contains only returned fields. These fields are present in every JIT Funding request.

```json JSON expandable lines wrap theme={null}
{
  "type": "authorization",
  "state": "PENDING",
  "token": "198d1132-b34e-4445-a5ca-2e0fe4a55e26",
  "user_token": "user-158634",
  "acting_user_token": "user-158634",
  "card_token": "card-158634",
  "gpa": {
    "currency_code": "USD",
    "ledger_balance": 252.93,
    "available_balance": 0.00,
    "credit_balance": 0.00,
    "pending_credits": 0.00,
    "balances": {
      "USD": {
        "currency_code": "USD",
        "ledger_balance": 252.93,
        "available_balance": 0.00,
        "credit_balance": 0.00,
        "pending_credits": 0.00
      }
    }
  },
  "gpa_order": {
    "token": "b849f8a2-77a6-4745-bbb3-1dd8710427fa",
    "amount": 29.74,
    "transaction_token": "198d1132-b34e-4445-a5ca-2e0fe4a55e26",
    "state": "PENDING",
    "funding": {
      "amount": 29.74,
      "source": {
        "type": "programgateway",
        "token": "**********6a19",
        "active": true,
        "name": "jit funding source name",
        "is_default_account": false,
        "created_time": "2022-11-09T09:36:09Z",
        "last_modified_time": "2023-01-15T19:38:55Z"
      }
    },
    "funding_source_token": "**********6a19",
    "jit_funding": {
      "token": "0b199f94-2d5c-4fc4-9357-be998eaeebfd",
      "method": "pgfs.authorization",
      "user_token": "user-158634",
      "acting_user_token": "user-158634",
      "amount": 29.74
    },
    "user_token": "user-158634",
    "currency_code": "USD"
  },
  "created_time": "2022-09-25T23:41:25Z",
  "user_transaction_time": "2022-09-25T23:41:25Z",
  "amount": 29.74,
  "currency_code": "USD",
  "network": "MASTERCARD",
  "card_acceptor": {
    "mid": "4445001899609",
    "mcc": "5411",
    "name": "WHOLEFDS EGW 101",
    "city": "EDGEWATER",
    "state": "NJ",
    "postal_code": "07020",
    "country_code": "USA"
  },
  "acquirer": {
         "institution_country": "840",
         "institution_id_code": "375321467",
         "retrieval_reference_number": "526051868288",
         "system_trace_audit_number": "676127"
  },
  "fraud": {
         "network": {
             "transaction_risk_score": 86,
             "account_risk_score": 2
         }
  },
  "pos": {
         "pan_entry_mode": "MAG_STRIPE",
         "pin_entry_mode": "TRUE",
         "terminal_id": "TR100000",
         "terminal_attendance": "ATTENDED",
         "card_holder_presence": false,
         "card_presence": false,
         "partial_approval_capable": false,
         "purchase_amount_only": false,
         "is_recurring": false
  }
}
```

<h3 id="_sample_request_with_selection_of_conditionally_returned_fields">
  Sample request (with selection of conditionally returned fields)
</h3>

The following sample JIT Funding request contains returned fields, plus a selection of conditionally returned objects and fields such as `gpa_order.jit_funding.original_jit_funding_token`, `gpa_order.jit_funding.address_verification`, and `digital_wallet_token`.

```json JSON expandable lines wrap theme={null}
{
  "type": "authorization.incremental",
  "state": "PENDING",
  "token": "9699f5fc-3516-49c1-93a1-f6a9e6635bdf",
  "user_token": "0146434d-3c22-4906-a538-b61d39cf6f71",
  "acting_user_token": "0146434d-3c22-4906-a538-b61d39cf6f71",
  "card_token": "028b20b2-215f-4ab4-a334-f08d99def0e4",
  "preceding_related_transaction_token": "9b8444db-d4f8-43a7-9eeb-80c0bf90833f",
  "gpa": {
    "currency_code": "USD",
    "ledger_balance": 60.00,
    "available_balance": 0.00,
    "credit_balance": 0.00,
    "pending_credits": 0.00,
    "balances": {
      "USD": {
        "currency_code": "USD",
        "ledger_balance": 60.00,
        "available_balance": 0.00,
        "credit_balance": 0.00,
        "pending_credits": 0.00
      }
    }
  },
  "gpa_order": {
    "token": "a3abe952-bd25-48b8-8511-7d6350c15bf3",
    "amount": 1.00,
    "transaction_token": "9699f5fc-3516-49c1-93a1-f6a9e6635bdf",
    "state": "PENDING",
    "funding": {
      "amount": 1.00,
      "source": {
        "type": "programgateway",
        "token": "**********d27e",
        "active": true,
        "name": "Program Gateway Funding Source",
        "is_default_account": false,
        "created_time": "2022-08-24T21:52:36Z",
        "last_modified_time": "2022-08-24T21:52:36Z"
      }
    },
    "funding_source_token": "**********d27e",
    "jit_funding": {
      "token": "9f4ec793-2dfc-4a41-aac2-dbdb348f335e",
      "method": "pgfs.authorization.incremental",
      "user_token": "0146434d-3c22-4906-a538-b61d39cf6f71",
      "acting_user_token": "0146434d-3c22-4906-a538-b61d39cf6f71",
      "amount": 1.00,
      "original_jit_funding_token": "2c4f1443-a82b-446f-8fbc-366ddc5c9c9f",
      "address_verification": {
        "request": {
          "street_address": "",
          "postal_code": "94702"
        },
        "issuer": {
          "on_file": {
            "street_address": "",
            "postal_code": "94702"
          },
          "response": {
            "code": "0200",
            "memo": "Address not present and postal code match"
          }
        }
      }
    },
    "user_token": "0146434d-3c22-4906-a538-b61d39cf6f71",
    "currency_code": "USD",
  },
  "digital_wallet_token": {
    "token": "4c72bc11-1574-48c3-8cba-586072a7432f",
    "card_token": "IC_4e3omf16hwgbfpt7pumg6tfky",
    "state": "ACTIVE",
    "state_reason": "Digital wallet token provisioned to digital wallet",
    "fulfillment_status": "PROVISIONED",
    "issuer_eligibility_decision": "0000",
    "created_time": "2023-04-03T03:03:30Z",
    "last_modified_time": "2023-04-11T01:48:18Z",
    "token_service_provider": {
      "token_reference_id": "DNITHE301909311006593051",
      "pan_reference_id": "V-8679093106555599781122",
      "token_requestor_id": "40010030273",
      "token_requestor_name": "APPLE_PAY",
      "token_type": "DEVICE_SECURE_ELEMENT",
      "token_pan": "411111______1111",
      "token_expiration": "1223",
      "token_score": "14",
      "token_eligibility_decision": "DECISION_GREEN"
    },
    "device": {
      "type": "MOBILE_PHONE",
      "language_code": "eng",
      "device_id": "0423117BE44E80018327074341948822B514D73218EB41DE",
      "phone_number": "14088581301",
      "name": "iPhone",
      "location": "+35.96/-78.85",
      "ip_address": "101.203.084.990"
    },
    "wallet_provider_profile": {
      "account": {
        "email_address": "testUser@email.com",
        "score": "03"
      },
      "risk_assessment": {
        "score": "DECISION_YELLOW",
        "version": "0001.00"
      },
      "device_score": "03",
      "pan_source": "MOBILE_BANKING_APP",
      "reason_code": "0103040D"
    },
    "address_verification": {
      "name": "",
      "street_address": "180 Grand Ave",
      "zip": "**MASKED**"
    }
  },
  "created_time": "2022-09-29T21:35:03Z",
  "user_transaction_time": "2022-09-29T21:35:03Z",
  "settlement_date": "2022-09-29T00:00:00Z",
  "request_amount": 1.00,
  "amount": 1.00,
  "issuer_interchange_amount": 0.00,
  "currency_code": "USD",
  "network": "MASTERCARD",
  "acquirer_fee_amount": 0.00,
  "card_acceptor": {
    "mid": "123456890",
    "mcc": "6411",
    "name": "Marqeta Storefront",
    "address": "330 Central Ave.",
    "city": "St. Petersburg",
    "state": "FL",
    "postal_code": "33705",
    "country_code": "USA"
  },
  "acquirer": {
         "institution_country": "840",
         "institution_id_code": "375321467",
         "retrieval_reference_number": "526051868288",
         "system_trace_audit_number": "676127"
   },
   "card_security_code_verification": {
         "type": "CVV1",
         "response": {
             "code": "0000",
             "memo": "Card security code match"
         }
   },
   "fraud": {
         "network": {
             "transaction_risk_score": 86,
             "account_risk_score": 2
         }
   },
   "pos": {
         "pan_entry_mode": "MAG_STRIPE",
         "pin_entry_mode": "TRUE",
         "terminal_id": "TR100000",
         "terminal_attendance": "ATTENDED",
         "card_holder_presence": false,
         "card_presence": false,
         "partial_approval_capable": false,
         "purchase_amount_only": false,
         "is_recurring": false
   },
   "transaction_metadata": {
         "payment_channel": "OTHER"
   }
 }
```

<h3 id="_sample_request_for_account_verification">
  Sample request for account verification
</h3>

The following sample is a JIT Funding request for account verification, also known as a "zero-dollar authorization."

```json JSON expandable lines wrap theme={null}
{
  "type": "authorization",
  "state": "CLEARED",
  "token": "my_jit_funding_request_token",
  "user_token": "my_user_token",
  "acting_user_token": "my_user_token",
  "card_token": "my_user_card_token",
  "gpa": {
    "currency_code": "USD",
    "ledger_balance": 0.00,
    "available_balance": 0.00,
    "credit_balance": 0.00,
    "pending_credits": 0.00,
    "balances": {
      "USD": {
        "currency_code": "USD",
        "ledger_balance": 0.00,
        "available_balance": 0.00,
        "credit_balance": 0.00,
        "pending_credits": 0.00
      }
    }
  },
  "gpa_order": {
    "token": "my_gpa_order_token",
    "amount": 0.00,
    "transaction_token": "my_transaction_token",
    "state": "PENDING",
    "funding": {
      "amount": 0.00,
      "source": {
        "type": "programgateway",
        "token": "my_funding_source_token",
        "active": true,
        "name": "JIT Test PGFS",
        "is_default_account": false,
        "created_time": "2022-07-09T19:09:46Z",
        "last_modified_time": "2022-07-09T19:09:46Z"
      }
    },
    "funding_source_token": "my_funding_source_token",
    "jit_funding": {
      "token": "my_jit_funding_token",
      "method": "pgfs.authorization.account_verification",
      "user_token": "my_user_token",
      "acting_user_token": "my_user_token",
      "amount": 0.00
    },
    "user_token": "my_user_token",
    "currency_code": "USD"
  },
  "created_time": "2022-07-09T19:09:49Z",
  "user_transaction_time": "2022-07-09T19:09:49Z",
  "settlement_date": "2022-07-09T07:00:00Z",
  "anticipated_amount": 10.01,
  "request_amount": 0.00,
  "amount": 0.00,
  "currency_code": "USD",
  "network": "MASTERCARD",
  "subnetwork": "MASTERCARDDEBIT",
  "acquirer": {
    "institution_country": "840",
    "institution_id_code": "591987000",
    "retrieval_reference_number": "755916520361",
    "system_trace_audit_number": "046214"
  },
  "user": {
    "metadata": {}
  },
  "card": {
    "last_four": "5432",
    "metadata": {}
  },
  "fraud": {
    "network": {
      "transaction_risk_score": 53,
      "transaction_risk_score_reason_code": "19",
      "transaction_risk_score_reason_description": "Score forced to be 1 because the transaction being scored was a 04xx message"
    }
  },
  "issuer_received_time": "2022-07-09T12:09:49.796Z",
  "issuer_payment_node": "033bd94b1168d7e4f0d644c3c95e35bf",
  "network_reference_id": "MD08381635020709",
  "acquirer_reference_data": "MD0838163502",
  "card_acceptor": {
    "mid": "000457368260828",
    "mcc": "6411",
    "network_mid": "000457368260828",
    "name": "Marqeta Storefront",
    "city": "Oakland",
    "state": "CA",
    "poi": {
      "tid": "TR100000",
      "partial_approval_capable": "0",
      "cardholder_presence": "0",
      "card_presence": "1",
      "channel": "OTHER",
      "processing_type": "MAGSTRIPE",
      "pin_present": "false"
    }
  }
}
```

<h2 id="_jit_funding_responses">
  JIT Funding responses
</h2>

Your JIT Funding gateway must respond to each JIT Funding request and either approve or deny the requested funding.

Ensure that your response body adheres to the specifications in this section. You must include all required fields regardless of whether you approve or deny the transaction. Balance inquiries require an additional balances object in the response.

<h3 id="_approving_or_denying_the_request">
  Approving or denying the request
</h3>

Use the following HTTP response codes to indicate whether you approve or deny the funding request.

* **To approve funding for the JIT Funding request:** Set the HTTP response code to "200 OK".

* **To deny funding for the JIT Funding request:** Set the HTTP response code to "402 Request Failed".

<h3 id="_response_body_field_details">
  Response body field details
</h3>

| Fields                                             | Description                                                                                                                                                                                                                                                                                                                                                                                                                             |
| -------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| jit\_funding<br /><br />object<br /><br />Required | The top-level element of the response. All other fields are contained within this element.<br /><br />**NOTE:** JIT Funding responses are sent by your gateway to the Marqeta platform in response to a funding request. As such, you must provide this object in your response to the Marqeta platform; the platform does not supply it for you.<br /><br />**Allowable Values:**<br /><br />Existing <code>jit\_funding</code> object |

<h3 id="_the_jit_funding_object_2">
  The jit\_funding object
</h3>

| Fields                                                                | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| --------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Required                           | Identifies the JIT Funding request and response.<br /><br />**Allowable Values:**<br /><br />Must match request                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| method<br /><br />string<br /><br />Required                          | Identifies the JIT Funding response type.<br /><br />**Allowable Values:**<br /><br />Must match request                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| user\_token<br /><br />string<br /><br />Required                     | Identifies the holder of the user account to be funded.<br /><br />Include either a <code>user\_token</code> or <code>business\_token</code> field.<br /><br />**Allowable Values:**<br /><br />Must match request                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| business\_token<br /><br />string<br /><br />Required                 | Identifies the holder of the business account to be funded.<br /><br />Include either a <code>user\_token</code> or <code>business\_token</code> field.<br /><br />**Allowable Values:**<br /><br />Must match request                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| acting\_user\_token<br /><br />string<br /><br />Optional             | Identifies the user who conducted the transaction.<br /><br />This user can be a child user configured to share its parent’s account balance.<br /><br />**Allowable Values:**<br /><br />Must match request when present                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| amount<br /><br />decimal<br /><br />Conditionally required           | The requested amount of funding. This field is required for the <code>pgfs.balanceinquiry</code> method.<br /><br />- If <code>partial\_approval\_capable</code> is <code>false</code>, the response amount must match the request amount.<br />- If <code>partial\_approval\_capable</code> is <code>true</code>, the response amount must be less than or equal to the request amount and greater than zero.<br /><br />**WARNING:** The JIT Funding request contains multiple <code>amount</code> fields. Ensure that you use the value from <code>gpa\_order.jit\_funding.amount</code>. Do not use the value from the top-level <code>amount</code> field (or any other <code>amount</code> field) because those fields might contain a value different from the <code>gpa\_order.jit\_funding.amount</code> field. In particular, <code>amount</code> fields will differ if the account being funded has a positive account balance before JIT Funding is requested. Associated fees can also cause <code>amount</code> field values to differ.<br /><br />**Allowable Values:**<br /><br />Format: 0.00 (response must include two decimal places) |
| anticipated\_amount\_supported<br /><br />boolean<br /><br />Optional | Validate an anticipated amount verification transaction (AAVT).<br /><br />- Return a value of <code>true</code> if the cardholder’s balance matches or exceeds the anticipated amount.<br />- Return a value of <code>false</code> if the cardholder’s balance is below the anticipated amount.<br /><br />**Allowable Values:**<br /><br /><code>true</code>, <code>false</code>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| original\_jit\_funding\_token<br /><br />string<br /><br />Optional   | The token of the first associated JIT Funding message. This token enables you to correlate related JIT Funding messages (that is, those associated with the same GPA order). This field is not included in the first of any set of related messages.<br /><br />**Allowable Values:**<br /><br />Must match request when present                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| address\_verification.gateway<br /><br />object<br /><br />Optional   | Contains gateway-held address verification data and the gateway’s assertion as to whether its data matches the data provided by the cardholder.<br /><br />Include this object only if you want to override the assertion provided in the JIT Funding request.<br /><br />**Allowable Values:**<br /><br />Existing <code>jit\_funding.address\_verification.gateway</code> object                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| balances<br /><br />object<br /><br />Optional                        | Contains balance information, by currency.<br /><br />**Allowable Values:**<br /><br />Only include this object in response to an ATM balance inquiry or an ATM withdrawal. In all other scenarios it is ignored.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| tags<br /><br />string<br /><br />Optional                            | A comma-delimited list of tags.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| memo<br /><br />string<br /><br />Optional                            | Free-form comments included in the transaction data for authorization and authorization completion transactions. This field should contain additional information about the funding event. Do not put personally identifiable information (PII) data here.<br /><br />**Allowable Values:**<br /><br />99 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| decline\_reason<br /><br />string<br /><br />Optional                 | A descriptive reason for declining the transaction.<br /><br />**Allowable Values:**<br /><br /><code>AMOUNT\_LIMIT\_EXCEEDED</code>, <code>BLOCKED\_BY\_CARDHOLDER</code>, <code>BLOCKED\_BY\_ISSUER</code>, <code>BLOCKED\_MERCHANT\_BY\_CARDHOLDER</code>, <code>CARD\_NOT\_ACTIVE</code>, <code>CARDHOLDER\_NOT\_ACTIVE</code>, <code>CLOSED\_ACCOUNT</code>, <code>DUPLICATE\_TRANSACTION</code>, <code>EXPIRED\_CARD</code>, <code>INSUFFICIENT\_FUNDS</code>, <code>INVALID\_AMOUNT</code>, <code>INVALID\_CARD</code>, <code>INVALID\_MERCHANT</code>, <code>NO\_CHECKING\_ACCOUNT</code>, <code>NO\_CREDIT\_ACCOUNT</code>, <code>NO\_SAVINGS\_ACCOUNT</code>, <code>REVOCATION\_AUTHORIZATION\_ORDER</code>, <code>REVOCATION\_ALL\_AUTHORIZATION\_ORDER</code>, <code>SOFT\_DECLINE\_AUTHENTICATION\_REQUIRED</code>, <code>SOFT\_DECLINE\_PIN\_REQUIRED</code>, <code>STOP\_PAYMENT</code>, <code>SUSPECTED\_FRAUD</code>, <code>TRANSACTION\_COUNT\_LIMIT\_EXCEEDED</code>, <code>TRANSACTION\_NOT\_PERMITTED</code>                                                                                                                         |

<h3 id="_the_jit_funding_address_verification_gateway_object">
  The jit\_funding.address\_verification.gateway object
</h3>

| Fields                                         | Description                                                                                                                                                                             |
| ---------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| on\_file<br /><br />object<br /><br />Optional | Contains address verification data held by the gateway.<br /><br />**Allowable Values:**<br /><br /><code>street\_address</code>, <code>postal\_code</code>                             |
| response<br /><br />object<br /><br />Optional | Contains the gateway’s assertion as to whether its address verification data matches the cardholder’s.<br /><br />**Allowable Values:**<br /><br /><code>code</code>, <code>memo</code> |

<h3 id="_the_jit_funding_address_verification_gateway_on_file_object">
  The jit\_funding.address\_verification.gateway.on\_file object
</h3>

| Fields                                                | Description                                                                                     |
| ----------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| street\_address<br /><br />string<br /><br />Optional | Street address provided by the gateway.<br /><br />**Allowable Values:**<br /><br />40 char max |
| postal\_code<br /><br />string<br /><br />Optional    | Postal code provided by the gateway.<br /><br />**Allowable Values:**<br /><br />9 char max     |

<h3 id="_the_jit_funding_address_verification_gateway_response_object">
  The jit\_funding.address\_verification.gateway.response object
</h3>

| Fields                                     | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| code<br /><br />string<br /><br />Optional | The gateway’s assertion as to whether the address verification data provided by the gateway and cardholder match. The assertion is presented as a four-digit code.<br /><br />**Allowable Values:**<br /><br />One of the following assertion codes:<br /><br />Code / Address / Postal Code<br /><code>0000</code> / Match / Match<br /><code>0001</code> / Match / Not matched<br /><code>0100</code> / Not matched / Match<br /><code>0101</code> / Not matched / Not matched<br /><code>0200</code> / Data Not Present / Match<br /><code>0201</code> / Data Not Present / Not matched<br /><code>0002</code> / Match / Data not present<br /><code>0102</code> / Not matched / Data not present<br /><code>0303</code> / Not Validated / Not validated |
| memo<br /><br />string<br /><br />Optional | Free-form comments included in the transaction data for authorization and authorization completion transactions. This field should contain additional information about address verification. Do not put personally identifiable information (PII) data here.<br /><br />**Allowable Values:**<br /><br />99 char max                                                                                                                                                                                                                                                                                                                                                                                                                                       |

<h3 id="_the_jit_funding_balances_object">
  The jit\_funding.balances object
</h3>

The `balances` object contains one or more objects for each currency of funds held by the associated account. For example, if an account only holds a balance in USD, there is one sub-object: `USD`.

When responding to balance inquiries, you must include the `jit_funding.balances` object containing fields matching the request’s `gpa.balances` object. In the case of an ATM withdrawal, you should include the `jit_funding.balances` object in your JIT Funding response to display the current account balance, otherwise a balance of \$0 is shown to the cardholder.

You must populate the `balances` object with the correct amounts from your ledger. You should not include the `amount` field in your response.

<Note>
  **Note**\
  Your gateway must handle scenarios where cardholders make purchases and balance inquiries in quick succession.
</Note>

Each currency-specific sub-object of `jit_funding.balances` contains the following fields:

| Fields                                                    | Description                                                                                                                                                                                                                                           |
| --------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| currency\_code<br /><br />string<br /><br />Required      | The three-digit ISO 4217 currency code of the balance.<br /><br />**Allowable Values:**<br /><br />Valid three-digit <a href="https://www.iso.org/iso-4217-currency-codes.html" target="_blank" rel="noopener">ISO 4217 currency code</a>             |
| ledger\_balance<br /><br />decimal<br /><br />Optional    | Authorized funds that are currently on hold, but not yet cleared.<br /><br />**Allowable Values:**<br /><br />Format: 0.00                                                                                                                            |
| available\_balance<br /><br />decimal<br /><br />Required | The ledger balance minus any authorized transactions that have not yet cleared. Also known as the cardholder’s purchasing power. If you are using JIT Funding, this balance is usually 0.00.<br /><br />**Allowable Values:**<br /><br />Format: 0.00 |
| credit\_balance<br /><br />decimal<br /><br />Optional    | Not currently used.<br /><br />**Allowable Values:**<br /><br />Not applicable                                                                                                                                                                        |
| pending\_credits<br /><br />decimal<br /><br />Optional   | ACH loads that have been accepted, but for which the funding time has not yet elapsed.<br /><br />**Allowable Values:**<br /><br />Format: 0.00                                                                                                       |

<h3 id="_sample_responses_for_authorizations">
  Sample responses for authorizations
</h3>

```json JSON expandable lines wrap theme={null}
{
  "jit_funding": {
    "token": "b0a889ec-d7e2-4744-bc09-aa86b0738500",
    "method": "pgfs.authorization",
    "user_token": "0146434d-3c22-4906-a538-b61d39cf6f71",
    "amount": 1.00,
    "address_verification": {
      "gateway": {
        "on_file": {
          "street_address": "199 Elm Street Apt #3",
          "postal_code": "94612"
        },
        "response": {
          "code": "0100",
          "memo": "Address and postal code match"
        }
      }
    },
    "original_jit_funding_token": "a1a879ec-d7e2-4744-rc08-ca24b0738537",
    "tags": "groceries, 77.44, countryside foods",
    "memo": "Order # 12345 – Funding for 77.44 for employee R.Smith. 77.44 for groceries at Countryside Foods"
  }
}
```

```json JSON lines wrap theme={null}
{
  "jit_funding": {
    "token": "my_jit_funding_response_token",
    "method": "pgfs.authorization.account_verification",
    "user_token": "my_user_token",
    "acting_user_token": "my_user_token",
    "amount": 0.00,
    "memo": "MEMO: Fri Jul 09 12:09:50 PDT 2021",
    "tags": "TAGS: Fri Jul 09 12:09:50 PDT 2021"
  }
}
```

<h3 id="_sample_response_for_balance_inquiries">
  Sample response for balance inquiries
</h3>

```json JSON lines wrap theme={null}
{
  "jit_funding": {
    "token": "b0a889ec-d7e2-4744-bc09-aa86b0738500",
    "method": "pgfs.balanceinquiry",
    "user_token": "0146434d-3c22-4906-a538-b61d39cf6f71",
    "balances": {
      "USD": {
        "currency_code": "USD",
        "ledger_balance": 100.00,
        "available_balance": 100.00,
        "pending_credits": 0.00
      }
    }
  }
}
```

<h3 id="_sample_response_for_an_atm_withdrawal">
  Sample response for an ATM withdrawal
</h3>

```json JSON lines wrap theme={null}
{
  "jit_funding": {
    "token": "6b958ef3-7e65-4e8f-9161-d0812be7a19b",
    "method": "pgfs.authorization",
    "user_token": "668f4550-4cc3-40e6-ac7e-1e70da332b3e",
    "acting_user_token": "668f4550-4cc3-40e6-ac7e-1e70da332b3e",
    "amount": 86.14,
    "tags": "auth_method=1",
    "balances": {
      "USD": {
        "currency_code": "USD",
        "ledger_balance": 86.14,
        "available_balance": 13.86
      }
    }
  }
}
```

<h2 id="_jit_funding_notifications">
  JIT Funding notifications
</h2>

The transaction that triggered the JIT Funding request and all associated transactions are sent to your system as [webhook notifications](/developer-guides/about-webhooks/). The JIT Funding notification body contains the entire transaction.

To implement JIT Funding notifications, you must complete the following tasks:

* Set up a webhook endpoint in your system to receive JIT Funding notifications.

* Respond to each notification message with an HTTP response code of "200 OK" and an empty response body. (The Marqeta platform resends the message until it receives the appropriate response.)

You should use JIT Funding notifications to validate that the Marqeta platform receives and correctly processes each of your JIT Funding responses. Doing so safeguards against a situation where the Marqeta platform times out because of a delayed JIT Funding response and declines an authorization for which you already approved JIT Funding. In a case such as this, you need to know that the authorization was not approved and ensure that your cardholder is not debited for the transaction.

<h3 id="_the_gpa_order_jit_funding_object_2">
  The gpa\_order.jit\_funding object
</h3>

| Fields                                                                                                         | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| token<br /><br />string<br /><br />Returned                                                                    | Existing JIT Funding token matching the <code>funding.gateway\_log.transaction\_id</code> field of the associated GPA order. Note that the <code>transaction\_id</code> field updates if a subsequent JIT Funding message associated with that GPA order is sent. If multiple JIT Funding messages are associated with the same GPA order, the <code>transaction\_id</code> field matches the token of the most recent message.<br /><br />**Allowable Values:**<br /><br />36 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| method<br /><br />string<br /><br />Returned                                                                   | JIT Funding response type.<br /><br />**Allowable Values:**<br /><br /><code>pgfs.authorization</code>, <code>pgfs.balanceinquiry</code>, <code>pgfs.authorization.incremental</code>, <code>pgfs.authorization.capture</code>, <code>pgfs.authorization.reversal</code>, <code>pgfs.auth\_plus\_capture</code>, <code>pgfs.refund</code>, <code>pgfs.force\_capture</code>, <code>pgfs.authorization.capture.chargeback</code>, <code>pgfs.authorization.capture.chargeback.reversal</code>, <code>pgfs.pindebit.chargeback</code>, <code>pgfs.pindebit.chargeback.reversal</code>, <code>pgfs.dispute.credit</code>, <code>pgfs.dispute.debit</code>, <code>pgfs.directdeposit.credit</code>, <code>pgfs.directdeposit.debit</code>, <code>pgfs.directdeposit.credit.reversal</code>, <code>pgfs.directdeposit.debit.reversal</code>, <code>pgfs.adjustment.credit</code>, <code>pgfs.adjustment.debit</code>, <code>pgfs.auth\_plus\_capture.standin</code>, <code>pgfs.authorization.standin</code>, <code>pgfs.network.load</code>, <code>pgfs.original.credit.authorization</code>, <code>pgfs.original.credit.auth\_plus\_capture</code>, <code>pgfs.refund.authorization</code>, <code>pgfs.refund.authorization.reversal</code>, <code>pgfs.billpayment</code>, <code>pgfs.billpayment.capture</code>, <code>pgfs.billpayment.reversal</code>, <code>pgfs.authorization.account\_verification</code>, <code>pgfs.product.inquiry</code> |
| business\_token<br /><br />string<br /><br />Returned                                                          | Identifies the holder of the business account that was funded.<br /><br />Either a <code>user\_token</code> or <code>business\_token</code> field is present, not both.<br /><br />**Allowable Values:**<br /><br />Existing business token                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| user\_token<br /><br />string<br /><br />Returned                                                              | Identifies the holder of the user account that was funded.<br /><br />Either a <code>user\_token</code> or <code>business\_token</code> field is present, not both.<br /><br />**Allowable Values:**<br /><br />Existing user token                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| acting\_user\_token<br /><br />string<br /><br />Returned                                                      | Identifies the user who conducted the transaction.<br /><br />This user can be a child user configured to share its parent’s account balance.<br /><br />**Allowable Values:**<br /><br />Existing user token                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| amount<br /><br />decimal<br /><br />Returned                                                                  | Amount of funding requested.<br /><br />**NOTE:** This field’s value can differ from the transaction’s top-level <code>amount</code> field (or any other <code>amount</code> field) within the transaction. In particular, these fields will differ if the account being funded already has a positive account balance. Associated fees can also cause these fields to differ.<br /><br />**Allowable Values:**<br /><br />0 min                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| address\_verification<br /><br />object<br /><br />Conditionally returned                                      | Contains address verification data consisting of address data entered by the cardholder, address data held by the Marqeta platform, and an assertion by the Marqeta platform as to whether the two sets of data match. Returned depending on the merchant, card network, or product/service purchased.<br /><br />**Allowable Values:**<br /><br /><code>gateway</code>, <code>issuer</code>, <code>request</code>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| original\_jit\_funding\_token<br /><br />string<br /><br />Conditionally returned                              | Unique identifier of the first associated JIT Funding message. Useful for correlating related JIT Funding messages (that is, those associated with the same GPA order). Not included in the first of any set of related messages.<br /><br />**Allowable Values:**<br /><br />Existing JIT Funding message token from the <code>jit\_funding.token</code> field                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| incremental\_authorization\_jit\_funding\_tokens<br /><br />array of strings<br /><br />Conditionally returned | Array of tokens referencing the <code>jit\_funding.token</code> field of all previous associated <code>pgfs.authorization.incremental</code> JIT Funding requests. This field enables you to ascertain the final transaction amount when the original amount was incremented. It is present in JIT Funding notifications of type <code>pgfs.authorization.capture</code> and <code>pgfs.authorization.reversal</code> (for partial reversals only) if the amount of the initial authorization was increased by way of a <code>pgfs.authorization.incremental</code> JIT Funding request.<br /><br />**Allowable Values:**<br /><br />Valid array of existing JIT Funding request tokens from the <code>jit\_funding.token</code> field                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |

<h3 id="_the_gpa_order_jit_funding_address_verification_object_2">
  The gpa\_order.jit\_funding.address\_verification object
</h3>

| Fields                                                      | Description                                                                                                                                                                                                                                                                                                                                                                                                      |
| ----------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| request<br /><br />object<br /><br />Conditionally returned | Contains address verification data provided by the cardholder. Returned depending on the merchant, card network, or product/service purchased.<br /><br />**Allowable Values:**<br /><br />Existing <code>gpa\_order.jit\_funding.address\_verification.request</code> object                                                                                                                                    |
| issuer<br /><br />object<br /><br />Conditionally returned  | Contains both address verification data held by the Marqeta platform and an assertion by the Marqeta platform as to whether its address verification data matches that provided by the cardholder. Returned depending on the merchant, card network, or product/service purchased.<br /><br />**Allowable Values:**<br /><br />Existing <code>gpa\_order.jit\_funding.address\_verification.issuer</code> object |
| gateway<br /><br />object<br /><br />Conditionally returned | Contains address verification data consisting of address data entered by the cardholder, address data held by the Marqeta platform, and an assertion by the Marqeta platform as to whether the two sets of data match.<br /><br />**Allowable Values:**<br /><br /><code>on\_file</code>, <code>response</code>                                                                                                  |
| request<br /><br />object<br /><br />Conditionally returned | Contains address verification data provided by the cardholder. Returned depending on the merchant, card network, or product/service purchased.<br /><br />**Allowable Values:**<br /><br />Existing <code>gpa\_order.jit\_funding.address\_verification.request</code> object.                                                                                                                                   |

<h3 id="_the_gpa_order_jit_funding_address_verification_issuer_object_2">
  The gpa\_order.jit\_funding.address\_verification.issuer object
</h3>

| Fields                                                       | Description                                                                                                                                                                                                                                                                                         |
| ------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| on\_file<br /><br />object<br /><br />Conditionally returned | Contains address verification data held by the Marqeta platform. Returned depending on the merchant, card network, or product/service purchased.<br /><br />**Allowable Values:**<br /><br />Existing <code>gpa\_order.jit\_funding.address\_verification.issuer.on\_file</code> object.            |
| response<br /><br />object<br /><br />Conditionally returned | Contains an assertion by the Marqeta platform as to whether its address verification data matches that provided by the cardholder. Returned depending on the merchant, card network, or product/service purchased.<br /><br />**Allowable Values:**<br /><br /><code>code</code>, <code>memo</code> |

<h3 id="_the_gpa_order_jit_funding_address_verification_issuer_on_file_object_2">
  The gpa\_order.jit\_funding.address\_verification.issuer.on\_file object
</h3>

| Fields                                                              | Description                                                                                                                                                                                                                                                                                                                     |
| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| street\_address<br /><br />string<br /><br />Conditionally returned | Street address provided by the Marqeta platform. Returned depending on the merchant, card network, or product/service purchased.<br /><br />This field is a concatenation of the <code>address1</code> and <code>address2</code> fields associated with the cardholder.<br /><br />**Allowable Values:**<br /><br />40 char max |
| postal\_code<br /><br />string<br /><br />Conditionally returned    | Postal code provided by the Marqeta platform. Returned depending on the merchant, card network, or product/service purchased.<br /><br />**Allowable Values:**<br /><br />9 char max                                                                                                                                            |

<h3 id="_the_gpa_order_jit_funding_address_verification_issuer_response_object_2">
  The gpa\_order.jit\_funding.address\_verification.issuer.response object
</h3>

| Fields                                                   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| code<br /><br />string<br /><br />Conditionally returned | Assertion by the Marqeta platform as to whether its address verification data matches that provided by the cardholder. Returned depending on the merchant, card network, or product/service purchased. The assertion is presented as a four-digit code.<br /><br />**Allowable Values:**<br /><br />One of the following assertion codes:<br /><br />Code / Address / Postal Code<br /><code>0000</code> / Match / Match<br /><code>0001</code> / Match / Not matched<br /><code>0100</code> / Not matched / Match<br /><code>0101</code> / Not matched / Not matched<br /><code>0200</code> / Data Not Present / Match<br /><code>0201</code> / Data Not Present / Not matched<br /><code>0002</code> / Match / Data Not Present<br /><code>0102</code> / Not matched / Data Not Present<br /><code>0303</code> / Not Validated / Not Validated |
| memo<br /><br />string<br /><br />Conditionally returned | Free-form comments included in the transaction data for authorization and authorization completion transactions. Returned depending on the merchant, card network, or product/service purchased. This field should contain additional information about address verification. Do not put personally identifiable information (PII) data here.<br /><br />**Allowable Values:**<br /><br />99 char max                                                                                                                                                                                                                                                                                                                                                                                                                                            |

<h3 id="_the_gpa_order_jit_funding_address_verification_gateway_object">
  The gpa\_order.jit\_funding.address\_verification.gateway object
</h3>

| Fields                                                       | Description                                                                                                                                                                                                                                           |
| ------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| on\_file<br /><br />object<br /><br />Conditionally returned | Contains address verification information.<br /><br />**Allowable Values:**<br /><br /><code>postal\_code</code>, <code>street\_address</code>, <code>zip</code>                                                                                      |
| response<br /><br />object<br /><br />Conditionally returned | Contains the Marqeta platform’s assertion as to whether its address verification data matches that provided by the cardholder.<br /><br />**Allowable Values:**<br /><br /><code>additional\_information</code>, <code>code</code>, <code>memo</code> |

<h3 id="_the_gpa_order_jit_funding_address_verification_gateway_on_file_object">
  The gpa\_order.jit\_funding.address\_verification.gateway.on\_file object
</h3>

| Fields                                                                                                                      | Description                                                                                                                                                                                                                                                                                                                     |
| --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| jit\_funding.address\_verification.gateway.on\_file.**postal\_code**<br /><br />string<br /><br />Conditionally returned    | Postal code provided by the Marqeta platform. Returned depending on the merchant, card network, or product/service purchased.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                           |
| jit\_funding.address\_verification.gateway.on\_file.**street\_address**<br /><br />string<br /><br />Conditionally returned | Street address provided by the Marqeta platform. Returned depending on the merchant, card network, or product/service purchased.<br /><br />This field is a concatenation of the <code>address1</code> and <code>address2</code> fields associated with the cardholder.<br /><br />**Allowable Values:**<br /><br />40 char max |
| jit\_funding.address\_verification.gateway.on\_file.**zip**<br /><br />string<br /><br />Conditionally returned             | United States ZIP code of the address.<br /><br />**Allowable Values:**<br /><br />10 char max                                                                                                                                                                                                                                  |

<h3 id="_the_gpa_order_jit_funding_address_verification_gateway_response_object">
  The gpa\_order.jit\_funding.address\_verification.gateway.response object
</h3>

| Fields                                                                                             | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| -------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| jit\_funding.address\_verification.gateway.response.**code**<br /><br />string<br /><br />Returned | Assertion by the Marqeta platform as to whether its address verification data matches that provided by the cardholder. The assertion is presented as a four-digit code.<br /><br />**Allowable Values:**<br /><br />One of the following assertion codes:<br /><br />Code / Address / Postal Code<br /><code>0000</code> / Match / Match<br /><code>0001</code> / Match / Not matched<br /><code>0100</code> / Not matched / Match<br /><code>0101</code> / Not matched / Not matched<br /><code>0200</code> / Data Not Present / Match<br /><code>0201</code> / Data Not Present / Not matched<br /><code>0002</code> / Match / Data Not Present<br /><code>0102</code> / Not matched / Data Not Present<br /><code>0303</code> / Not Validated / Not Validated |
| jit\_funding.address\_verification.gateway.response.**memo**<br /><br />string<br /><br />Returned | Information on the outcome of the attempted transaction type.<br /><br />**Allowable Values:**<br /><br />255 char max                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |

<h3 id="_the_gpa_order_jit_funding_address_verification_request_object_2">
  The gpa\_order.jit\_funding.address\_verification.request object
</h3>

| Fields                                                              | Description                                                                                                                                                                        |
| ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| street\_address<br /><br />string<br /><br />Conditionally returned | Street address provided by the cardholder. Returned depending on the merchant, card network, or product/service purchased.<br /><br />**Allowable Values:**<br /><br />40 char max |
| postal\_code<br /><br />string<br /><br />Conditionally returned    | Postal code provided by the cardholder. Returned depending on the merchant, card network, or product/service purchased.<br /><br />**Allowable Values:**<br /><br />9 char max     |

<h3 id="_the_gpa_order_unload_jit_funding_object">
  The gpa\_order\_unload.jit\_funding object
</h3>

| Fields                                                                            | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| --------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| token<br /><br />string<br /><br />Returned                                       | Identifies the JIT Funding notification.<br /><br />**Allowable Values:**<br /><br />Matches the <code>funding.gateway\_log.transaction\_id</code> field of the associated GPA order. Note that the <code>transaction\_id</code> field updates if a subsequent JIT Funding message associated with that GPA order is sent. If multiple JIT Funding messages are associated with the same GPA order, the <code>transaction\_id</code> field matches the token of the most recent message. |
| method<br /><br />string<br /><br />Returned                                      | Identifies the JIT Funding notification type.<br /><br />**Allowable Values:**<br /><br /><code>pgfs.adjustment.debit</code>, <code>pgfs.authorization.capture.chargeback</code>, <code>pgfs.refund</code>, <code>pgfs.refund.authorization.reversal</code>                                                                                                                                                                                                                              |
| business\_token<br /><br />string<br /><br />Returned                             | Identifies the holder of the account that was JIT funded.<br /><br />Either a <code>user\_token</code> or <code>business\_token</code> field is present, not both.<br /><br />**Allowable Values:**<br /><br />Existing business token                                                                                                                                                                                                                                                   |
| user\_token<br /><br />string<br /><br />Returned                                 | Identifies the holder of the account that was JIT funded.<br /><br />Either a <code>user\_token</code> or <code>business\_token</code> field is present, not both.<br /><br />**Allowable Values:**<br /><br />Existing user token                                                                                                                                                                                                                                                       |
| acting\_user\_token<br /><br />string<br /><br />Returned                         | Identifies the user who conducted the transaction.<br /><br />This user can be a child user configured to share its parent’s account balance.<br /><br />**Allowable Values:**<br /><br />Existing user token                                                                                                                                                                                                                                                                            |
| amount<br /><br />decimal<br /><br />Returned                                     | Requested amount of JIT Funding.<br /><br />**NOTE:** This field’s value can differ from the transaction’s top-level <code>amount</code> field (or any other <code>amount</code> field) within the transaction. In particular, these fields will differ if the account being funded already has a positive balance. Associated fees can also cause these fields to differ.<br /><br />**Allowable Values:**<br /><br />0 min                                                             |
| original\_jit\_funding\_token<br /><br />string<br /><br />Conditionally returned | The token of the first associated JIT Funding message. This enables you to correlate related JIT Funding messages (that is, those associated with the same GPA order). This field is not included in the first of any set of related messages.<br /><br />**Allowable Values:**<br /><br />Existing JIT Funding message token (from the <code>jit\_funding.token</code> field)                                                                                                           |

<h3 id="_sample_notification">
  Sample notification
</h3>

```json JSON expandable lines wrap theme={null}
{
     "type": "authorization",
     "state": "PENDING",
     "token": "3fce1245-6fc8-4da6-aab2-0fb43b8a5c85",
     "user_token": "b2d2c739-a9fe-4af0-9f34-964aae4c3e31",
     "acting_user_token": "b2d2c739-a9fe-4af0-9f34-964aae4c3e31",
     "card_token": "72e72093-f7cb-45fc-aec0-35523eb52c15",
     "gpa": {
         "currency_code": "USD",
         "ledger_balance": 10.00,
         "available_balance": 0.00,
         "credit_balance": 0.00,
         "pending_credits": 0.00,
         "impacted_amount": -10.00,
         "balances": {
             "USD": {
                 "currency_code": "USD",
                 "ledger_balance": 10.00,
                 "available_balance": 0.00,
                 "credit_balance": 0.00,
                 "pending_credits": 0.00,
                 "impacted_amount": -10.00
             }
         }
     },
     "gpa_order": {
         "token": "097f4264-54f0-4c1d-8f5c-a85b2f83d787",
         "amount": 10.00,
         "created_time": "2022-07-10T18:13:26Z",
         "last_modified_time": "2022-07-10T18:13:26Z",
         "transaction_token": "0ca8d264-6f6b-46fa-a6f7-21ec6342a76e",
         "state": "PENDING",
         "response": {
             "code": "0000",
             "memo": "Approved or completed successfully"
         },
         "funding": {
             "amount": 10.00,
             "source": {
                 "type": "programgateway",
                 "token": "**********4ebf",
                 "active": true,
                 "name": "PGFS for simulating transactions",
                 "is_default_account": false,
                 "created_time": "2022-07-10T18:13:25Z",
                 "last_modified_time": "2022-07-10T18:13:25Z"
             },
             "gateway_log": {
                 "order_number": "3fce1245-6fc8-4da6-aab2-0fb43b8a5c85",
                 "transaction_id": "your-jit-funding-token",
                 "message": "Approved or completed successfully",
                 "duration": 244,
                 "timed_out": false,
                 "response": {
                     "code": "200",
                     "data": {
                         "jit_funding": {
                             "token": "your-jit-funding-token",
                             "method": "pgfs.authorization",
                             "user_token": "your-jit-funding-user",
                             "amount": 10.00,
                             "original_jit_funding_token": "your-jit-funding-token"
                         }
                     }
                 }
             }
         },
         "funding_source_token": "**********4ebf",
         "jit_funding": {
             "token": "b6086727-1513-419e-8b11-c550572274ce",
             "method": "pgfs.authorization",
             "user_token": "b2d2c739-a9fe-4af0-9f34-964aae4c3e31",
             "acting_user_token": "b2d2c739-a9fe-4af0-9f34-964aae4c3e31",
             "amount": 10.00
         },
         "user_token": "b2d2c739-a9fe-4af0-9f34-964aae4c3e31",
         "currency_code": "USD"
     },
     "duration": 426,
     "created_time": "2022-07-10T18:13:26Z",
     "user_transaction_time": "2022-07-10T18:13:26Z",
     "settlement_date": "2022-07-10T00:00:00Z",
     "request_amount": 10.00,
     "amount": 10.00,
     "issuer_interchange_amount": 0.00,
     "currency_code": "USD",
     "approval_code": "736660",
     "response": {
         "code": "0000",
         "memo": "Approved or completed successfully"
     },
     "network": "VISA",
     "subnetwork": "VISANET",
     "acquirer_fee_amount": 0.00,
     "acquirer": {
         "system_trace_audit_number": "035956"
     },
     "user": {
         "metadata": {}
     },
     "card": {
         "metadata": {}
     },
     "card_security_code_verification": {
         "type": "CVV1",
         "response": {
             "code": "0000",
             "memo": "Card security code match"
         }
     },
     "fraud": {
         "network": {
             "transaction_risk_score": 86,
             "account_risk_score": 2
         }
     },
     "card_acceptor": {
         "mid": "11111",
         "mcc": "6411",
         "name": "Aegis Fleet Services",
         "street_address": "111 Main St",
         "city": "Berkeley",
         "state": "CA",
         "postal_code": "94702",
         "country_code": "USA"
     },
     "pos": {
         "partial_approval_capable": true,
         "purchase_amount_only": false,
         "is_recurring": false
     }
 }
```

<h2 id="_reconciliation_with_custom_mapping">
  Reconciliation with custom mapping
</h2>

Through customization of the JIT Funding response, you can facilitate end-to-end reconciliation of JIT Funding-related activities in your system.

The JIT Funding response originates from your system. The response contains two optional fields that you can use to inject custom metadata from your system into your JIT Funding-enabled authorization and authorization completion transactions. This mechanism enables you to map elements of your system (such as order numbers, invoice numbers, loan identifiers) to purchases (as represented by transactions).

<Note>
  **Note**\
  These two optional fields only appear in the transaction notifications for certain transaction events: authorizations and authorization completion.
</Note>

The following sample code snippet shows these two optional fields in the JIT Funding response. The `tags` field is intended for holding a comma-delimited list of tags, whereas the `memo` field is intended for holding a free-form note containing additional information you would like included in your transaction data. Do not put personally identifiable information (PII) data here.

```json JSON lines wrap theme={null}
{
  "jit_funding": {
    ...
    "tags": "travel, gas, 32.45, vegas",
    "memo": "Order # 12345 -  Funding for employee M.Jones. $32.45 in gas for conference in Vegas."
  }
}
```

The authorization or authorization completion transaction stores the custom metadata contained in these fields for access throughout the transaction’s lifecycle. You can access this metadata via webhook notifications or by querying the `/transactions` endpoint (see [Webhooks](/developer-guides/about-webhooks/) and [Transactions](/core-api/transactions/)). The following sample code snippet shows these fields in the context of a transaction:

```json JSON expandable lines wrap theme={null}
{
  "token": "8f5067b5-9c04-4ecb-818e-3c215182b935",
  "type": "authorization",
  "state": "PENDING",
  "duration": 502,
  "amount": 9.88,
  "response": {
    "code": "0000",
    "memo": "Approved or completed successfully"
  },
  // ... snip ...
  "gpa_order": {
    // ... snip ...
      "gateway_log": {
        "message": "Approved or completed successfully",
        "duration": 377,
        "order_number": "8984484",
        "transaction_id": "4674c07b-23f7-45a5-bc04-95efdc2fe45b",
        "timed_out": false,
        "response": {
          "code": "200",
          "data": {
            "jit_funding": {
              "token": "4674c07b-23f7-45a5-bc04-95efdc2fe45b",
              "method": "pgfs.authorization",
              "amount": 9.88,
              "user_token": "132076",
              "tags": "travel, gas, 32.45, vegas",
              "memo": "Order # 12345 -  Funding for employee M.Jones. $32.45 in gas for conference in Vegas."
            }
          }
        }
      }
    // ... snip ...
  // ... snip ...
}
```
