Retrieves an Issuing Transaction object.

Parameters

No parameters.

Returns

Returns an Issuing Transaction object if a valid identifier was provided.

GET /v1/issuing/transactions/:id
curl https://api.stripe.com/v1/issuing/transactions/ipi_1MzFN1K8F4fqH0lBmFq8CjbU \
-u "sk_test_4eC39Hq...arjtT1zdp7dcsk_test_4eC39HqLyjWDarjtT1zdp7dc:"
Response
{
"id": "ipi_1MzFN1K8F4fqH0lBmFq8CjbU",
"object": "issuing.transaction",
"amount": -100,
"amount_details": {
"atm_fee": null
},
"authorization": "iauth_1MzFMzK8F4fqH0lBc9VdaZUp",
"balance_transaction": "txn_1MzFN1K8F4fqH0lBQPtqUmJN",
"card": "ic_1MzFMxK8F4fqH0lBjIUITRYi",
"cardholder": "ich_1MzFMxK8F4fqH0lBXnFW0ROG",
"created": 1682065867,
"currency": "usd",
"dispute": null,
"livemode": false,
"merchant_amount": -100,
"merchant_currency": "usd",
"merchant_data": {
"category": "computer_software_stores",
"category_code": "5734",
"city": "SAN FRANCISCO",
"country": "US",
"name": "WWWW.BROWSEBUG.BIZ",
"network_id": "1234567890",
"postal_code": "94103",
"state": "CA"
},
"metadata": {},
"type": "capture",
"wallet": null
}

Returns a list of Issuing Transaction objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.

Parameters

  • cardstring

    Only return transactions that belong to the given card.

  • cardholderstring

    Only return transactions that belong to the given cardholder.

More parameters

  • createdobject

  • ending_beforestring

  • limitinteger

  • starting_afterstring

  • typeenum

Returns

A dictionary with a data property that contains an array of up to limit transactions, starting after transaction starting_after. Each entry in the array is a separate Issuing Transaction object. If no more transactions are available, the resulting array will be empty.

GET /v1/issuing/transactions
curl -G https://api.stripe.com/v1/issuing/transactions \
-u "sk_test_4eC39Hq...arjtT1zdp7dcsk_test_4eC39HqLyjWDarjtT1zdp7dc:" \
-d limit=3
Response
{
"object": "list",
"url": "/v1/issuing/transactions",
"has_more": false,
"data": [
{
"id": "ipi_1MzFN1K8F4fqH0lBmFq8CjbU",
"object": "issuing.transaction",
"amount": -100,
"amount_details": {
"atm_fee": null
},
"authorization": "iauth_1MzFMzK8F4fqH0lBc9VdaZUp",
"balance_transaction": "txn_1MzFN1K8F4fqH0lBQPtqUmJN",
"card": "ic_1MzFMxK8F4fqH0lBjIUITRYi",
"cardholder": "ich_1MzFMxK8F4fqH0lBXnFW0ROG",
"created": 1682065867,
"currency": "usd",
"dispute": null,
"livemode": false,
"merchant_amount": -100,
"merchant_currency": "usd",
"merchant_data": {
"category": "computer_software_stores",
"category_code": "5734",
"city": "SAN FRANCISCO",
"country": "US",
"name": "WWWW.BROWSEBUG.BIZ",
"network_id": "1234567890",
"postal_code": "94103",
"state": "CA"
},
"metadata": {},
"type": "capture",
"wallet": null
}
]
}

Allows the user to capture an arbitrary amount, also known as a forced capture.

Parameters

  • amountintegerRequired

    The total amount to attempt to capture. This amount is in the provided currency, or defaults to the cards currency, and in the smallest currency unit.

  • cardstringRequired

    Card associated with this transaction.

  • currencyenum

    The currency of the capture. If not provided, defaults to the currency of the card. Three-letter ISO currency code, in lowercase. Must be a supported currency.

More parameters

  • merchant_dataobject

  • purchase_detailsobject

Returns

A Transaction object

POST /v1/test_helpers/issuing/transactions/create_force_capture
curl https://api.stripe.com/v1/test_helpers/issuing/transactions/create_force_capture \
-u "sk_test_4eC39Hq...arjtT1zdp7dcsk_test_4eC39HqLyjWDarjtT1zdp7dc:" \
-d amount=1000 \
-d card=ic_1Gswa82eZvKYlo2CP2jveFil
Response
{
"id": "ipi_1GswaK2eZvKYlo2Co7wmNJhD",
"object": "issuing.transaction",
"amount": -1000,
"amount_details": {
"atm_fee": null,
"cashback_amount": null
},
"authorization": "iauth_1GswaJ2eZvKYlo2Ct9mFMJ4S",
"balance_transaction": "txn_1GswaK2eZvKYlo2CJAFFIuHg",
"card": "ic_1Gswa82eZvKYlo2CP2jveFil",
"cardholder": "ich_1Gswa82eZvKYlo2CvobneLSo",
"created": 1591905672,
"currency": "usd",
"dispute": null,
"livemode": false,
"merchant_amount": -1000,
"merchant_currency": "usd",
"merchant_data": {
"category": "computer_software_stores",
"category_code": "5734",
"city": "SAN FRANCISCO",
"country": "US",
"name": "STRIPE.COM",
"network_id": "1234567890",
"postal_code": "94103",
"state": "CA",
"terminal_id": null
},
"metadata": {
"order_id": "6735"
},
"redaction": null,
"type": "capture",
"wallet": null
}

