# ApplicationCredit

Important

Creating application credits through this resource is being deprecated. App credits can continue to be created using the appCreditCreate mutation in the Partner API.

The ApplicationCredit resource is used to issue credits to merchants that can be used towards future app purchases in Shopify. You can create an application credit by sending a request that includes the credit amount and a description explaining the reason for the credit. A corresponding deduction based on your revenue share is entered in your Partner account by Shopify. For example, if you create a credit for $10.00, then a deduction of $8.00 is applied.

The total amount of all application credits requested by an app must not exceed the total amount the shop owner was charged in the last 30 days, or the total amount of pending payouts in the app's Partner account.

Note

The ApplicationCredit resource can be used only by apps that use Shopify's Billing API (ApplicationCharge, RecurringApplicationCharge, or UsageCharge).

## Resource Properties ### ApplicationCredit * description: The description of the application credit. * Type: x-string * Example: "Super Mega Plan 1000 emails" * id: The ID of the application credit. * Type: x-string * Example: 675931192 * amount: The amount refunded by the application credit. * Type: string * Example: "10" * test: Whether the application credit is a test transaction. Valid values: true,null * Type: x-string * Example: nil * currency: The currency of the application credit amount. * Type: x-string * Example: "USD" ## Retrieves a single application credit Retrieves a single application credit ### Endpoint /admin/api/#{api_version}/application_credits/{application_credit_id}.json (GET) ### Parameters * api_version (required): * application_credit_id (required): * fields: A comma-separated list of fields to include in the response. ### Responses #### 200 Retrieves a single application credit Examples: ##### Retrieve a single application credit Request: ``` GET /admin/api/unstable/application_credits/140583599.json ``` Response: ``` HTTP/1.1 200 OK {"application_credit":{"id":140583599,"amount":"5.00","description":"credit for application refund","test":null,"currency":"USD"}} ``` ## Retrieves all application credits Retrieves all application credits ### Endpoint /admin/api/#{api_version}/application_credits.json (GET) ### Parameters * api_version (required): * fields: A comma-separated list of fields to include in the response. ### Responses #### 200 Retrieves all application credits Examples: ##### Retrieve all application credits Request: ``` GET /admin/api/unstable/application_credits.json ``` Response: ``` HTTP/1.1 200 OK {"application_credits":[{"id":140583599,"amount":"5.00","description":"credit for application refund","test":null,"currency":"USD"}]} ```