ReturnGO
App · 10 actions
Read and manage return requests, shipment tracking and return transactions.
Actions
| Action | What it does |
|---|---|
| Add a return comment | Add comment to RMA timeline. |
| Create return request | Create a new RMA for the given order items, and the policies to use for each. |
| Delete return shipment | Delete Shipment. |
| Get eligible return policies | Get the eligible policies for the given order items. |
| Get return request | Get RMA details. |
| List return requests | List and search RMAs. |
| List return transactions | List and search all transactions. |
| List webhooks | List of Registered Webhooks. |
| Set return status | Set RMA status. |
| Track shipment | Track Shipment. |
Add a return comment
Add comment to RMA timeline.
Inputs
- Rma
rma_idtextRequired - The ID of the RMA to add the comment for. E.g. for RMA1234, the ID is 1234
- Html text
html_texttextRequired - The note itself, as HTML code
Outputs
dataobject- The response from ReturnGO.
Example output
{
"data": {
"commentType": "merchant",
"datetime": "example",
"htmlText": "example",
"triggeredBy": "example"
}
}Create return request
Create a new RMA for the given order items, and the policies to use for each.
Inputs
- Returned items
returned_itemslistRequired - The order items to be returned
- Status
statustextRequired - The desired status for the RMA. Valid values are: Pending, Approved, Received, Validated, Done, Rejected, Canceled Note: if any automation is configured in the policy (auto-approve/auto-done), it will be applied so the resulting status may be more advanced than requestedOne of:
Pending,Approved,Received,Validated,Done,Rejected,Canceled.
Outputs
dataobject- The response from ReturnGO.
Example output
{
"data": {
"cancellationFee": 1.0,
"comments": [],
"createdAt": "example",
"exchangeItems": [],
"exchangeOrders": [],
"isOutOfPolicy": false,
"items": [],
"lastUpdated": "example",
"orderDetails": {
"glbe_order_id": "example",
"orderId": "example",
"order_name": "example"
},
"rmaSummary": {
"events": [],
"glbe_order_id": "example",
"order_name": "example",
"rmaId": "example",
"status": "Pending"
},
"shipments": [],
"transactions": []
}
}Delete return shipment
Delete Shipment.
Inputs
- Shipment ID
shipment_idtextRequired - The ID of the shipment
Outputs
dataobject- The response from ReturnGO.
Example output
{
"data": {
"actualServiceLevel": "example",
"carrierName": "example",
"customerAddress": {
"city": "example",
"country": "example",
"email": "example",
"name": "example",
"phone": "example",
"state": "example",
"street1": "example",
"street2": "example",
"zip": "example"
},
"isOutbound": false,
"labelURL": "example",
"requestedServiceLevel": "example",
"returnAddress": {
"city": "example",
"country": "example",
"email": "example",
"name": "example",
"phone": "example",
"state": "example",
"street1": "example",
"street2": "example",
"zip": "example"
},
"shipmentId": "example",
"status": "Pending",
"trackingNumber": "example",
"trackingURL": "example"
}
}Get eligible return policies
Get the eligible policies for the given order items.
Inputs
- Return items
return_itemslistRequired - The returned items in the request
Outputs
datalist- The response from ReturnGO.
Example output
{
"data": []
}Get return request
Get RMA details.
Inputs
- Rma
rma_idtextRequired - The ID of the RMA to get the details of. E.g. for RMA1234, the ID is 1234
- Include media
include_mediatrue/false - Include media files in the response. If false or ommitted, media answers are not included
Outputs
dataobject- The response from ReturnGO.
Example output
{
"data": {
"cancellationFee": 1.0,
"comments": [],
"createdAt": "example",
"exchangeItems": [],
"exchangeOrders": [],
"isOutOfPolicy": false,
"items": [],
"lastUpdated": "example",
"orderDetails": {
"glbe_order_id": "example",
"orderId": "example",
"order_name": "example"
},
"rmaSummary": {
"events": [],
"glbe_order_id": "example",
"order_name": "example",
"rmaId": "example",
"status": "Pending"
},
"shipments": [],
"transactions": []
}
}List return requests
List and search RMAs.
Inputs
- Pagesize
pagesizenumber - Maximum results to return in one page.From 1 to 500. Default:
50. - Cursor
cursortext - The position to start from, as received from a previous call. If not present, start from the beginning
- Sort by
sort_bylist - Sort results by these dates, in the chosen order.One or more of:
+rma_created_at(Created, oldest first),-rma_created_at(Created, newest first),+rma_updated_at(Updated, oldest first),-rma_updated_at(Updated, newest first). - Created since
created_sincedate and time - Created since this date and time.
- Updated since
updated_sincedate and time - Updated since this date and time.
- Status
statuslist - Return statuses to include.One or more of:
Pending,Approved,Received,Validated,Done,Rejected,Canceled. - Order name
order_nametext - A comma delimited list of order names e.g order_name=1001,1002 ...
- Glbe order ID
glbe_order_idtext - A comma delimited list of Global-e order ids e.g glbe_order_id=GE748856588IL,GE660444968NL ...
- Customer IDs
customer_idstext - A comma delimited list of customer ids e.g customer_ids=6898673516706,6433510031522 ...
- Tracking numbers
tracking_numberstext - A comma delimited list of tracking numbers e.g tracking_numbers=113498651924,390730297459 ...
Outputs
dataobject- The response from ReturnGO.
Example output
{
"data": {
"next_cursor": "example",
"rmas": []
}
}List return transactions
List and search all transactions.
Inputs
- Pagesize
pagesizenumber - Maximum results to return in one page.From 1 to 500. Default:
50. - Cursor
cursortext - The position to start from, as received from a previous call. If not present, start from the beginning
- Created since
created_sincedate and time - Created since this date and time.
- Updated since
updated_sincedate and time - Updated since this date and time.
- Rma IDs
rma_idstext - A comma delimited list of RMA IDs, e.g rma_ids=120,121,...
- Order IDs
order_idstext - A comma delimited list of order IDs, e.g rma_ids=3247583,2547583,... **NOTE:** The Order ID is the e-commerce platform's internal identifier for the order, not the customer facing order number/name
- Statuses
statusestext - A comma delimited list of transaction statusesOne of:
Requested,Success,Failed,Canceled. - Types
typestext - A comma delimited list of transaction typesOne of:
RefundToPaymentMethod,RefundToStoreCredit,RefundToGiftCard,RefundToBankAccount,PaymentAuthorization,PaymentCapture,InvoicePayment,InvoiceAdjustmentPositive,InvoiceAdjustmentNegative. - Processors
processorstext - A comma delimited list of transaction processors
- Ids
idstext - A comma delimited list of transaction IDs, e.g ids=9538329,4829042,...
Outputs
dataobject- The response from ReturnGO.
Example output
{
"data": {
"next_cursor": "example",
"transactions": []
}
}List webhooks
List of Registered Webhooks.
Inputs
None.
Outputs
datalist- The response from ReturnGO.
Example output
{
"data": []
}Set return status
Set RMA status.
Inputs
- Rma
rma_idtextRequired - The ID of the RMA to change status for. E.g. for RMA1234, the ID is 1234
- Status
statustextRequired - The new status to transition the RMA to. Valid values are: Pending, Approved, Received, Validated, Done, Rejected, Canceled
- Reject reason
reject_reasontext - The reason to include in the customer notification when rejecting. If no reason is passed, the default reason is used. Note that an empty string is considered a valid value.
- Cancel reason
cancel_reasontext - The reason to include in the customer notification when rejecting. If no reason is passed, the default reason is used. Note that an empty string is considered a valid value.
- New return method for all items
new_return_method_for_all_itemstext - The internal name of the return method to set for the RMA. Only applicable when setting status to Approved. If the field is omitted and status = approved, the return method is not changed. The return method is applied to all items in the RMA. Note: If there are two return methods with the same internal name, the operation will fail
- Items validation statuses
items_validation_statuseslist - The item validation status information. Pass items with returnedItemId which should be validated. Note that this action is possible only when setting the status to "Validated"
Outputs
dataobject- The response from ReturnGO.
Example output
{
"data": {
"cancellationFee": 1.0,
"comments": [],
"createdAt": "example",
"exchangeItems": [],
"exchangeOrders": [],
"isOutOfPolicy": false,
"items": [],
"lastUpdated": "example",
"orderDetails": {
"glbe_order_id": "example",
"orderId": "example",
"order_name": "example"
},
"rmaSummary": {
"events": [],
"glbe_order_id": "example",
"order_name": "example",
"rmaId": "example",
"status": "Pending"
},
"shipments": [],
"transactions": []
}
}Track shipment
Track Shipment.
Inputs
- Shipment ID
shipment_idtextRequired - The ID (on the platform) of the shipment
- Shipment creation date
shipment_creation_datedate and timeRequired - The date and time when the shipment was created
- Order ID
order_idtextRequired - The ID of the e-commerce platform's order of the shipment
- Line items
line_itemslist - The line item ID of the item, as used on the e-commerce platform's order
- Destination zip
destination_ziptextRequired - Zip code of the destination address
- Tracking number
tracking_numbertextRequired - The tracking number of the shipment.
- Tracking url
tracking_urltext - The tracking URL of the shipment.
- Carrier name
carrier_nametext - The carrier of the shipment. This is the name of the shipping carrier
Outputs
dataobject- The response from ReturnGO.
Example output
{
"data": {
"details": {},
"reason": "example",
"success": false
}
}