Methods
Objects
DID store: reserve and order DIDs.
Method | Description |
---|---|
did/store.buy_order | Buy an order (after calling "reserve") |
did/store.cancel_order | Cancel an order (after calling "reserve") |
did/store.cancel_subscription | Cancel a DID subscription. The DID will be immediately removed from yo... |
did/store.get_quota_status | Get your store quota status |
did/store.get_quote | Get a quote without reserving DIDs |
did/store.reserve | Reserve DIDs before ordering. Your booking is held for a maximum of 5 ... |
did/store.view_order | View your order (after calling "reserve") |
did/store.buy_order
Buy an order (after calling "reserve")
method: did/store.buy_order
params: [string token]
Parameter | Type | Description | NULL |
---|---|---|---|
token | string | Order token | NO |
Type | Description | Format/Object |
---|---|---|
object | Buy status | Object: DID.Store.BuyStatus |
did/store.cancel_order
Cancel an order (after calling "reserve")
method: did/store.cancel_order
params: [string token]
Parameter | Type | Description | NULL |
---|---|---|---|
token | string | Order token | NO |
Type | Description | Format/Object |
---|---|---|
bool | Always TRUE (throws an Exception otherwise). |
did/store.cancel_subscription
Cancel a DID subscription. The DID will be immediately removed from your account.
method: did/store.cancel_subscription
params: [string hash]
Parameter | Type | Description | NULL |
---|---|---|---|
hash | string |
DID ID. Format: hash (Unique object identifier) |
NO |
Type | Description | Format/Object |
---|---|---|
bool | Always TRUE (throws an Exception otherwise). |
did/store.get_quota_status
Get your store quota status
method: did/store.get_quota_status
params: []
No parameters.
Type | Description | Format/Object |
---|---|---|
object | Quota status | Object: DID.Store.QuotaStatus |
did/store.get_quote
Get a quote without reserving DIDs
method: did/store.get_quote
params: [int area_code_id, string class, int quantity]
Parameter | Type | Description | NULL |
---|---|---|---|
area_code_id | int | Area code ID | NO |
class | string |
DID class Values: "CLASSIC", "GOLD" |
NO |
quantity | int | Quantity needed | NO |
Type | Description | Format/Object |
---|---|---|
object | Quote | Object: DID.Store.Quote |
did/store.reserve
Reserve DIDs before ordering. Your booking is held for a maximum of 5 minutes.
method: did/store.reserve
params: [int area_code_id, string class, int quantity, string mode]
Parameter | Type | Description | NULL |
---|---|---|---|
area_code_id | int | Area code ID | NO |
class | string |
DID class Values: "CLASSIC", "GOLD" |
NO |
quantity | int | Quantity | NO |
mode | string |
Assignment mode Values: "RANDOM", "SEQUENTIAL" |
NO |
Type | Description | Format/Object |
---|---|---|
object | Reservation status | Object: DID.Store.Reservation |
did/store.view_order
View your order (after calling "reserve")
method: did/store.view_order
params: [string token]
Parameter | Type | Description | NULL |
---|---|---|---|
token | string | Order token | NO |
Type | Description | Format/Object |
---|---|---|
object | Reservation status | Object: DID.Store.Reservation |