initiateReturn
post
/ccstore/v1/returnRequests/initiate
Initiate Return. It initiates a new return request. Gets list of items from an order for which return request can be created. Optionally takes the x-ccasset-language headers to get translated content in another language. Also, additionally takes X-CCOrganization and x-ccsite headers.
Request
Supported Media Types
- application/json
Root Schema : initiateReturn_request
Type:
Show Source
object
-
op(required):
string
Specify the operation to be performed. Related Endpoint Operations - InitiateReturn, CalculateRefundAmounts, CreateReturnRequest
-
orderId(required):
string
Commerce id of order. Related Endpoint Operations - InitiateReturn, CalculateRefundAmounts, CreateReturnRequest
-
returnItems:
array returnItems
List of returnable Items. Related Endpoint Operations - CalculateRefundAmounts, CreateReturnRequest
Example:
{
"op":"initiateReturn",
"orderId":"o10400"
}
Nested Schema : returnItems
Type:
array
List of returnable Items. Related Endpoint Operations - CalculateRefundAmounts, CreateReturnRequest
Show Source
Nested Schema : items
Type:
Show Source
object
-
catRefId:
string
Catalog Reference Id
-
commerceItemId:
string
Commerce Id of the returned item
-
quantityToReturn:
integer
Quantity to be Returned
-
returnReason:
string
Reason to return an Item
-
shippingGroupId:
string
Shipping group Id of the returned item
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : initiateReturn_response
Type:
Show Source
object
-
additionalProperties:
object additionalProperties
Additional properties of the return request
-
orderInfo:
object orderInfo
Order Information. Related Endpoint Operations - InitiateReturn, CalculateRefundAmounts
-
paymentReversalInfo:
array paymentReversalInfo
Payment Reversal Info for Order. Related Endpoint Operations - CalculateRefundAmounts
-
profileInfo:
object profileInfo
Profile Information for the order. Related Endpoint Operations - InitiateReturn, CalculateRefundAmounts
-
promotionAdjustments:
object promotionAdjustments
Total promotions at Return item and Order level. Related Endpoint Operations - CalculateRefundAmounts
-
quoteInfo:
object quoteInfo
the quote information of the order. Related Endpoint Operations - InitiateReturn, CalculateRefundAmounts
-
refundInfo:
object refundInfo
Refund Information at the returnRequest Level. Related Endpoint Operations - CalculateRefundAmounts
-
result:
string
The string specifying success in creation of return Request. Related Endpoint Operations - CreateReturnRequest
-
returnItems:
array returnItems
List of returnable Items. Related Endpoint Operations - InitiateReturn, CalculateRefundAmounts
-
returnLabel:
string
Return Label of the return request
-
returnRequestId:
string
The Return Request ID. Related Endpoint Operations - CreateReturnRequest
-
trackingNumber:
array trackingNumber
List of tracking numbers for the return request
Nested Schema : additionalProperties
Type:
object
Additional properties of the return request
Show Source
-
property1:
string
Additional Property 1
-
property2:
string
Additional Property 2
Nested Schema : orderInfo
Type:
object
Order Information. Related Endpoint Operations - InitiateReturn, CalculateRefundAmounts
Show Source
-
allowAlternateCurrency:
boolean
A site level setting which enables the shopper to split the payment amount in points and monetary currency, irrespective of the order level price list group.
-
creationDate:
string
Date on which the Order was created.
-
orderId:
string
Commerce id for this order.
-
originOfOrder:
string
The source from which order got created.
-
priceInfo:
object priceInfo
Price information of the order.
-
priceListGroup:
object priceListGroup
PriceList group of the order.
-
recurringChargePriceInfo:
object recurringChargePriceInfo
Detailed information of the recurring charges at the shipping groups level
-
siteId:
string
Site Id on which the Order was placed.
-
submittedDate:
string
Date on which the Order was submitted.
Nested Schema : paymentReversalInfo
Type:
array
Payment Reversal Info for Order. Related Endpoint Operations - CalculateRefundAmounts
Show Source
Nested Schema : profileInfo
Type:
object
Profile Information for the order. Related Endpoint Operations - InitiateReturn, CalculateRefundAmounts
Show Source
-
email:
string
Email address of the profile
-
firstName:
string
First name of profile.
-
lastName:
string
Last name of profile.
-
middleName:
string
Middle name of profile.
-
organization:
object organization
The Organization associated with the B2B customer profile.
Nested Schema : promotionAdjustments
Type:
object
Total promotions at Return item and Order level. Related Endpoint Operations - CalculateRefundAmounts
Show Source
-
itemPromotionValueAdjustments:
object itemPromotionValueAdjustments
Item level promotion adjustments
-
nonReturnItemCostAdjustment:
object nonReturnItemCostAdjustment
The cost adjustment for item which are not returned.
-
orderPromotionValueAdjustments:
object orderPromotionValueAdjustments
Order Level promotion adjustments
-
promotionAdjustmentsCount:
integer
Count of the total number of promotions applied
-
totalOrderDiscountAdjustment:
number
The total change in order level promotion value adjustments due to the return
Nested Schema : quoteInfo
Type:
object
the quote information of the order. Related Endpoint Operations - InitiateReturn, CalculateRefundAmounts
Show Source
-
errorInfo:
array errorInfo
the array of errors, if any
-
expirationDate:
string
the expiration date of the quoted order, if any
-
externalId:
string
the external id for the quote
-
notes:
array notes
the notes (history) for the order
-
providerNote:
string
the provider note for the quoted order
-
quoteDate:
number
the date the order was quoted in milliseconds
-
rejectionDate:
string
the rejection date for an order whose quote has been rejected by user
-
rejectionNote:
string
the rejection note for an order whose quote has been rejected by user
-
requestDate:
string
the date when the quote was requested in ISO format
Nested Schema : refundInfo
Type:
object
Refund Information at the returnRequest Level. Related Endpoint Operations - CalculateRefundAmounts
Show Source
-
actualShippingRefund:
number
Actual Shipping Refund at Item level
-
actualTaxRefund:
number
Actual Tax Refund at Item level
-
appeasementRefundAdjustment:
number
The refund amount adjustment needed for the completed appeasement refunds on the same order
-
otherRefund:
number
Other Refund
-
refundDue:
number
Total Amount of the Refund
-
refundDueMap:
object refundDueMap
Additional Properties Allowed: additionalPropertiesA hashmap with currency code as a key and the refund due amount as the value.Map will be returned in response if payment is done with multiple currencies
-
returnFee:
number
ReturnFee
-
secondaryCurrencyActualShippingRefund:
number
Actual shipping refund of all Return Items in secondary currency
-
secondaryCurrencyActualShippingSurchargeRefund:
number
Actual shipping surcharge refund of all Return Items in secondary currency
-
secondaryCurrencyActualTaxRefund:
number
Actual tax refund of all Return Items in secondary currency
-
secondaryCurrencyAppeasementRefundAdjustment:
number
The refund amount adjustment needed for the completed appeasement refunds on the same order for evaluating seconday currency refund total.
-
secondaryCurrencySuggestedShippingRefund:
number
Suggested shipping Refund of all Return Items in secondary currency
-
secondaryCurrencySuggestedShippingSurchargeRefund:
number
Suggested shipping surcharge refund of all Return Items in secondary currency
-
secondaryCurrencySuggestedTaxRefund:
number
Suggested tax Refund of all Return Items in secondary currency
-
suggestedOrderRefund:
number
Refund Amount of all Return Items
-
suggestedShippingRefund:
number
Shipping Refund of all Return Items
-
suggestedTaxRefund:
number
Tax Refund of all Return Items
-
totalRefund:
number
Total sum of all the Refunds
-
unAdjustedRefundSubtotal:
number
Refund SubTotal calculated as summation of unAdjustedRefundAmount for all return Items.
Nested Schema : returnItems
Type:
array
List of returnable Items. Related Endpoint Operations - InitiateReturn, CalculateRefundAmounts
Show Source
Nested Schema : trackingNumber
Type:
array
List of tracking numbers for the return request
Show Source
Nested Schema : priceInfo
Type:
object
Price information of the order.
Show Source
-
amount:
number
The raw number that represents the price.
-
currencyCode:
string
Indicates the currency of the price. For example, USD indicates that the price is in US dollars.
-
isTaxIncluded:
boolean
Indicates if tax is included in item price
-
orderDiscountAmount:
number
Total Order Discount Ampunt
-
primaryCurrencyTotal:
number
An order can be paid in points and monetary currency. This field represent order value which will be paid in points. It includes items amount, item discount, order discount. Prerequisites for the value in this Attribute: 1. PriceList configured for the site is in custom currency. 2. payTaxInSecondaryCurrency and payShippingInSecondaryCurrency flags are enabled.
-
secondaryCurrencyShippingAmount:
number
This field represents the shipping amount, shipping discount and shipping surcharge in monetary Currency. Prerequisites for the value in this Attribute: 1. PriceList configured for the site is in custom currency. 2. payTaxInSecondaryCurrency and payShippingInSecondaryCurrency flags are enabled.
-
secondaryCurrencyShippingSurchargeValue:
number
The secondary currency shipping surcharge amount.
-
secondaryCurrencyTaxAmount:
number
This field represents the total tax(Item Tax and Shipping Tax) of the order in Monetary Currency. Prerequisites for the value in this Attribute: Prerequisites for the value in this Attribute: 1. PriceList configured for the site is in custom currency. 2. payTaxInSecondaryCurrency and payShippingInSecondaryCurrency flags are enabled. 3. If the tax is included in the price of the item, then this value represents only shipping tax in monetary currency.
-
secondaryCurrencyTotal:
number
An order can be paid in points and monetary currency. This field represent order value which will be paid in monetary currency. It includes shipping charges, shipping surcharges, shipping discount and total tax in monetary currency. Prerequisites for the value in this Attribute: 1. PriceList configured for the site is in custom currency. 2. payTaxInSecondaryCurrency and payShippingInSecondaryCurrency flags are enabled. 3. If the tax is included in the price of the item, then this value represents only shipping tax in monetary currency.
-
shipping:
number
The shipping cost of the order.
-
subTotal:
number
The subtotal of the order before applying order-level promotions.
-
tax:
number
The tax on the order.
-
total:
number
The current working total, including all promotions, tax, and billing costs.
-
totalWithoutTax:
number
The total cost without Tax.
Nested Schema : priceListGroup
Type:
object
PriceList group of the order.
Show Source
-
active:
boolean
Active status of pricelist group.
-
currency:
object currency
Currency of the PriceList group.
-
deleted:
boolean
Pricelist group deleted status.
-
displayName:
string
Display Name.
-
id:
string
Id.
-
listPriceList:
object listPriceList
Price List for list prices
-
locale:
string
Locale.
-
repositoryId:
string
Repository Id.
-
salePriceList:
object salePriceList
Price List for sale prices
-
shippingSurchargePriceList:
object shippingSurchargePriceList
Price List for shipping surcharge prices
Nested Schema : recurringChargePriceInfo
Type:
object
Detailed information of the recurring charges at the shipping groups level
Show Source
-
amount:
integer
amount
-
currencyCode:
string
Currency code
-
shipping:
integer
shipping charge
-
subtotal:
integer
sub total
-
subTotalByFrequency:
array subTotalByFrequency
subtotal of the item by frequency
-
tax:
integer
total tax
-
taxByFrequency:
array taxByFrequency
tax by frequency
-
total:
integer
total amount
-
totalWithoutTax:
integer
total without tax
Nested Schema : currency
Type:
object
Currency of the PriceList group.
Show Source
-
currencyCode:
string
Currency Code.
-
displayName:
string
Display Name.
-
fractionalDigits:
integer
Fractional Digits.
-
numericCode:
string
Numeric Code.
-
repositoryId:
string
Repository Id.
-
symbol:
string
currency Symbol.
Nested Schema : listPriceList
Type:
object
Price List for list prices
Show Source
-
repositoryId:
string
Repository ID of the list prices
Nested Schema : salePriceList
Type:
object
Price List for sale prices
Show Source
-
repositoryId:
string
Repository ID of the sale prices
Nested Schema : shippingSurchargePriceList
Type:
object
Price List for shipping surcharge prices
Show Source
-
repositoryId:
string
Repository ID of the shipping surcharge prices
Nested Schema : taxByFrequency
Type:
array
tax by frequency
Show Source
-
Array of:
integer
tax for each frequency
Nested Schema : items
Type:
Show Source
object
-
amount:
integer
amount
-
frequency:
string
frequency of the recurring charges
Nested Schema : items
Type:
Show Source
object
-
amount:
number
The amount pertaining to the credit card
-
creditCardInfo:
object creditCardInfo
Credit Card Details.
-
creditCardType:
string
The type of the credit card
-
currencyCode:
string
Currency code
-
maxRefundAmount:
number
The maximum amount that can be refunded from the card
-
paymentGroupId:
string
Id of the payment group
-
refundType:
string
Type of the refund. For example this can be tokenized credit card
-
reversalMethod:
string
Payment Reversal Method
-
state:
string
The state of the return request
Nested Schema : creditCardInfo
Type:
object
Credit Card Details.
Show Source
-
cardNumber:
string
Credit Card Number
Nested Schema : organization
Type:
object
The Organization associated with the B2B customer profile.
Show Source
-
id:
string
The id of the organization.
-
name:
string
The name of of the organization.
Nested Schema : itemPromotionValueAdjustments
Type:
object
Item level promotion adjustments
Show Source
-
adjustedAmount:
number
Amount adjusted as a result of applied promotion.
-
couponCode:
string
Code of the coupon applied.
-
itemPromotionRefNo:
string
Reference to the Item Level Promotion.
-
promotionAdjustmentType:
string
Type of promotion Adjustment. Possible values are Adjusted / Removed.
-
promotionDesc:
string
Description of promotion
-
promotionId:
string
Id of the promotion
Nested Schema : nonReturnItemCostAdjustment
Type:
object
The cost adjustment for item which are not returned.
Show Source
-
amountAdjustment:
number
Amount adjusted as result of item returned.
-
commerceItemId:
string
Id of the commerce Item.
- manualAdjustmentShareAdjustment: number
- orderDiscountShareAdjustment: number
-
quantityAdjusted:
number
The number of item adjusted.
-
shippingGroupId:
string
Id of the shipping group.
- shippingShareAdjustment: number
- taxShareAdjustment: number
Nested Schema : orderPromotionValueAdjustments
Type:
object
Order Level promotion adjustments
Show Source
-
adjustedAmount:
number
Amount adjusted as a result of applied promotion.
-
couponCode:
string
Code of the coupon applied.
-
itemPromotionRefNo:
string
Reference to the Item Level Promotion.
-
promotionAdjustmentType:
string
Type of promotion Adjustment. Possible values are Adjusted / Removed.
-
promotionDesc:
string
Description of promotion
-
promotionId:
string
Id of the promotion
Nested Schema : items
Type:
Show Source
object
-
profileId:
string
the profile id of the user
-
profileType:
string
the profile type of the user that requested the quote
-
providerNote:
string
the provider note for the quoted order
-
quoteDate:
number
the date the order was quoted in milliseconds
-
rejectionDate:
number
the rejection date for an order whose quote has been rejected by user
-
rejectionNote:
string
the rejection note for an order whose quote has been rejected by user
-
requestDate:
number
the date when the quote was requested in ISO format
-
requesterNote:
string
the requester note
Nested Schema : refundDueMap
Type:
object
Additional Properties Allowed
Show Source
-
number
refund due amount in respective currency
A hashmap with currency code as a key and the refund due amount as the value.Map will be returned in response if payment is done with multiple currencies
Nested Schema : items
Type:
Show Source
object
-
actionCode:
string
The action code that has been set on the item by the configurator system.
-
activationDate:
string
The activation date in ISO format.
-
additionalProperties:
object additionalProperties
Additional properties of the return item
-
asset:
boolean
The flag that determines if the current item is an asset or not.
-
assetKey:
string
The assetKey is only assigned when the root item has been set as assetable in the catalog and has been configured.
-
billingAccountId:
string
The billing account ID associated to the current item.
-
billingProfileId:
string
The billing profile ID associated to the current item.
-
catRefId:
string
Catalog Reference Id
-
childItems:
array childItems
Returned Item child items
-
comments:
string
Comments at returnItem level
-
commerceItemId:
string
Commerce Id of the returned item
-
configuratorId:
string
Configurator Id of the returned item
-
customerAccountId:
string
The customer account ID associated to the current item.
-
deactivationDate:
string
The deactivation date in ISO format.
-
displayName:
string
Display Name of the Product
-
dynamicProperties:
array dynamicProperties
Array of custom properties at order line item level.
-
externalData:
array externalData
External data to be associated with a commerce item, provided by a configurator system.
-
nonreturnable:
boolean
Indicates whether the item is returnable or not
-
nonReturnableReason:
string
Indicates the reason for non-returnable
-
parentAssetKey:
string
The parentAssetKey is only assigned when the root item has been set as assetable in the catalog and has been configured.
-
price:
number
Total price of items
-
productId:
string
Id of the Product
-
quantityAvailableForReturn:
number
Quantity Available
-
quantityReturned:
number
Quantity Returned
-
quantityShipped:
number
Quantity Shipped
-
rootAssetKey:
string
The rootAssetKey is only assigned when the root item has been set as assetable in the catalog and has been configured.
-
serviceAccountId:
string
The service account ID associated to the current item.
-
serviceId:
string
The service ID associated to the current item.
-
shippingGroup:
object shippingGroup
Shipping group details
-
shippingGroupId:
string
Shipping group Id of the returned item
-
skuOptionInfo:
array skuOptionInfo
Product Variant Information.
-
skuProperties:
array skuProperties
Sku properties Information
-
transactionDate:
string
ISO formatted Date on which the service action should be triggered.
-
unitPrice:
number
Unit price of the item
Nested Schema : additionalProperties
Type:
object
Additional properties of the return item
Show Source
-
property1:
string
Additional Property 1
-
property2:
string
Additional Property 2
Nested Schema : dynamicProperties
Type:
array
Array of custom properties at order line item level.
Show Source
Nested Schema : externalData
Type:
array
External data to be associated with a commerce item, provided by a configurator system.
Show Source
Nested Schema : shippingGroup
Type:
object
Shipping group details
Show Source
-
availablePickupDate:
string
The available date (in ISO format) for collection of items to be picked up in store (if shipping group type is inStorePickupShippingGroup).
-
email:
string
The email address of the person picking up the items in store (if type is inStorePickupShippingGroup).
-
firstName:
string
The first name of the person picking up the items in store (if type is inStorePickupShippingGroup).
-
lastName:
string
The last name of the person picking up the items in store (if type is inStorePickupShippingGroup).
-
middleName:
string
The middle name of the person picking up the items in store (if type is inStorePickupShippingGroup).
-
phoneNumber:
string
The phone number of the person picking up the items in store (if type is inStorePickupShippingGroup).
-
preferredPickupDate:
string
The preferred date (in ISO format) for the items to be picked up in store (if shipping group type is inStorePickupShippingGroup).
-
shippingAddress:
object shippingAddress
shipping address for the order.
-
shippingMethod:
object shippingMethod
Shipping method information.
-
store:
object store
Information about the Store that the items are being picked up from (if shipping group type is inStorePickupShippingGroup)
-
type:
string
The type of shipping group to create, e.g. hardgoodShippingGroup, inStorePickupShippingGroup, inStoreTakeWithShippingGroup
Nested Schema : items
Type:
Show Source
object
-
actionCode:
string
The action code that has been set on the item by the configurator system.
-
activationDate:
string
The activation date in ISO format.
-
asset:
boolean
The flag that determines if the current item is an asset or not.
-
assetKey:
string
The assetKey is only assigned when the root item has been set as assetable in the catalog and has been configured.
-
billingAccountId:
string
The billing account ID associated to the current item.
-
billingProfileId:
string
The billing profile ID associated to the current item.
-
catRefId:
string
Catalog Reference Id of the child Item
-
childItems:
array childItems
Returned Item child items
-
customerAccountId:
string
The customer account ID associated to the current item.
-
deactivationDate:
string
The deactivation date in ISO format.
-
displayName:
string
Product display name of the sub sku commerce item
-
externalData:
array externalData
External data to be associated with a commerce item, provided by a configurator system.
-
parentAssetKey:
string
The parentAssetKey is only assigned when the root item has been set as assetable in the catalog and has been configured.
-
productId:
string
Product Id of teh
-
quantity:
number
quantity of the child Item
-
rootAssetKey:
string
The rootAssetKey is only assigned when the root item has been set as assetable in the catalog and has been configured.
-
route:
string
Product path
-
selectedOptions:
array selectedOptions
Child Product Variant Information.
-
serviceAccountId:
string
The service account ID associated to the current item.
-
serviceId:
string
The service ID associated to the current item.
-
transactionDate:
string
ISO formatted Date on which the service action should be triggered.
Nested Schema : externalData
Type:
array
External data to be associated with a commerce item, provided by a configurator system.
Show Source
Nested Schema : items
Type:
Show Source
object
-
actionCode:
string
The action code that has been set on the item by the configurator system.
-
activationDate:
string
The activation date in ISO format.
-
asset:
boolean
The flag that determines if the current item is an asset or not.
-
assetKey:
string
The assetKey is only assigned when the root item has been set as assetable in the catalog and has been configured.
-
billingAccountId:
string
The billing account ID associated to the current item.
-
billingProfileId:
string
The billing profile ID associated to the current item.
-
catRefId:
string
Catalog Reference Id of the child Item
-
customerAccountId:
string
The customer account ID associated to the current item.
-
deactivationDate:
string
The deactivation date in ISO format.
-
displayName:
string
Product display name of the sub sku commerce item
-
externalData:
array externalData
External data to be associated with a commerce item, provided by a configurator system.
-
parentAssetKey:
string
The parentAssetKey is only assigned when the root item has been set as assetable in the catalog and has been configured.
-
productId:
string
Product Id of teh
-
quantity:
number
quantity of the child Item
-
rootAssetKey:
string
The rootAssetKey is only assigned when the root item has been set as assetable in the catalog and has been configured.
-
route:
string
Product path
-
selectedOptions:
array selectedOptions
Child Product Variant Information.
-
serviceAccountId:
string
The service account ID associated to the current item.
-
serviceId:
string
The service ID associated to the current item.
-
transactionDate:
string
ISO formatted Date on which the service action should be triggered.
Nested Schema : externalData
Type:
array
External data to be associated with a commerce item, provided by a configurator system.
Show Source
Nested Schema : items
Type:
Show Source
object
-
actionCode:
string
The action code that has been set on the externalData item by the configurator system.
-
name:
string
The name to be associated with the externalData item.
-
values:
object values
The array of values associated with an externalData item.
Nested Schema : values
Type:
object
The array of values associated with an externalData item.
Show Source
-
dynamic_property_key:
string
This property's name and value will be retrieved from a configurator system, so will be dynamically set.
Nested Schema : items
Type:
Show Source
object
-
optionName:
string
Name of the Dynamic attribute.
-
optionValue:
string
Value of the Dynamic attribute.
Nested Schema : items
Type:
Show Source
object
-
actionCode:
string
The action code that has been set on the externalData item by the configurator system.
-
name:
string
The name to be associated with the externalData item.
-
values:
object values
The array of values associated with an externalData item.
Nested Schema : values
Type:
object
The array of values associated with an externalData item.
Show Source
-
dynamic_property_key:
string
This property's name and value will be retrieved from a configurator system, so will be dynamically set.
Nested Schema : items
Type:
Show Source
object
-
optionName:
string
Name of the Dynamic attribute.
-
optionValue:
string
Value of the Dynamic attribute.
Nested Schema : items
Type:
Show Source
object
-
id:
string
The ID of the dynamic property.
-
label:
string
The label of the dynamic property.
-
value:
string
The value of the dynamic property.
Nested Schema : items
Type:
Show Source
object
-
actionCode:
string
The action code that has been set on the externalData item by the configurator system.
-
name:
string
The name to be associated with the externalData item.
-
values:
object values
The array of values associated with an externalData item.
Nested Schema : values
Type:
object
The array of values associated with an externalData item.
Show Source
-
dynamic_property_key:
string
This property's name and value will be retrieved from a configurator system, so will be dynamically set.
Nested Schema : shippingAddress
Type:
object
shipping address for the order.
Show Source
-
address1:
string
Address Line 1 for this shipping address.
-
address2:
string
Address Line 2 for this shipping address.
-
address3:
string
Address Line 3 for this shipping address.
-
city:
string
City for this shipping address.
-
companyName:
string
Company name for this shipping address.
-
country:
string
Country code for this shipping address.
-
countryName:
string
Country name for this shipping address.
-
county:
string
County for this shipping address.
-
email:
string
Email for this shipping address.
-
faxNumber:
string
Fax number for this shipping address.
-
firstName:
string
First name for this shipping address.
-
jobTitle:
string
Job title for this shipping address.
-
lastName:
string
Last name for this shipping address.
-
middleName:
string
Middle name for this shipping address.
-
phoneNumber:
string
Phone number for this shipping address.
-
postalCode:
string
Postal code for this shipping address.
-
prefix:
string
Prefix for this shipping address.
-
state:
string
State code for this shipping address.
-
stateName:
string
State name for this shipping address.
-
suffix:
string
Suffix for this shipping address.
Nested Schema : shippingMethod
Type:
object
Shipping method information.
Show Source
-
shippingMethod:
string
Shipping method Name.
-
shippingMethodDescription:
number
shipping method description.
Nested Schema : store
Type:
object
Information about the Store that the items are being picked up from (if shipping group type is inStorePickupShippingGroup)
Show Source
-
address1:
string
Address line 1 of the store.
-
address2:
string
Address line 2 of the store.
-
address3:
string
Address line 3 of the store.
-
city:
string
The city in which the store resides.
-
country:
string
The country in which the store resides.
-
county:
string
The county in which the store resides.
-
email:
string
The email address of the store.
-
faxNumber:
string
The fax number of the store.
-
hours:
string
The opening hours of the store.
-
locationId:
string
The location id of the store.
-
name:
string
Name of the store.
-
phoneNumber:
string
The phone number of the store.
-
postalCode:
string
The postal code of the store.
-
stateAddress:
string
The state in which the store resides.
Nested Schema : items
Type:
Show Source
object
-
optionName:
string
Name of the Dynamic attribute
-
optionValue:
string
Value of the Dynamic attribute
Nested Schema : items
Type:
Show Source
object
-
id:
string
ID of the Dynamic SKU Property.
-
name:
string
Name of the Dynamic SKU Property.
-
propertyType:
string
Type that indicates whether it is a base or a custom SKU property,
-
value:
string
Value of the Dynamic SKU Property.
Example Response (application/json)
{
"returnLabel":"r1234",
"returnItems":[
{
"quantityReturned":0,
"deactivationDate":null,
"nonreturnable":false,
"displayName":"Fifa 2010",
"dynamicProperties":[
{
"id":"ReferralCode",
"label":"ReferralCode",
"value":null
},
{
"id":"OfferEndsDate",
"label":"OfferEndsDate",
"value":"2020-07-02T03:42:42.962Z"
},
{
"id":"Discount",
"label":"Discount",
"value":10
},
{
"id":"GiftWrapping",
"label":"Gift Wrapping",
"value":false
},
{
"id":"name",
"label":"Name on product(Mug)",
"value":"My name"
}
],
"externalData":[
],
"childItems":[
{
"serviceAccountId":"serviceAcc-123",
"deactivationDate":"2018-06-27T12:59:59Z",
"quantity":2,
"productId":"prod10040",
"displayName":"Super Smash Brothers Brawl",
"externalData":[
],
"parentAssetKey":"12345",
"billingProfileId":"billingProfile-123",
"billingAccountId":"billingAcc-123",
"rootAssetKey":"12345",
"transactionDate":"2018-06-27T12:59:59Z",
"catRefId":"sku10041",
"assetKey":"23456",
"route":"product/prod10040",
"customerAccountId":"customerAcc-123",
"selectedOptions":[
],
"actionCode":"Add",
"activationDate":"2017-06-27T15:30:00Z",
"serviceId":"service-123",
"asset":false
},
{
"serviceAccountId":"serviceAcc-123",
"deactivationDate":"2018-06-27T12:59:59Z",
"quantity":1,
"productId":"prod10038",
"displayName":"Wii Music",
"externalData":[
],
"parentAssetKey":"12345",
"billingProfileId":"billingProfile-123",
"billingAccountId":"billingAcc-123",
"rootAssetKey":"12345",
"transactionDate":"2018-06-27T12:59:59Z",
"catRefId":"sku10042",
"assetKey":"34567",
"route":"product/prod10038",
"customerAccountId":"customerAcc-123",
"selectedOptions":[
],
"actionCode":"Add",
"activationDate":"2017-06-27T15:30:00Z",
"serviceId":"service-123",
"asset":false
}
],
"configuratorId":"12345677",
"skuOptionInfo":[
],
"assetKey":"12345",
"quantityAvailableForReturn":3,
"commerceItemId":"ci9000467",
"price":29.97,
"actionCode":"Add",
"nonReturnableReason":"Item is non returnable",
"serviceAccountId":null,
"unitPrice":9.99,
"shippingGroup":{
"shippingMethod":{
"shippingMethod":"standardShippingMethod",
"shippingMethodDescription":"Standard"
},
"shippingGroupId":"sg40411",
"shippingAddress":{
"lastName":"Spencers",
"country":"US",
"address3":null,
"address2":null,
"city":"Montgomery",
"prefix":null,
"address1":"600 Dexter Avenue",
"postalCode":"36130",
"companyName":null,
"jobTitle":null,
"county":null,
"suffix":null,
"firstName":"Mark",
"phoneNumber":"973-974-1234",
"faxNumber":null,
"alias":null,
"middleName":null,
"state":"AL",
"email":"mspens@example.com"
}
},
"comments":null,
"productId":"prod10035",
"detailedItemPriceInfo":[
{
"discounted":false,
"secondaryCurrencyTaxAmount":0,
"amount":9.99,
"quantity":1,
"tax":1.29,
"orderDiscountShare":0,
"detailedUnitPrice":9.99,
"currencyCode":"USD"
}
],
"parentAssetKey":null,
"rootAssetKey":null,
"transactionDate":"2018-06-27T12:59:59Z",
"catRefId":"sku10037",
"skuProperties":[
{
"propertyType":"sku-base",
"name":"Name",
"id":"displayName",
"value":null
},
{
"propertyType":"sku-base",
"name":"Id",
"id":"id",
"value":"camerasku_1_1"
},
{
"propertyType":"sku-custom",
"name":"dynamicskuprop1",
"id":"dynamicskuprop1",
"value":"dynamicskuprop1"
}
],
"quantityShipped":3,
"additionalProperties":{
"key1":"value1",
"key2":"value2"
}
}
],
"authorizationNumber":"a1234",
"profileInfo":{
"lastName":"Anderson",
"firstName":"Kim",
"organization":{
"name":"Oracle India Pvt Ltd",
"id":"oracle"
},
"middleName":null,
"email":"kim@example.com"
},
"orderInfo":{
"priceInfo":{
"total":58.4,
"amount":29.97,
"shipping":25,
"isTaxIncluded":false,
"shippingSurchargeValue":0,
"tax":3.43,
"subTotal":29.97,
"orderDiscountAmount":0,
"currencyCode":"USD",
"totalWithoutTax":127.97
},
"orderId":"o10400",
"priceListGroup":{
"deleted":false,
"displayName":"UsDollar",
"repositoryId":"UsDollar",
"listPriceList":{
"repositoryId":"listPrices"
},
"active":true,
"salePriceList":{
"repositoryId":"salePrices"
},
"currency":{
"symbol":"$",
"displayName":"US Dollar",
"repositoryId":"hi_US",
"fractionalDigits":2,
"currencyCode":"USD",
"numericCode":"356"
},
"id":"UsDollar",
"locale":"hi_US",
"shippingSurchargePriceList":{
"repositoryId":"shippingSurchargePrices"
}
},
"siteId":"siteUS",
"creationDate":"2014-05-20 16:06:44.0",
"submittedDate":"2014-05-20 16:07:44.0"
},
"links":[
{
"rel":"self",
"href":"http://example.com/ccstoreui/v1/returnRequests/initiate"
}
],
"additionalProperties":{
"key1":"value1",
"key2":"value2"
},
"quoteInfo":{
"providerNote":null,
"notes":[
{
"providerDate":"2016-11-25T13:33:48.000Z",
"providerNote":"The quote is approved as per the request",
"profileType":null,
"profileId":"se-570031"
},
{
"profileType":null,
"profileId":"se-570031",
"requestDate":"2016-10-25T13:33:48.000Z",
"requesterNote":"provide 10 percent off on the total quantity"
}
],
"rejectionDate":null,
"requestDate":"2016-10-25T13:33:48.000Z",
"errorInfo":null,
"externalID":null,
"rejectionNote":null,
"quoteDate":"2016-10-25T13:35:32.000Z",
"expirationDate":"2026-04-28T18:53:48.000Z"
},
"trackingNumber":[
"t12344",
"t12345"
]
}
Default Response
The error response.
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
|Error Code|Description|
|------------------|------------------|
|100094|Organization passed in the header is currently inactive|
|100095|The order or return request does not belong to the current organization of the shopper profile|
|100096|The organization associated to the order or return request was deleted / does not exist|
|100097|The organization associated to the order or return request is currently inactive|
|100098|Current operation is being performed in an organization context and the shopper profile is not associated to any organization|
|100099|Current operation is being performed in an organization context and the order or return request does not belong to any organization|
|200114|Order is not allowed for return.|
|30015|SiteId passed in x-ccsite header is currently inactive|
|30014|SiteId passed in x-ccsite header is invalid or the site was deleted|
|30020|The Site to which the order belongs was deleted|
|30021|The Site to which the order belongs is currently inactive|
|100101|The shopper profile does not belong to organization passed in the header|
|30019|SiteId passed in x-ccsite header is not related to the order being worked upon|
|210105|Specified order does not exist.|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
errors:
array errors
An optional list of errors if multiple errors were encountered
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code
-
type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code