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
  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

Body Params application/json

Example
{
    "apiKey": "string"
}

Request Code 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

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