Ana içeriğe atla
POST
/
customer
/
v2
/
orders
/
purchase
Purchase RPC Plan
curl --request POST \
  --url https://orbitflare.com/api/customer/v2/orders/purchase \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "product_slug": "<string>",
  "billing_period": "monthly",
  "discount_code": "<string>"
}
'
{
  "success": true,
  "message": "<string>",
  "data": {
    "order": {
      "reference": "<string>",
      "status": "<string>",
      "total_amount": 123
    },
    "license": {
      "key": "<string>",
      "slug": "<string>",
      "status": "<string>",
      "renewal_date": "2023-11-07T05:31:56Z"
    },
    "invoice": {
      "reference": "<string>"
    },
    "new_balance": 123
  }
}

Yetkilendirmeler

Authorization
string
header
gerekli

Bearer token from device or wallet auth

Gövde

application/json
product_slug
string
gerekli

Slug of the RPC plan product.

billing_period
enum<string>
varsayılan:monthly
Mevcut seçenekler:
monthly,
quarterly,
semi-annual,
annual
discount_code
string | null

Optional coupon code.

Yanıt

Plan purchased successfully.

success
boolean
Örnek:

true

message
string
data
object