Allows the user to refund an arbitrary amount, also known as a unlinked refund.

Parameters

  • amountintegerRequired

    The total amount to attempt to refund. This amount is in the provided currency, or defaults to the cards currency, and in the smallest currency unit.

  • cardstringRequired

    Card associated with this unlinked refund transaction.

  • currencyenum

    The currency of the unlinked refund. If not provided, defaults to the currency of the card. Three-letter ISO currency code, in lowercase. Must be a supported currency.

More parameters

  • merchant_dataobject

  • purchase_detailsobject

Returns

A Transaction object

POST /v1/test_helpers/issuing/transactions/create_unlinked_refund
curl https://api.stripe.com/v1/test_helpers/issuing/transactions/create_unlinked_refund \
-u "sk_test_4eC39Hq...arjtT1zdp7dcsk_test_4eC39HqLyjWDarjtT1zdp7dc:" \
-d amount=1000 \
-d card=ic_1Gswa82eZvKYlo2CP2jveFil
Response
{
"id": "ipi_1GswaK2eZvKYlo2Co7wmNJhD",
"object": "issuing.transaction",
"amount": -1000,
"amount_details": {
"atm_fee": null,
"cashback_amount": null
},
"authorization": "iauth_1GswaJ2eZvKYlo2Ct9mFMJ4S",
"balance_transaction": "txn_1GswaK2eZvKYlo2CJAFFIuHg",
"card": "ic_1Gswa82eZvKYlo2CP2jveFil",
"cardholder": "ich_1Gswa82eZvKYlo2CvobneLSo",
"created": 1591905672,
"currency": "usd",
"dispute": null,
"livemode": false,
"merchant_amount": -1000,
"merchant_currency": "usd",
"merchant_data": {
"category": "computer_software_stores",
"category_code": "5734",
"city": "SAN FRANCISCO",
"country": "US",
"name": "STRIPE.COM",
"network_id": "1234567890",
"postal_code": "94103",
"state": "CA",
"terminal_id": null
},
"metadata": {
"order_id": "6735"
},
"redaction": null,
"type": "capture",
"wallet": null
}

Refund a test-mode Transaction.

Parameters

  • refund_amountinteger

    The total amount to attempt to refund. This amount is in the provided currency, or defaults to the cards currency, and in the smallest currency unit.

Returns

A Transaction object. This will be the Transaction object of type capture referenced in the request’s URL, not the new Transaction object of type refund that will be created as a side-effect of this API call. To find the newly created Transaction object, you can use the Retrieve an authorization API, whose response will contain a list of related Transaction IDs, including the newly created Transaction of type refund. You can also use the List all transactions API, or listen for the issuing_transaction.created webhook event to retrieve the newly created Transaction of type refund.

POST /v1/test_helpers/issuing/transactions/:id/refund
curl https://api.stripe.com/v1/test_helpers/issuing/transactions/ipi_1GswaK2eZvKYlo2Co7wmNJhD/refund \
-u "sk_test_4eC39Hq...arjtT1zdp7dcsk_test_4eC39HqLyjWDarjtT1zdp7dc:" \
-d refund_amount=1000
Response
{
"id": "ipi_1GswaK2eZvKYlo2Co7wmNJhD",
"object": "issuing.transaction",
"amount": -1000,
"amount_details": {
"atm_fee": null,
"cashback_amount": null
},
"authorization": "iauth_1GswaJ2eZvKYlo2Ct9mFMJ4S",
"balance_transaction": "txn_1GswaK2eZvKYlo2CJAFFIuHg",
"card": "ic_1Gswa82eZvKYlo2CP2jveFil",
"cardholder": "ich_1Gswa82eZvKYlo2CvobneLSo",
"created": 1591905672,
"currency": "usd",
"dispute": null,
"livemode": false,
"merchant_amount": -1000,
"merchant_currency": "usd",
"merchant_data": {
"category": "computer_software_stores",
"category_code": "5734",
"city": "SAN FRANCISCO",
"country": "US",
"name": "STRIPE.COM",
"network_id": "1234567890",
"postal_code": "94103",
"state": "CA",
"terminal_id": null
},
"metadata": {
"order_id": "6735"
},
"redaction": null,
"type": "capture",
"wallet": null
}