Version: 202607
Create one-time application charge
POST/openapi/2026-07/application_charges
Create a one-time charge for an application.
Request
- application/json
- Body
- Example
Bodyrequired
application_charge objectrequired
Application charge
namestringrequired
The application charge name
pricestringrequired
Charge amount. Must match the amount set on the app package
return_urlstringrequired
Redirect URL after payment
testboolean
Whether to test the charge (default false)
{
"application_charge": {
"name": "string",
"price": "string",
"return_url": "string",
"test": true
}
}
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
codestring
error code
messagestring
error message
data object
application_charge object
Application charge
idstring
Application charge ID
namestring
Charge name shown to the merchant
pricestring
Charge amount
confirm_urlstring
URL the merchant is redirected to in order to confirm the charge
return_urlstring
URL the merchant returns to after confirming the charge
statusstring
Current status of the application charge
testboolean
Whether this is a test charge
created_atstring
Creation time, in ISO-8601 format
updated_atstring
Last update time, in ISO-8601 format
{
"code": "string",
"message": "string",
"data": {
"application_charge": {
"id": "string",
"name": "string",
"price": "string",
"confirm_url": "string",
"return_url": "string",
"status": "string",
"test": true,
"created_at": "string",
"updated_at": "string"
}
}
}