Skip to main content

orders

Creates, updates, deletes, gets or lists an orders resource.

Overview

Nameorders
TypeResource
Idgodaddy.orders.orders

Fields

The following fields are returned by SELECT queries:

Request was successful

NameDatatypeDescription
billToobjectThe billing contact information that was used at the time of purchase
createdAtstring (iso-datetime)Date and time when the current order is created on
currencystring (iso-currency-code)Currency in which the order has been placed
itemsarray
orderIdstringUnique identifier of current order
parentOrderIdstringUnique identifier of the parent order. All refund/chargeback orders are tied to the original order. The orginal order's orderId is the parentOrderId of refund/chargeback orders
paymentsarray
pricingobjectPricing information for current order

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectorder_idX-Shopper-Id, X-Market-IdAPI ResellersThis endpoint does not support subaccounts and therefore API Resellers should not supply an X-Shopper-Id header
listselectperiodStart, periodEnd, domain, productGroupId, paymentProfileId, parentOrderId, offset, limit, sort, X-Shopper-Id, X-Market-IdAPI ResellersThis endpoint does not support subaccounts and therefore API Resellers should not supply an X-Shopper-Id header
_listexecperiodStart, periodEnd, domain, productGroupId, paymentProfileId, parentOrderId, offset, limit, sort, X-Shopper-Id, X-Market-IdAPI ResellersThis endpoint does not support subaccounts and therefore API Resellers should not supply an X-Shopper-Id header

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
order_idstringOrder id whose details are to be retrieved
X-Market-IdstringUnique identifier of the Market in which the request is happening
X-Shopper-IdstringShopper ID to be operated on, if different from JWTReseller subaccounts are not supported
domainstringDomain name to use as the filter of results
limitintegerMaximum number of items to return
offsetintegerNumber of results to skip for pagination
parentOrderIdstringParent order id to use as the filter of results
paymentProfileIdintegerPayment profile id to use as the filter of results
periodEndstringEnd of range indicating what time-frame should be returned. Inclusive
periodStartstringStart of range indicating what time-frame should be returned. Inclusive
productGroupIdintegerProduct group id to use as the filter of results
sortstringProperty name that will be used to sort results. '-' indicates descending

SELECT examples

API ResellersThis endpoint does not support subaccounts and therefore API Resellers should not supply an X-Shopper-Id header

SELECT
billTo,
createdAt,
currency,
items,
orderId,
parentOrderId,
payments,
pricing
FROM godaddy.orders.orders
WHERE order_id = '{{ order_id }}' -- required
AND X-Shopper-Id = '{{ X-Shopper-Id }}'
AND X-Market-Id = '{{ X-Market-Id }}'
;

Lifecycle Methods

API ResellersThis endpoint does not support subaccounts and therefore API Resellers should not supply an X-Shopper-Id header

EXEC godaddy.orders.orders._list 
@periodStart='{{ periodStart }}',
@periodEnd='{{ periodEnd }}',
@domain='{{ domain }}',
@productGroupId='{{ productGroupId }}',
@paymentProfileId='{{ paymentProfileId }}',
@parentOrderId='{{ parentOrderId }}',
@offset='{{ offset }}',
@limit='{{ limit }}',
@sort='{{ sort }}',
@X-Shopper-Id='{{ X-Shopper-Id }}',
@X-Market-Id='{{ X-Market-Id }}'
;