|
| 1 | +The `Return` object can contain the following attributes: |
| 2 | + |
| 3 | +Attribute | Data Type | Description |
| 4 | +--- | --- | --- |
| 5 | +`available_shipping_carriers` | [ReturnShippingCarrier] | A list of shipping carriers available for returns |
| 6 | +`comments`| [ReturnComment] | A list of comments posted for the return request |
| 7 | +`created_at` | String! | The date the return was requested |
| 8 | +`customer_email` | String! | Email of the person who created the return request |
| 9 | +`customer` | [ReturnCustomer](#ReturnCustomer) | The name of the person who requested the return |
| 10 | +`items`| [[ReturnItem]](#ReturnItem) | A list of items being returned |
| 11 | +`number` | String! | Human-readable return number |
| 12 | +`order` | [CustomerOrder]({{page.baseurl}}/graphql/queries/customer.html#orders) | The order associated with the return |
| 13 | +`shipping` | [ReturnShipping](#ReturnShipping) | Shipping information for the return |
| 14 | +`status` | ReturnStatus | An enum indicating the status of the return request. Possible values are APPROVED, AUTHORIZED, CLOSED, DENIED, PARTIALLY_APPROVED, PARTIALLY_AUTHORIZED, PARTIALLY_RECEIVED, PARTIALLY_REJECTED, PENDING, PROCESSED_AND_CLOSED, RECEIVED, and REJECTED |
| 15 | +`uid` | ID! | The unique ID of a `Return` object |
| 16 | + |
| 17 | +#### ReturnComment attributes {#ReturnComment} |
| 18 | + |
| 19 | +The ReturnComment object provides details about an individual comment in a refund request. Comments can be added by a customer or the merchant. |
| 20 | + |
| 21 | +Attribute | Data Type | Description |
| 22 | +--- | --- | --- |
| 23 | +`author_name` | String! | The name or author who posted the comment |
| 24 | +`created_at` | String! | The date and time the comment was posted |
| 25 | +`text` | String! | The contents of the comment |
| 26 | +`uid` | ID! | The unique ID of a `ReturnComment` object |
| 27 | + |
| 28 | +#### ReturnCustomAttribute attributes {#ReturnCustomAttribute} |
| 29 | + |
| 30 | +Attribute | Data Type | Description |
| 31 | +--- | --- | --- |
| 32 | +`label` | String! | A description of the attribute |
| 33 | +`uid` | ID! | The unique ID of a `ReturnCustomAttribute` attribute |
| 34 | +`value` | String! | A JSON-encoded value of the attribute |
| 35 | + |
| 36 | +#### ReturnCustomer attributes {#ReturnCustomer} |
| 37 | + |
| 38 | +The ReturnCustomer object contains information about the person requesting a return. |
| 39 | + |
| 40 | +Attribute | Data Type | Description |
| 41 | +--- | --- | --- |
| 42 | +`email` | String! | The email address of the refund requester |
| 43 | +`firstname` | String | The first name of the refund requester |
| 44 | +`lastname` | String | The last name of the refund requester |
| 45 | + |
| 46 | +#### ReturnItem attributes {#ReturnItem} |
| 47 | + |
| 48 | +The ReturnItem object provides details about an individual item in a return request. |
| 49 | + |
| 50 | +Attribute | Data Type | Description |
| 51 | +--- | --- | --- |
| 52 | +`custom_attributes` | [[ReturnCustomAttribute]](#ReturnCustomAttribute) | Return item custom attributes that are visible on the storefront |
| 53 | +`order_item` | [OrderItemInterface!]({{page.baseurl}}/graphql/interfaces/order-item-interface.html) | Provides access to the product being returned, including information about selected and entered options |
| 54 | +`quantity` | Float! | The quantity of the item the merchant authorized to be returned |
| 55 | +`request_quantity` | Float! | The quantity of the item requested to be returned |
| 56 | +`status`| ReturnItemStatus! | An enum indicating the return status of the item. Possible values are APPROVED, AUTHORIZED, DENIED, PENDING, RECEIVED, and REJECTED |
| 57 | +`uid`| ID! | The unique ID of an item of a `Return` object |
| 58 | + |
| 59 | +#### ReturnShipping attributes {#ReturnShipping} |
| 60 | + |
| 61 | +The ReturnShipping object can contain the merchant's shipping address and tracking information. |
| 62 | + |
| 63 | +Attribute | Data Type | Description |
| 64 | +--- | --- | --- |
| 65 | +`address`| [ReturnShippingAddress](#ReturnShippingAddress) | The merchant-defined return shipping address |
| 66 | +`tracking(uid: ID)` | [[ReturnShippingTracking](#ReturnShippingTracking)] | The unique ID for a `ReturnShippingTracking` object. If a single UID is specified, contains a single tracking record. Otherwise, contains all tracking information |
| 67 | + |
| 68 | +#### ReturnShippingAddress attributes {#ReturnShippingAddress} |
| 69 | + |
| 70 | +The ReturnShippingAddress object defines the merchant address for receiving returned items. |
| 71 | + |
| 72 | +Attribute | Data Type | Description |
| 73 | +--- | --- | --- |
| 74 | +`city` | String! | The city for product returns |
| 75 | +`contact_name` | String | The merchant's contact person |
| 76 | +`country` | Country! | An object that defines the country for product returns |
| 77 | +`postcode` | String! | The postal code for product returns |
| 78 | +`region` | Region! | An object that defines the state or province for product returns |
| 79 | +`street` | [String]! | The street address for product returns |
| 80 | +`telephone` | String | The telephone number for product returns |
| 81 | + |
| 82 | +#### ReturnShippingCarrier attributes {#ReturnShippingCarrier} |
| 83 | + |
| 84 | +The ReturnShippingCarrier object contains details about the shipping carrier used to return a product. |
| 85 | + |
| 86 | +Attribute | Data Type | Description |
| 87 | +--- | --- | --- |
| 88 | +`label` | String! | A description of the shipping carrier |
| 89 | +`uid` | ID! | The unique ID of a `ReturnShippingCarrier` object |
| 90 | + |
| 91 | +#### ReturnShippingTracking attributes {#ReturnShippingTracking} |
| 92 | + |
| 93 | +The ReturnShippingTracking object contains tracking information for an approved return. |
| 94 | + |
| 95 | +Attribute | Data Type | Description |
| 96 | +--- | --- | --- |
| 97 | +`carrier` | [ReturnShippingCarrier!](#ReturnShippingCarrier) | Contains details of a shipping carrier |
| 98 | +`status` | [ReturnShippingTrackingStatus](#ReturnShippingTrackingStatus) | Contains details about the status of a shipment |
| 99 | +`tracking_number` | String! | A tracking number assigned by the carrier |
| 100 | +`uid` | ID! | The unique ID assigned of a `ReturnShippingTracking` object |
| 101 | + |
| 102 | +#### ReturnShippingTrackingStatus attributes {#ReturnShippingTrackingStatus} |
| 103 | + |
| 104 | +The ReturnShippingTrackingStatus object contains tracking status information for an approved return. |
| 105 | + |
| 106 | +Attribute | Data Type | Description |
| 107 | +--- | --- | --- |
| 108 | +`text` | String! | Text that describes the status |
| 109 | +`type` | ReturnShippingTrackingStatusType! | An enum indicating whether the status type is INFORMATIONAL or an ERROR |
0 commit comments