Skip to main content

Get List

Get orders list.

Request Parametersapplication/json
OrdersListRequestModel
object
skip
integer
optional
Define how many results you want to skip. The default value is 0.
take
integer
optional
Define how many first results to display after the skipped ones.
Default - 50. Maximum - 100.
search
object
The search options.
orderIds
array[integer]
conditional
The list of order IDs for which you want to get the details.
subscriptionId
integer
conditional
The subscription ID for which you want to get the details.
customerEmail
string
conditional
The customer's billing email. Only domain in the format example.com
can also be used to retrieve the data
orderStatusId
integer
optional
The ID of the order status. Possible values: 1 - Waiting, 2 - Canceled,
3 - Refunded, 4 - Chargeback, 5 - Processed.
sortByDate
string
optional
Sort the orders by the creation date. Possible values:
"asc" - ascending order. Default.
"desc" - descending order.
includeTestOrders
boolean
optional
Possible values are true or false. False by default.
vendorAccountId
integer
required
The vendor account ID identifies your PayPro Global account.
It can be found in Account settings > Business info.
apiSecretKey
string
required
The vendor account API secret key is a unique key
that was generated specifically for authenticating API requests.
It can be found in Store settings > General settings > Integration tab.
Response Parametersapplication/json
OrdersListResponseModel
object
response
object
skip
integer
Define how many results you want to skip. The default value is 0.
take
integer
Define how many first results to display after the skipped ones. Default - 50. Maximum - 100.
totalCount
integer
Total results count.
orders
array[object]
The collection of orders.
id
integer
The order ID value.
placedAtUtc
string<date-time>
The date when the order was placed in UTC time zone.
invoiceUrl
string
The invoice URL. It can be empty.
customerBillingEmail
string
The customer's billing email address.
customerBillingFirstName
string
The customer's billing first name.
customerBillingLastName
string
The customer's billing last name.
orderStatusId
integer
The ID of the order status. Possible values: 1 – Waiting, 2 – Canceled,
3 –Refunded, 4 – Chargeback, 5 – Processed.
paymentMethodId
integer
The payment method ID.
orderStatusName
string
The text representation of the order status.
paymentMethodName
string
The text representation of the payment method.
request
object
skip
integer
Define how many results you want to skip. The default value is 0.
take
integer
Define how many first results to display after the skipped ones. Default - 50. Maximum - 100.
search
object
The search options.
orderIds
array[integer]
The list of order IDs for which you want to get the details.
subscriptionId
integer
The subscription ID for which you want to get the details.
customerEmail
string
The customer's billing email. Only domain in the format example.com
can also be used to retrieve the data
orderStatusId
integer
The ID of the order status. Possible values: 1 - Waiting, 2 - Canceled,
3 - Refunded, 4 - Chargeback, 5 - Processed.
sortByDate
string
Sort the orders by the creation date. Possible values:
"asc" - ascending order. Default.
"desc" - descending order.
includeTestOrders
boolean
Possible values are true or false. False by default.
vendorAccountId
integer
The vendor account ID identifies your PayPro Global account.
It can be found in Account settings > Business info.
apiSecretKey
string
The vendor account API secret key is a unique key
that was generated specifically for authenticating API requests.
It can be found in Store settings > General settings > Integration tab.
errors
array[object]
propertyWithError
string
propertyErrorMessages
array[string]
isSuccess
boolean
Request Sample
{
"skip": 0,
"take": 50,
"search": {
"orderIds": [
12345678,
12345678
],
"subscriptionId": null,
"customerEmail": null,
"orderStatusId": null
},
"sortByDate": "asc",
"includeTestOrders": false,
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
}
Response Sample
{
"response": {
"skip": 0,
"take": 50,
"totalCount": 2,
"orders": [{
"id": 12345678,
"placedAtUtc": "2023-09-09T12:37:43.113",
"invoiceUrl": "https://invoice_example",
"customerBillingEmail": "[email protected]",
"customerBillingFirstName": "John",
"customerBillingLastName": "Doe",
"orderStatusId": 5,
"paymentMethodId": 2,
"orderStatusName": "Processed",
"paymentMethodName": "Visa"
},{
"id": 12345678,
"placedAtUtc": "2023-09-09T12:37:43.113",
"invoiceUrl": "https://invoice_example",
"customerBillingEmail": "[email protected]",
"customerBillingFirstName": "John",
"customerBillingLastName": "Doe",
"orderStatusId": 5,
"paymentMethodId": 2,
"orderStatusName": "Processed",
"paymentMethodName": "Visa"
}]
},
"request": {
"skip": 0,
"take": 50,
"search": {
"orderIds": [
12345678,
12345678
],
"subscriptionId": null,
"customerEmail": null,
"orderStatusId": null
},
"sortByDate": "asc",
"includeTestOrders": true,
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
},
"errors": [],
"isSuccess": true
}