SMSOnline API Doc
  1. Credit Card via Pay4bit
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
            PUT
      • 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. Credit Card via Pay4bit

Create new payment

Developing
PUT
https://api-x.smsonline.cloud/v3/customers/{userId}/pay4bit/invoice/{amount}
Create invoices for payment using credit card.
Do not edit the following parameters of the issued URL: currency, amount and user ID, as these are used as part of the signature in the server processing at the end of the payment and if tampered with, the payment amount will not be reflected in your account.

Request

Path Params
userId
string 
required
Your User Id
Example:
{{userid}}
amount
integer 
required
Amount to be paid.
Body Params application/json
apiKey
string 
required
Example
{
    "apiKey": "string"
}

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 PUT 'https://api-x.smsonline.cloud/v3/customers/{{userid}}/pay4bit/invoice/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "apiKey": "string"
}'

Responses

🟢200Success
application/json
Body
ok
boolean 
required
body
string 
required
Payment url
Example
{
    "ok": true,
    "body": "https://api.pay4bit.net/pay?public_key=pubKey&sum=sum&currency=currency&account=userId&desc=desc&sign=sign"
}
Modified at 2025-05-17 05:16:51
Previous
Get transaction status
Next
Get favourite services
Built with