Get Order Details
Get the order details.
Post
https://store.payproglobal.com/api/Orders/GetOrderDetailsRequest Parameters
application/jsonGetOrderDetailRequestModel
objectorderId
integerrequired
The order ID for which you want to get the details.
dateFormat
stringoptional
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"
Possible values:
a - "yyyy-MM-ddTHH:mm:ss.fff"
b - "M/d/yyyy"
c - "d-MMM-yyyy"
vendorAccountId
integerrequired
The vendor account ID identifies your PayPro Global account.
It can be found in Account settings > Business info.
It can be found in Account settings > Business info.
apiSecretKey
stringrequired
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.
that was generated specifically for authenticating API requests.
It can be found in Store settings > General settings > Integration tab.
Response Parameters
application/jsonGetOrderDetailResponseModel
objectresponse
objectorderId
integerThe order ID.
orderStatusId
integerThe ID of the order status. Possible values: 1 – Waiting, 2 – Canceled,
3 –Refunded, 4 – Chargeback, 5 – Processed.
3 –Refunded, 4 – Chargeback, 5 – Processed.
orderStatusName
integerThe text representation of the order status.
paymentMethodId
integerThe ID of the payment method you applied.
The list of payment methods can be found here
The list of payment methods can be found here
paymentMethodName
stringThe text representation of the payment method.
createdAt
stringThe date when order has been placed.
mainProductId
integerThe main product ID used in the order.
billingCurrencyCode
stringThe order billing currency code.
balanceCurrencyCode
stringThe order balance currency code.
customer
objectThe customer's data.
customerId
integerThe integer customer ID.
firstName
stringThe customer's first name.
lastName
stringThe customer's last name.
companyName
stringThe customer's company name.
email
stringThe customer's email address.
phone
stringThe customer's phone number.
country
stringThe customer's country name.
state
stringThe customer's state name.
city
stringThe customer's city.
address
stringThe customer's address.
zipCode
stringThe customer's zip/postal code.
streetNumber
stringThe customer's street number. It is only available if the customer's
chosen billing country is Mexico, Brazil, Chile
chosen billing country is Mexico, Brazil, Chile
taxNumber
stringThe customer's tax number.
fiscalNumberPersonal
stringThe customer's personal fiscal number. Available if the billing country is Brazil.
fiscalNumberCorporate
stringThe customer's corporate fiscal number. Available if the billing country is Brazil.
payPalAccount
stringThe customer's PayPal account if used.
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.
orderItemId
integerThe integer order item ID.
productId
integerThe product ID of the order item.
orderId
integerThe order ID of the order item.
vendorAccountId
integerThe order item vendor account ID.
orderItemName
stringThe product name of the order item.
quantity
integerThe product quantity in the order item.
billingPrice
numberThe actual order item price (all units minus all discounts) in a billing currency.
appliedDiscountCouponCode
stringThe coupon code that have been applied to the order item.
dateCreated
stringThe date when the order item has been created.
orderItemTypeId
integerThe order item type ID. Possible values: 1-Product, 2-BackupMedia,
3-DownloadWarranty, 4-PhysicalShipment, 5-BundledProduct,
6-RecurringPrice, 7-ProductSelection, 8-ManualProcessingFee.
3-DownloadWarranty, 4-PhysicalShipment, 5-BundledProduct,
6-RecurringPrice, 7-ProductSelection, 8-ManualProcessingFee.
orderItemTypeName
stringThe text representation of the order item type ID.
licenseKeys
array[string]The license key(s) associated with the order item.
subscriptionId
integerThe subscription ID.
subscriptionBillingCycle
integerThe billing cycle of the subscription.
billingPriceTaxRefund
numberThe refunded tax amount for all units. Always positive value.
billingPriceRefund
numberThe refunded amount excluding the tax amount for all units. Always positive value.
balanceVendorAmount
numberThe vendor amount per item in a vendor balance currency.
balancePayProAmount
numberPayPro Global’s commission per item in a vendor balance currency.
sku
stringProduct SKU value.
customFields
dictionary<string,string>The custom fields used in the order.
billingRefundedAmount
numberThe refunded amount in a billing currency.
balanceRefundedAmount
numberThe refunded amount in a balance currency.
invoiceLink
stringThe link to the customer's invoice.
optionGroupIds
numberProduct multiple option group ID.
optionGroupItemIds
numberProduct multiple option group item ID.
coupons
array[object]name
stringA coupon code name.
isPercentage
booleanPossible values are true or false. If true, the percentage discount was applied; false otherwise.
discount
numberThe percentage or amount of the discount applied by the coupon.
cyclesLeft
numberThe number of remaining cycles the coupon can be used before expiration.
orderStatusReason
stringThe reason of the order status in case the order was canceled.
creditCardLast4
stringThe last 4 digits of the used credit card.
creditCardExpirationDate
stringThe credit card expiration date (MM/YY).
isTestMode
booleanPossible values are true or false. If true, the test mode was used, false otherwise.
billingTotalPrice
numberThe order total price in a billing currency.
billingTotalTaxes
numberThe total tax amount in a billing currency.
balanceTotalPrice
numberThe order total price in a vendor balance currency.
balanceTotalTaxes
numberThe total tax amount in a vendor balance currency.
balanceVendorTotalAmount
numberThe total amount in a vendor balance currency transferred to the vendor balance.
balancePayProTotalAmount
numberPayPro Global’s commission for the order converted into the vendor balance currency.
request
objectorderId
integerThe order ID for which you want to get the details.
dateFormat
stringThe 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"
Possible values:
a - "yyyy-MM-ddTHH:mm:ss.fff"
b - "M/d/yyyy"
c - "d-MMM-yyyy"
vendorAccountId
integerThe vendor account ID identifies your PayPro Global account.
It can be found in Account settings > Business info.
It can be found in Account settings > Business info.
apiSecretKey
stringThe 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.
that was generated specifically for authenticating API requests.
It can be found in Store settings > General settings > Integration tab.
errors
array[object]propertyWithError
stringpropertyErrorMessages
array[string]isSuccess
booleanRequest Sample
{
"orderId": 12345678,
"dateFormat": "a",
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
}
Response Sample
{
"response": {
"orderId": 12345678,
"orderStatusId": 5,
"orderStatusName": "Processed",
"paymentMethodId": 2,
"paymentMethodName": "Visa",
"createdAt": "2023-09-09T11:44:10.417",
"mainProductId": 12345,
"billingCurrencyCode": "USD",
"balanceCurrencyCode": null,
"customer": {
"customerId": 12344321,
"firstName": "John",
"lastName": "Doe",
"companyName": null,
"email": "[email protected]",
"phone": "+1-001-12345679",
"country": "Canada",
"state": null,
"city": "null",
"address": "17 test street name",
"zipCode": "12345",
"streetNumber": null,
"taxNumber": null,
"fiscalNumberPersonal": null,
"fiscalNumberCorporate": null,
"payPalAccount": null
},
"affiliateIds": [],
"orderItems": [{
"orderItemId": 87654321,
"productId": 12345,
"orderId": 12345678,
"vendorAccountId": 3,
"orderItemName": "Product1",
"quantity": 1,
"billingPrice": 100.00,
"appliedDiscountCouponCode": null,
"dateCreated": "2023-09-09T11:44:10.417",
"orderItemTypeId": 1,
"orderItemTypeName": "Product",
"licenseKeys": [],
"subscriptionId": 1111111,
"subscriptionBillingCycle": 1,
"billingPriceTaxRefund": 4.00,
"billingPriceRefund": 20.00,
"balanceVendorAmount": 0.0,
"balancePayProAmount": 0.0,
"sku": "bus100usd"
}],
"customFields": [],
"billingRefundedAmount": 20.00,
"balanceRefundedAmount": 0.0,
"invoiceLink": "https://invoice_example",
"optionGroupIds": [12354],
"optionGroupItemIds": [12543],
"coupons": [
{
"name": "coupon_name",
"isPercentage": true,
"discount": 20.00,
"cyclesLeft": null
}
],
"orderStatusReason": null,
"creditCardLast4": "1798",
"creditCardExpirationDate": "04/24",
"isTestMode": true,
"billingTotalPrice": 100.00,
"billingTotalTaxes": 20.00,
"balanceTotalPrice": 0.0,
"balanceTotalTaxes": 0.0,
"balanceVendorTotalAmount": 0.0,
"balancePayProTotalAmount": 0.0
},
"request": {
"orderId": 12345678,
"dateFormat": "a",
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
},
"errors": [],
"isSuccess": true
}