content.orders.gettestordertemplate
GET {{baseUrl}}/content/v2/:merchantId/testordertemplates/:templateName?country=<string>&$.xgafv=<string>&access_token=<string>&alt=<string>&callback=<string>&fields=<string>&key=<string>&oauth_token=<string>&prettyPrint=<boolean>"aUser=<string>&upload_protocol=<string>&uploadType=<string>
Sandbox only. Retrieves an order template that can be used to quickly create a new order in sandbox.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
country | string | The country of the template to retrieve. Defaults to US . | |
$.xgafv | string | V1 error format. | |
access_token | string | OAuth access token. | |
alt | string | Data format for response. | |
callback | string | JSONP | |
fields | string | Selector specifying which fields to include in a partial response. | |
key | string | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. | |
oauth_token | string | OAuth 2.0 token for the current user. | |
prettyPrint | string | Returns response with indentations and line breaks. | |
quotaUser | string | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. | |
upload_protocol | string | Upload protocol for media (e.g. "raw", "multipart"). | |
uploadType | string | Legacy upload protocol for media (e.g. "media", "multipart"). |
RESPONSES
status: OK
{"kind":"amet","template":{"customer":{"email":"\u003cstring\u003e","explicitMarketingPreference":"\u003cboolean\u003e","fullName":"\u003cstring\u003e","marketingRightsInfo":{"explicitMarketingPreference":"\u003cstring\u003e","lastUpdatedTimestamp":"\u003cstring\u003e"}},"enableOrderinvoices":"\u003cboolean\u003e","kind":"\u003cstring\u003e","lineItems":[{"product":{"brand":"\u003cstring\u003e","channel":"\u003cstring\u003e","condition":"\u003cstring\u003e","contentLanguage":"\u003cstring\u003e","fees":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"gtin":"\u003cstring\u003e","imageLink":"\u003cstring\u003e","itemGroupId":"\u003cstring\u003e","mpn":"\u003cstring\u003e","offerId":"\u003cstring\u003e","price":{"currency":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"value":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"targetCountry":"\u003cstring\u003e","title":"\u003cstring\u003e","variantAttributes":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]},"quantityOrdered":"\u003cuint32\u003e","returnInfo":{"daysToReturn":"\u003cinteger\u003e","isReturnable":"\u003cboolean\u003e","policyUrl":"\u003cstring\u003e"},"shippingDetails":{"deliverByDate":"\u003cstring\u003e","method":{"carrier":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"maxDaysInTransit":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"methodName":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"minDaysInTransit":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"shipByDate":"\u003cstring\u003e","type":"\u003cstring\u003e"},"unitTax":{"currency":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"value":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}},{"product":{"brand":"\u003cstring\u003e","channel":"\u003cstring\u003e","condition":"\u003cstring\u003e","contentLanguage":"\u003cstring\u003e","fees":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"gtin":"\u003cstring\u003e","imageLink":"\u003cstring\u003e","itemGroupId":"\u003cstring\u003e","mpn":"\u003cstring\u003e","offerId":"\u003cstring\u003e","price":{"currency":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"value":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"targetCountry":"\u003cstring\u003e","title":"\u003cstring\u003e","variantAttributes":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]},"quantityOrdered":"\u003cuint32\u003e","returnInfo":{"daysToReturn":"\u003cinteger\u003e","isReturnable":"\u003cboolean\u003e","policyUrl":"\u003cstring\u003e"},"shippingDetails":{"deliverByDate":"\u003cstring\u003e","method":{"carrier":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"maxDaysInTransit":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"methodName":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"minDaysInTransit":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"shipByDate":"\u003cstring\u003e","type":"\u003cstring\u003e"},"unitTax":{"currency":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"value":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}}],"notificationMode":"\u003cstring\u003e","paymentMethod":{"expirationMonth":"\u003cinteger\u003e","expirationYear":"\u003cinteger\u003e","lastFourDigits":"\u003cstring\u003e","predefinedBillingAddress":"\u003cstring\u003e","type":"\u003cstring\u003e"},"predefinedDeliveryAddress":"\u003cstring\u003e","predefinedPickupDetails":"\u003cstring\u003e","promotions":[{"benefits":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"effectiveDates":"exercitation co","genericRedemptionCode":"eiusmod sint","id":"quis mollit aliquip commodo ex","longTitle":"aliqua","productApplicability":"dolore laborum laboris","redemptionChannel":"pariatur voluptate"},{"benefits":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"effectiveDates":"commodo sed minim Ut dolore","genericRedemptionCode":"tempor non do aute","id":"labore ","longTitle":"Lorem est nisi","productApplicability":"aute ipsum ex","redemptionChannel":"in consequat exercitation in"}],"shippingCost":{"currency":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"value":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"shippingCostTax":{"currency":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"value":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"shippingOption":"\u003cstring\u003e"}}