SMSOnline API Doc
  1. Customer API
SMSOnline API Doc
  • Preparation
  • FAQ
  • V3
    • Customer API
      • Payments
        • Cryptocurrency via Cryptomus
          • Create new payment
          • Get direct wallet
          • Get transaction status
        • Credit Card via Pay4bit
          • Create new payment
      • Favourites
        • Get favourite services
        • Toggle favourite status
      • Get Account Balance
        GET
      • Get invoices
        GET
      • Get Coupons
        GET
    • Phones API
      • Lookup API
        • Get service list by country and carrier
        • Get service detail by country and carrier
      • Inventory API
        • Get inventory
      • Order API
        • Order a number
        • Get order data
        • Change order status
      • Get Popular list
      • Get all available countries/carriers
    • Statistics API
      • Get statistics
  • V2(Deprecated)
    • Warning: V2 API is deprecated
    • Account
      • Get Balance
      • Make a top-up with crypto
      • (Get direct wallet address) Make a top-up with crypto
    • Lookup
      • Get Available Countries
      • Get Available Services
      • Get Service Details
      • Get the country stats with success rates
    • Manage phone numbers
      • Purchase Number
      • Return Number
      • Request Another SMS
      • Get Status of A Single Number
      • Get Bulk Status of Numbers With Conditions
  1. Customer API

Get invoices

Developing
GET
https://api-x.smsonline.cloud/v3/customers/{userId}/payments
Browse the history of previous top-ups.

Request

Path Params
userId
string 
required
Your User Id
Example:
{{userid}}
Query Params
apiKey
string 
required
Issued API key
Example:
{{APIKey}}

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 -g --request GET 'https://api-x.smsonline.cloud/v3/customers/{{userid}}/payments?apiKey={{APIKey}}'

Responses

🟢200Success
application/json
Body
ok
boolean 
required
body
array [object {8}] 
required
method
string 
optional
Payment method used.
sesid
string 
optional
Payment session id
payId
string 
optional
Payment id. (If purchase has been successfully completed)
amount
integer 
optional
Top-up amount
created
string 
optional
Creation Date
expires_at
string 
optional
Expiration Date(If cryptocurrency)
status
string 
optional
Payment status
userId
string 
optional
User id
Example
{
    "ok": true,
    "body": [
        {
            "method": "payment method",
            "sesid": "sessionId",
            "payId": "payId",
            "amount": 500,
            "created": "2025-05-15 18:37:30",
            "expires_at": "2025-05-15 19:37:30",
            "status": "cancel",
            "userId": "userId"
        },
    ]
}
Modified at 2025-05-30 14:02:27
Previous
Get Account Balance
Next
Get Coupons
Built with