ReturnGO

App · 10 actions

Read and manage return requests, shipment tracking and return transactions.

Actions

ActionWhat it does
Add a return commentAdd comment to RMA timeline.
Create return requestCreate a new RMA for the given order items, and the policies to use for each.
Delete return shipmentDelete Shipment.
Get eligible return policiesGet the eligible policies for the given order items.
Get return requestGet RMA details.
List return requestsList and search RMAs.
List return transactionsList and search all transactions.
List webhooksList of Registered Webhooks.
Set return statusSet RMA status.
Track shipmentTrack Shipment.

Add a return comment

Add comment to RMA timeline.

Inputs

Rmarma_idtextRequired
The ID of the RMA to add the comment for. E.g. for RMA1234, the ID is 1234
Html texthtml_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 itemsreturned_itemslistRequired
The order items to be returned
StatusstatustextRequired
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 IDshipment_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 itemsreturn_itemslistRequired
The returned items in the request

Outputs

datalist
The response from ReturnGO.
Example output
{
  "data": []
}

Get return request

Get RMA details.

Inputs

Rmarma_idtextRequired
The ID of the RMA to get the details of. E.g. for RMA1234, the ID is 1234
Include mediainclude_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

Pagesizepagesizenumber
Maximum results to return in one page.From 1 to 500. Default: 50.
Cursorcursortext
The position to start from, as received from a previous call. If not present, start from the beginning
Sort bysort_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 sincecreated_sincedate and time
Created since this date and time.
Updated sinceupdated_sincedate and time
Updated since this date and time.
Statusstatuslist
Return statuses to include.One or more of: Pending, Approved, Received, Validated, Done, Rejected, Canceled.
Order nameorder_nametext
A comma delimited list of order names e.g order_name=1001,1002 ...
Glbe order IDglbe_order_idtext
A comma delimited list of Global-e order ids e.g glbe_order_id=GE748856588IL,GE660444968NL ...
Customer IDscustomer_idstext
A comma delimited list of customer ids e.g customer_ids=6898673516706,6433510031522 ...
Tracking numberstracking_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

Pagesizepagesizenumber
Maximum results to return in one page.From 1 to 500. Default: 50.
Cursorcursortext
The position to start from, as received from a previous call. If not present, start from the beginning
Created sincecreated_sincedate and time
Created since this date and time.
Updated sinceupdated_sincedate and time
Updated since this date and time.
Rma IDsrma_idstext
A comma delimited list of RMA IDs, e.g rma_ids=120,121,...
Order IDsorder_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
Statusesstatusestext
A comma delimited list of transaction statusesOne of: Requested, Success, Failed, Canceled.
Typestypestext
A comma delimited list of transaction typesOne of: RefundToPaymentMethod, RefundToStoreCredit, RefundToGiftCard, RefundToBankAccount, PaymentAuthorization, PaymentCapture, InvoicePayment, InvoiceAdjustmentPositive, InvoiceAdjustmentNegative.
Processorsprocessorstext
A comma delimited list of transaction processors
Idsidstext
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

Rmarma_idtextRequired
The ID of the RMA to change status for. E.g. for RMA1234, the ID is 1234
StatusstatustextRequired
The new status to transition the RMA to. Valid values are: Pending, Approved, Received, Validated, Done, Rejected, Canceled
Reject reasonreject_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 reasoncancel_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 itemsnew_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 statusesitems_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 IDshipment_idtextRequired
The ID (on the platform) of the shipment
Shipment creation dateshipment_creation_datedate and timeRequired
The date and time when the shipment was created
Order IDorder_idtextRequired
The ID of the e-commerce platform's order of the shipment
Line itemsline_itemslist
The line item ID of the item, as used on the e-commerce platform's order
Destination zipdestination_ziptextRequired
Zip code of the destination address
Tracking numbertracking_numbertextRequired
The tracking number of the shipment.
Tracking urltracking_urltext
The tracking URL of the shipment.
Carrier namecarrier_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
  }
}

On this page