Returns allow the user to return an order if the order is delivered.
Value | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
order_id Type: string Required | This field stores the id of the order.
| ||||||||||||||
return_type Type: string Required | This field stores the type of the return. The value of this field can be Full and Partial.
| ||||||||||||||
items Type: array Required | Array of objects containing the details of items at the time of return.
| ||||||||||||||
item_condition Type: string Required | This field stores the condition of the items. The value of item condition can be Unopened, Opened, Damaged.
| ||||||||||||||
return_reason Type: string Required | This field stores the reason for the return.
| ||||||||||||||
shipping_status Type: string | The field stores the shipping status of the order.
| ||||||||||||||
tracking_number Type: string | |||||||||||||||
tracking_company Type: string | |||||||||||||||
user_id Type: string | It stores the id of the user of the order.
| ||||||||||||||
user_email Type: string | It stores the email id of the user of the order. | ||||||||||||||
rma_number Type: string | It stores the RMA number for the return order.
| ||||||||||||||
refunded_amount Type: string | |||||||||||||||
status Type: string | It stores the status of the returned order. | ||||||||||||||
user_id Type: string | It stores the id of the user of the order.
| ||||||||||||||
financial_status Type: string | |||||||||||||||
customer_email Type: string | |||||||||||||||
transaction_id Type: string | |||||||||||||||
customer_shipping_address Type: object |
| ||||||||||||||
customer_billing_address Type: object |
| ||||||||||||||
seller_name Type: string | |||||||||||||||
seller_email Type: string | |||||||||||||||
seller Type: string | It stores the id of the seller of the product.
|
{
"data": {
"item_condition": "unopened",
"items": [{"_id": "5c6597b151f0fc16d9866e23", "quantity": 2}],
"order_id": "5c6507b124f0fc15d8366e28",
"return_reason": "Any reason",
"return_type": "full"
}
}
{
data: {
_id: '5c6507b154f0fc16d8866e23'
}
}
{
"data": {
"item_condition": "opened",
"items": [{"_id": "5c6597b151f0fc16d9866e23", "quantity": 2}],
"order_id": "5c6507b124f0fc15d8366e28",
"return_reason": "Any reason",
"return_type": "full"
}
}
{
data: {
_id: '5c6507b154f0fc16d8866e23'
}
}
{
"data": {
"item_condition": "damaged",
"items": [{"_id": "5c6597b151f0fc16d9866e23", "quantity": 2}],
"order_id": "5c6507b124f0fc15d8366e28",
"return_reason": "Any reason",
"return_type": "full"
}
}
{
data: {
_id: '5c6507b154f0fc16d8866e23'
}
}
{
"data": {
"item_condition": "unopened",
"items": [{"_id": "5c6597b151f0fc16d9866e23", "quantity": 1}],
"order_id": "5c6507b124f0fc15d8366e28",
"return_reason": "Any reason",
"return_type": "partial"
}
}
{
data: {
_id: '5c6507b154f0fc16d8866e23'
}
}
{
"data": {
"item_condition": "opened",
"items": [{"_id": "5c6597b151f0fc16d9866e23", "quantity": 1}],
"order_id": "5c6507b124f0fc15d8366e28",
"return_reason": "Any reason",
"return_type": "partial"
}
}
{
data: {
_id: '5c6507b154f0fc16d8866e23'
}
}
{
"data": {
"item_condition": "damaged",
"items": [{"_id": "5c6597b151f0fc16d9866e23", "quantity": 1}],
"order_id": "5c6507b124f0fc15d8366e28",
"return_reason": "Any reason",
"return_type": "partial"
}
}
{
data: {
_id: '5c6507b154f0fc16d8866e23'
}
}
{
"data": {
"_id": "5c6506b154f0fc16d8866e28"
}
}
{
data: 'Successfully Authorized!'
}
{
"data": {
"order_delivered": "1",
"shipping_status": "Delivered"
}
}
{
data: 'updated successfully'
}