The REST Admin API is a legacy API as of October 1, 2024. Starting April 1, 2025, all new public apps must be built exclusively with the GraphQL Admin API. For details and migration steps, visit our migration guide.
Application Charge
The ApplicationCharge resource facilitates one-time charges. This type of charge is recommended for apps that aren’t billed on a recurring basis. You can create an application charge by sending a request with the name the charge should appear under, the price your app is charging, and a return URL where Shopify redirects the merchant after the charge is accepted. After you've created the charge, redirect the merchant to the confirmation URL returned by Shopify. If the charge is declined, then Shopify redirects the merchant and provides a notification message that the app charge was declined.
For testing purposes you can include "test": true
when creating the charge. This prevents the credit card from being charged.
Test shops and demo shops can't be charged.
Endpoints
- post/admin/api/latest/application_
charges. json Creates an application charge - get/admin/api/latest/application_
charges. json Retrieves a list of application charges - get/admin/api/latest/application_
charges/{application_ charge_ id}. json Retrieves an application charge
The ApplicationCharge resource
Properties
The URL where the merchant accepts or declines the application charge.
The ID of the application charge.
The application charge name.
The price of the application charge. The minimum price is 0.50, and maximum price is 10,000.
The URL where the merchant is redirected after accepting a charge.
The status of the application charge. Valid values:
Show status properties
- pending: The application charge is pending approval by the merchant.
- accepted: Removed in version 2021-01. The application charge has been accepted by the merchant and is ready to be activated by the app. At this point it will appear on the merchant's invoice. As of API version 2021-01, when a merchant accepts a charge, the charge immediately transitions from
pending
toactive
. - active: The application charge has been activated by the app and will be paid out to the Partner.
- declined: The application charge was declined by the merchant.
- expired: The application charge was not accepted within 2 days of being created.
Whether the application charge is a test transaction. Valid values:true
,null
.
The date and time (ISO 8601 format) when the charge was last updated.
The currency of the price of the application charge.
The ApplicationCharge resource
Anchor to POST request, Creates an application chargepostCreates an application charge
Creates an application charge
Create a test charge that will not cause a credit card to be charged
Create a test charge that will not cause a credit card to be charged
Show application_charge properties
The application charge name.
The price of the application charge. The minimum price is 0.50, and maximum price is 10,000.
The URL where the merchant is redirected after accepting a charge.
Whether the application charge is a test transaction. Valid values:true
,null
.
Create an application charge
Create an application charge
Show application_charge properties
The application charge name.
The price of the application charge. The minimum price is 0.50, and maximum price is 10,000.
The URL where the merchant is redirected after accepting a charge.
Trying to create a charge with a price less than 0.50 will return an error
Trying to create a charge with a price less than 0.50 will return an error
Show application_charge properties
The application charge name.
The price of the application charge. The minimum price is 0.50, and maximum price is 10,000.
The URL where the merchant is redirected after accepting a charge.
Trying to create a charge without a price or name will return an error
Trying to create a charge without a price or name will return an error
Show application_charge properties
The application charge name.
/admin/api/2025-07/application_ charges. json
Response
Anchor to GET request, Retrieves a list of application chargesgetRetrieves a list of application charges
Retrieves a list of application charges
A comma-separated list of fields to include in the response.
Restrict results to after the specified ID.
Retrieve all application charges
Retrieve all application charges
Retrieve all application charges since a specified ID
Retrieve all application charges since a specified ID
Restrict results to after the specified ID.
/admin/api/2025-07/application_ charges. json
Response
Anchor to GET request, Retrieves an application chargegetRetrieves an application charge
Retrieves an application charge
A comma-separated list of fields to include in the response.
Retrieve an application charge
Retrieve an application charge