Skip to main content

Get Order Details

Get the order details.

Request Parametersapplication/json
GetOrderDetailRequestModel
object
orderId
integer
The order ID for which you want to get the details.
dateFormat
string
The date format in which you want to get the order details.
Possible values:
a - "yyyy-MM-ddTHH:mm:ss.fff"
b - "M/d/yyyy"
c - "d-MMM-yyyy"
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
GetOrderDetailResponseModel
object
response
object
orderStatusReason
string
The reason of the order status in case the order was canceled.
creditCardLast4
string
The last 4 digits of the used credit card.
creditCardExpirationDate
string
The credit card expiration date (MM/YY).
isTestMode
boolean
Possible values are true or false. If true, the test mode was used, false otherwise.
billingTotalPrice
number
The order total price in a billing currency.
billingTotalTaxes
number
The total tax amount in a billing currency.
balanceTotalPrice
number
The order total price in a vendor balance currency.
balanceTotalTaxes
number
The total tax amount in a vendor balance currency.
balanceVendorTotalAmount
number
The total amount in a vendor balance currency transferred to the vendor balance.
balancePayProTotalAmount
number
PayPro Global’s commission for the order converted into the vendor balance currency.
orderId
integer
The order ID.
orderStatusId
integer
The ID of the order status. Possible values: 1 – Waiting, 2 – Canceled,
3 –Refunded, 4 – Chargeback, 5 – Processed.
orderStatusName
integer
The text representation of the order status.
paymentMethodId
integer
The ID of the payment method you applied.
The list of payment methods can be found here
paymentMethodName
string
The text representation of the payment method.
createdAt
string
The date when order has been placed.
mainProductId
integer
The main product ID used in the order.
billingCurrencyCode
string
The order billing currency code.
balanceCurrencyCode
string
The order balance currency code.
customer
object
The customer's data.
streetNumber
string
The customer's street number. It is only available if the customer's
chosen billing country is Mexico, Brazil, Chile
taxNumber
string
The customer's tax number.
fiscalNumberPersonal
string
The customer's personal fiscal number. Available if the billing country is Brazil.
fiscalNumberCorporate
string
The customer's corporate fiscal number. Available if the billing country is Brazil.
payPalAccount
string
The customer's PayPal account if used.
customerId
integer
The integer customer ID.
firstName
string
The customer's first name.
lastName
string
The customer's last name.
companyName
string
The customer's company name.
email
string
The customer's email address.
phone
string
The customer's phone number.
country
string
The customer's country name.
state
string
The customer's state name.
city
string
The customer's city.
address
string
The customer's address.
zipCode
string
The customer's zip/postal code.
affiliateIds
array[integer]
The list of the affiliates' IDs if the order was affiliated.
orderItems
array[object]
The details of the order items associated with this order.
subscriptionId
integer
The subscription ID.
subscriptionBillingCycle
integer
The billing cycle of the subscription.
billingPriceTaxRefund
number
The refunded tax amount for all units. Always positive value.
billingPriceRefund
number
The refunded amount excluding the tax amount for all units. Always positive value.
balanceVendorAmount
number
The vendor amount per item in a vendor balance currency.
balancePayProAmount
number
PayPro Global’s commission per item in a vendor balance currency.
sku
string
Product SKU value.
orderItemId
integer
The integer order item ID.
productId
integer
The product ID of the order item.
orderId
integer
The order ID of the order item.
vendorAccountId
integer
The order item vendor account ID.
orderItemName
string
The product name of the order item.
quantity
integer
The product quantity in the order item.
billingPrice
number
The actual order item price (all units minus all discounts) in a billing currency.
appliedDiscountCouponCode
string
The coupon code that have been applied to the order item.
dateCreated
string
The date when the order item has been created.
orderItemTypeId
integer
The order item type ID. Possible values: 1-Product, 2-BackupMedia,
3-DownloadWarranty, 4-PhysicalShipment, 5-BundledProduct,
6-RecurringPrice, 7-ProductSelection, 8-ManualProcessingFee.
orderItemTypeName
string
The text representation of the order item type ID.
licenseKeys
array[string]
The license key(s) associated with the order item.
customFields
dictionary<string,string>
The custom fields used in the order.
billingRefundedAmount
number
The refunded amount in a billing currency.
balanceRefundedAmount
number
The refunded amount in a balance currency.
invoiceLink
string
The link to the customer's invoice.
request
object
orderId
integer
The order ID for which you want to get the details.
dateFormat
string
The date format in which you want to get the order details.
Possible values:
a - "yyyy-MM-ddTHH:mm:ss.fff"
b - "M/d/yyyy"
c - "d-MMM-yyyy"
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
{
"orderId": 5458995,
"dateFormat": "sample string 2",
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
}
Response Sample
{
"response": {
"orderId": 5458995,
"orderStatusId": 5,
"orderStatusName": "Processed",
"paymentMethodId": 4,
"paymentMethodName": "Amex",
"createdAt": "sample string 6",
"mainProductId": 7,
"billingCurrencyCode": "sample string 8",
"balanceCurrencyCode": "sample string 9",
"customer": null,
"affiliateIds": [
1,
2
],
"orderItems": null,
"customFields": null,
"billingRefundedAmount": 10.0,
"balanceRefundedAmount": 11.0,
"oldOrderId": 1,
"invoiceLink": "sample string 12",
"orderStatusReason": "sample string 1",
"creditCardLast4": "sample string 2",
"creditCardExpirationDate": "sample string 3",
"isTestMode": true,
"billingTotalPrice": 99.95,
"billingTotalTaxes": 6.0,
"balanceTotalPrice": 7.0,
"balanceTotalTaxes": 8.0,
"balanceVendorTotalAmount": 9.0,
"balancePayProTotalAmount": 10.0
},
"request": {
"orderId": 5458995,
"dateFormat": "sample string 2",
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
},
"errors": [
{
"propertyWithError": "orderId",
"propertyErrorMessages": [
"Error message 1",
"Error message 2"
]
},
{
"propertyWithError": "orderId",
"propertyErrorMessages": [
"Error message 1",
"Error message 2"
]
}
],
"isSuccess": false
}