Returnly API Integration Example
@tod
code:
data:privatelast updated:3 years agoarchived
today
Build integrations remarkably fast!
You're viewing a public workflow template.
Sign up to customize, add steps, modify code and more.
Join 800,000+ developers using the Pipedream platform
steps.
trigger
HTTP API
Deploy to generate unique URL
This workflow runs on Pipedream's servers and is triggered by HTTP / Webhook requests.
steps.
returnly
This API returns return information which can be filtered by creation date, refunded date, status, RMA.
auth
(auths.returnly)
params
Comma Separated Array of string
 
return_line_items,shipping_labels,instant_refund_voucher
string ·params.include
Optional
code
async (params, auths) => {
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
}
17
return await require("@pipedreamhq/platform").axios(this, {
  url: `https://api.returnly.com/returns`,
  headers: {
    "X-Api-Token": `${auths.returnly.api_key}`,
  },
  params: {
    include: params.include,
    status: params.status,
    min_updated_at: params.min_updated_at,
    max_updated_at: params.max_updated_at,
    min_refunded_at: params.min_refunded_at,
    max_refunded_at: params.max_refunded_at,
    page: params.page,
  },
})