Salla Docs
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipment API
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Change Log
Salla CLI
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipment API
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Change Log
Salla CLI
Salla - Opensource
Salla - Developers Community
  1. Subscriptions
  • Get Started
  • Create Your First App
  • App Events
  • Settings
    • App Setting Details
      GET
    • Update App Settings
      POST
  • Subscriptions
    • App Subscription Details
      GET
    • Update Subscription Balance
      POST
  1. Subscriptions

Update Subscription Balance

Production
https://api.salla.dev/admin/v2
Production
https://api.salla.dev/admin/v2
POST
https://api.salla.dev/admin/v2
/apps/balance
Subscriptions
Last modified:2024-09-26 09:30:21
This endpoint allows you to update the balance of an Application's subscription.
NOTE
The endpoint complies with the Pay As You Go Plan feature on Salla Partners

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
balance
integer 
required
App Subscription Balance
Example:
2399
Example
{
  "balance": 2399
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.salla.dev/admin/v2/apps/balance' \
--header 'Content-Type: application/json' \
--data-raw '{
    "balance": 2399
}'

Responses

🟢201Created
application/json
Body
status
number 
optional
Response status code, a numeric or alphanumeric identifier used to convey the outcome or status of a request, operation, or transaction in various systems and applications, typically indicating whether the action was successful, encountered an error, or resulted in a specific condition.
success
boolean 
optional
Response flag, boolean indicator used to signal a particular condition or state in the response of a system or application, often representing the presence or absence of certain conditions or outcomes.
data
object 
optional
message
string 
optional
A text or data communication generated by a system or application in response to a request.
code
number 
optional
A numerical or alphanumeric identifier used in various systems and protocols to indicate the status or outcome of a specific request.
Example
{
  "status": 201,
  "success": true,
  "data": {
    "message": "تم تحديث رصيد المتجر بنجاح",
    "code": 201
  }
}
🟠422Error Validation
Modified at 2024-09-26 09:30:21
Previous
App Subscription Details