The Get order method returns order details for the current reseller or any of its downstream resellers.
GET {base_url}/api/v3/resellers/{reseller_id}/orders/{order_id}
Arguments
Response model
|
Name |
Data type |
Description |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
data |
object |
Response data |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
id |
string |
Order ID |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
type |
string |
Data type |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
attributes |
object |
Information about the order |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
created_at |
string |
Date and time of the order creation |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
updated_at |
string |
Date and time when the order was changed last time |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
document_id |
string |
Order number |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
status |
string |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
account_id |
integer |
Account ID used to pay for the order |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
type |
string |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
closed_at |
string |
Date and time when the order was closed |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
expiration_date |
string |
Date by which the order should be paid (completed). The date is calculated depending on the billing type and taking into account the value set in the Cancel unpaid order in field on the account class page (see ) and the order creation date |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
provisioning_date |
string |
Date of the order provisioning. For delayed orders, the provisioning date is greater than the creation date |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
total |
string |
Total amount of the order |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
promo_code |
string |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
payment_id |
integer |
Payment ID linked to the order |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
manager_id |
integer |
ID of the manager who created the order |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
requester_ip |
string |
IP address of the user who created the order |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
custom_price |
bool |
Whether the individual prices are used for the ordered subscription:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
created_by |
string |
Information about the creator of the order:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
subscription_id |
integer |
ID of the linked subscription |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
items |
array of objects |
List of items in the order |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
id |
integer |
Item ID |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
target_id |
integer |
Entity ID |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
target_type |
string |
Entity type related to the item of the order:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
type |
string |
Internal type of the order item:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
status |
string |
Current status of the order item:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
description |
string |
Brief description of the order item |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
quantity |
Depends on the order item |
Quantitative representation of the the order item |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
resource_id |
integer |
The ID of an ordered plan resource. Only for |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
payment_document_id |
string |
Payment number linked to the order |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
relationships |
object |
Related objects |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
charges |
object |
Charges data |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
data |
array |
Related object information:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
account |
object |
Account data |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
data |
object |
Related object information:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
payment |
object |
Payment data |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
data |
object |
Related object information:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
subscription |
object |
Subscription data |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
data |
object |
Related object information:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
included |
array |
Additional information about objects listed in the request:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Request example
GET /api/v3/resellers/1/orders/13416?include=charges,account,payment,subscription
Host: test.activeplatform.com
Content-Type: application/vnd.api+json
X-Api-Token: vY5fwetestK3gJXZH5uHCw
Accept: application/vnd.api+json
Response example
{
"data": {
"id": "13416",
"type": "sales_orders",
"attributes": {
"created_at": "2021-05-28T16:01:32.308+03:00",
"updated_at": "2021-05-28T16:01:40.227+03:00",
"document_id": "SO007350",
"status": "completed",
"account_id": 944,
"type": "SalesOrder",
"closed_at": "2021-05-28T16:01:40.227+03:00",
"expiration_date": "2021-06-01",
"provisioning_date": "2021-05-28",
"total": "54.18",
"promo_code": null,
"payment_id": 10146,
"manager_id": 346,
"requester_ip": "12.23.0.8",
"custom_price": false,
"created_by": "#1038 James Tony",
"subscription_id": 3008520,
"items": [
{
"id": 35924,
"target_id": 3012374,
"target_type": "Subscription",
"type": "ProvisioningItem::New",
"status": "completed",
"description": "Autoprovisioning Plan 1",
"quantity": 1
},
{
"id": 35925,
"target_id": 49964,
"target_type": "SubscriptionResource",
"type": "ProvisioningItem::Upgrade",
"status": "completed",
"description": "Resource 1",
"quantity": 1,
"resource_id": 152581
}
],
"payment_document_id": "000002"
},
"relationships": {
"charges": {
"data": [
{
"id": "317159",
"type": "charges"
},
{
"id": "317158",
"type": "charges"
}
]
},
"account": {
"data": {
"id": "944",
"type": "accounts"
}
},
"payment": {
"data": {
"id": "10146",
"type": "payments"
}
},
"subscription": {
"data": {
"id": "3008520",
"type": "subscriptions"
}
}
}
},
"included": [
{
"id": "317159",
"type": "charges",
"attributes": {...
},
"relationships": {...
}
},
{
"id": "317158",
"type": "charges",
"attributes": {...
},
"relationships": {...
}
},
{
"id": "944",
"type": "accounts",
"attributes": {...
},
"relationships": {...
},
{
"id": "10146",
"type": "payments",
"attributes": {...
},
"relationships": {...
}
},
{
"id": "3008520",
"type": "subscriptions",
"attributes": {
"created_at": "2021-05-28T16:01:32.323030+0300",
"updated_at": "2021-06-07T15:49:37.995072+0300",
"auto_renewal": false,
"billing_from": "2021-05-28",
"expiration_date": "2021-06-28",
"name": "CSPMonthly",
"auto_renew_point_days": 0,
"start_date": "2021-05-28",
"status": "deleted",
"payment_model": "prepay",
"payment_model_parameters": {}
}
}
]
}