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
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
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
Body Params application/json

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

Example
{
    "status": 201,
    "success": true,
    "data": {
        "message": "تم تحديث رصيد المتجر بنجاح",
        "code": 201
    }
}
🟠422Error Validation
Modified at 2024-09-26 09:30:21
Previous
App Subscription Details