{
"swagger": "2.0",
"tags": [
{
"name": "v1",
"description": ""
}
],
"host": "api.ote-godaddy.com",
"paths": {
"/v1/orders": {
"get": {
"tags": [
"v1"
],
"consumes": [
"application/json",
"application/xml",
"text/xml"
],
"produces": [
"application/json",
"application/javascript",
"application/xml",
"text/javascript",
"text/xml"
],
"parameters": [
{
"description": "Start of range indicating what time-frame should be returned. Inclusive",
"in": "query",
"name": "periodStart",
"required": false,
"type": "string"
},
{
"description": "End of range indicating what time-frame should be returned. Inclusive",
"in": "query",
"name": "periodEnd",
"required": false,
"type": "string"
},
{
"description": "Domain name to use as the filter of results",
"in": "query",
"name": "domain",
"required": false,
"type": "string"
},
{
"description": "Product group id to use as the filter of results",
"in": "query",
"name": "productGroupId",
"required": false,
"type": "integer"
},
{
"description": "Payment profile id to use as the filter of results",
"in": "query",
"name": "paymentProfileId",
"required": false,
"type": "integer"
},
{
"description": "Parent order id to use as the filter of results",
"in": "query",
"name": "parentOrderId",
"required": false,
"type": "string"
},
{
"default": 0,
"description": "Number of results to skip for pagination",
"in": "query",
"name": "offset",
"required": false,
"type": "integer"
},
{
"default": 25,
"description": "Maximum number of items to return",
"in": "query",
"maximum": 250,
"minimum": 1,
"name": "limit",
"required": false,
"type": "integer"
},
{
"default": "-createdAt",
"description": "Property name that will be used to sort results. '-' indicates descending",
"enum": [
"createdAt",
"-createdAt",
"orderId",
"-orderId",
"pricing.total",
"-pricing.total"
],
"in": "query",
"name": "sort",
"required": false,
"type": "string"
},
{
"description": "Shopper ID to be operated on, if different from JWT
Reseller subaccounts are not supported",
"in": "header",
"name": "X-Shopper-Id",
"required": false,
"type": "string"
},
{
"description": "A unique application key identifying the source of the request. This is required for request tracking",
"in": "header",
"name": "X-App-Key",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Request was successful",
"schema": {
"$ref": "#/definitions/OrderList"
}
},
"400": {
"description": "Request was malformed",
"schema": {
"$ref": "#/definitions/Error"
}
},
"401": {
"description": "Authentication info not sent or invalid",
"schema": {
"$ref": "#/definitions/Error"
}
},
"403": {
"description": "Authenticated user is not allowed access",
"schema": {
"$ref": "#/definitions/Error"
}
},
"429": {
"description": "Too many requests received within interval",
"schema": {
"$ref": "#/definitions/ErrorLimit"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/Error"
}
},
"504": {
"description": "Gateway timeout",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"description": "API Resellers
`discount` = `sale` - `subtotal`", "format": "currency-micro-unit", "type": "integer" }, "fees": { "$ref": "#/definitions/OrderFee", "description": "Fees for given `quantity` and `period`" }, "list": { "description": "List price for given `quantity` and `period`", "format": "currency-micro-unit", "type": "integer" }, "sale": { "description": "Actual price for the current product", "format": "currency-micro-unit", "type": "integer" }, "savings": { "description": "Savings off of list price for given `quantity` and `period`
`savings` = `list` - `subtotal`", "format": "currency-micro-unit", "type": "integer" }, "subtotal": { "description": "Price with any discounts and without taxes or fees for given `quantity` and `period`", "format": "currency-micro-unit", "type": "integer" }, "taxes": { "description": "Taxes for given `quantity` and `period`", "format": "currency-micro-unit", "type": "integer" }, "unit": { "description": "Pricing for a single unit of the given item", "type": "object" } }, "required": [ "subtotal", "list", "savings", "sale", "discount", "taxes", "fees", "unit" ] }, "LineItemSummary": { "properties": { "label": { "description": "Product label of the current line item", "type": "string" } }, "required": [ "label" ] }, "LineItemTaxCollector": { "properties": { "taxCollectorId": { "description": "Unique identifier for the company", "format": "integer-positive", "type": "integer" } }, "required": [ "taxCollectorId" ] }, "LineItemPricingTaxDetail": { "properties": { "amount": { "description": "Tax amount", "format": "currency-micro-unit", "type": "integer" }, "rate": { "format": "double", "type": "number" } }, "required": [ "" ] }, "LineItemUnitPricing": { "properties": { "discount": { "description": "Discount without consideration of `quantity` and `period`", "format": "currency-micro-unit", "type": "integer" }, "fees": { "$ref": "#/definitions/OrderFee", "description": "Fees without consideration of `quantity` and `period`" }, "list": { "description": "List price without consideration of `quantity` and `period`", "format": "currency-micro-unit", "type": "integer" }, "sale": { "description": "Sale price without consideration of `quantity` and `period`", "format": "currency-micro-unit", "type": "integer" }, "savings": { "description": "Savings without consideration of `quantity` and `period`", "format": "currency-micro-unit", "type": "integer" }, "taxes": { "description": "Taxes without consideration of `quantity` and `period`", "format": "currency-micro-unit", "type": "integer" } }, "required": [ "discount", "fees", "list", "sale", "savings", "taxes" ] }, "Order": { "properties": { "billTo": { "$ref": "#/definitions/BillTo", "description": "The billing contact information that was used at the time of purchase" }, "createdAt": { "description": "Date and time when the current order is created on", "format": "iso-datetime", "type": "string" }, "currency": { "description": "Currency in which the order has been placed", "format": "iso-currency-code", "type": "string" }, "items": { "items": { "$ref": "#/definitions/LineItem" }, "type": "array" }, "orderId": { "description": "Unique identifier of current order", "type": "string" }, "parentOrderId": { "description": "Unique identifier of the parent order. All refund/chargeback orders are tied to the original order.\nThe orginal order's `orderId` is the `parentOrderId` of refund/chargeback orders", "type": "string" }, "payments": { "items": { "$ref": "#/definitions/Payment" }, "type": "array" }, "pricing": { "$ref": "#/definitions/OrderPricing", "description": "Pricing information for current order" } }, "required": [ "orderId", "currency", "createdAt", "pricing", "billTo", "payments", "items" ] }, "OrderFee": { "properties": { "icann": { "description": "Domain registration transaction fee charged by ICANN", "format": "currency-micro-unit", "type": "integer" }, "total": { "description": "Sum of all fees", "format": "currency-micro-unit", "type": "integer" } }, "required": [ "total" ] }, "OrderList": { "properties": { "orders": { "description": "A collection of orders", "items": { "$ref": "#/definitions/OrderSummary" }, "type": "array" }, "pagination": { "$ref": "#/definitions/Pagination", "description": "Pagination information" } }, "required": [ "orders", "pagination" ] }, "OrderPricing": { "properties": { "discount": { "description": "Discount from promotional pricing", "format": "currency-micro-unit", "type": "integer" }, "fees": { "$ref": "#/definitions/OrderFee", "description": "Fees for the entire cart" }, "id": { "format": "double", "type": "number" }, "list": { "description": "Sum of list prices for the entire cart", "format": "currency-micro-unit", "type": "integer" }, "savings": { "description": "Savings off of list price
`savings` = `list` - `subtotal`", "format": "currency-micro-unit", "type": "integer" }, "subtotal": { "description": "Price with `discount` and without taxes or fees", "format": "currency-micro-unit", "type": "integer" }, "taxes": { "description": "Taxes for the entire cart", "format": "currency-micro-unit", "type": "integer" }, "taxDetails": { "description": "A collection of line item tax details", "items": { "$ref": "#/definitions/LineItemPricingTaxDetail" }, "type": "array" }, "total": { "description": "Price the customer pays
`total` = `subtotal` + `taxes` + `fees.total`", "format": "currency-micro-unit", "type": "integer" } }, "required": [ "total", "subtotal", "list", "savings", "discount", "taxes", "fees" ] }, "OrderSummary": { "properties": { "createdAt": { "description": "Date and time when the current order was created", "format": "iso-datetime", "type": "string" }, "currency": { "description": "Currency in which the order was placed", "format": "iso-currency-code", "type": "string" }, "items": { "description": "Sets of two or more line items in current order", "items": { "$ref": "#/definitions/LineItemSummary" }, "type": "array" }, "orderId": { "description": "Unique identifier of the current order", "type": "string" }, "parentOrderId": { "description": "Unique identifier of the parent order. All refund/chargeback orders are tied to the original order.\nThe orginal order's `orderId` is the `parentOrderId` of refund/chargeback orders", "type": "string" }, "pricing": { "$ref": "#/definitions/OrderSummaryPricing", "description": "Pricing information of the current order" } }, "required": [ "orderId", "currency", "createdAt", "pricing", "items" ] }, "OrderSummaryPricing": { "properties": { "total": { "description": "Total amount charged for the current order. Negative for Refund and Chargeback", "format": "currency-micro-unit", "type": "string" } }, "required": [ "total" ] }, "Pagination": { "properties": { "first": { "description": "URI to access the first page", "type": "string" }, "last": { "description": "URI to access the last page", "type": "string" }, "next": { "description": "URI to access the next page", "type": "string" }, "previous": { "description": "URI to access the previous page", "type": "string" }, "total": { "description": "Number of records available", "type": "integer" } } }, "Payment": { "properties": { "amount": { "description": "Amount paid by the current payment", "format": "currency-micro-unit", "type": "integer" }, "category": { "description": "The category of payment method used at the time of purchase.\nMost common values are listed in the enum.", "enum": [ "CREDIT_CARD", "PAYPAL", "ACH", "GIFT_CARD", "IN_STORE_CREDIT", "PREPAID" ], "type": "string" }, "paymentProfileId": { "description": "Unique identifier of the payment profile used by current payment", "type": "string" }, "subcategory": { "description": "The subcategory of payment method used at the time of purchase.\n This field is only set for certain payment categories, such as ACH and CREDIT_CARD.\nMost common values are listed in the enum.", "enum": [ "CHECKING_PERSONAL", "CHECKING_BUSINESS", "VISA", "MASTER_CARD", "AMEX", "JCB", "UNIONPAY" ], "type": "string" } }, "required": [ "paymentProfileId", "amount", "category" ] } } }