description:'If all results should be returned or only up to a given limit.',
},
{
displayName:'Limit',
name:'limit',
type:'number',
displayOptions:{
show:{
resource:[
'order',
],
operation:[
'getAll',
],
returnAll:[
false,
],
},
},
typeOptions:{
minValue: 1,
maxValue: 250,
},
default:50,
description:'How many results to return.',
},
{
displayName:'Options',
name:'options',
type:'collection',
placeholder:'Add Field',
default:{},
displayOptions:{
show:{
operation:[
'getAll',
],
resource:[
'order',
],
},
},
options:[
{
displayName:'Attribution App ID',
name:'attributionAppId',
type:'string',
default:'',
description:'Show orders attributed to a certain app, specified by the app ID. Set as current to show orders for the app currently consuming the API.',
},
{
displayName:'Created At Min',
name:'createdAtMin',
type:'dateTime',
default:'',
description:'Show orders created at or after date ',
},
{
displayName:'Created At Max',
name:'createdAtMax',
type:'dateTime',
default:'',
description:'Show orders created at or before date',
},
{
displayName:'Financial Status',
name:'financialStatus',
type:'options',
options:[
{
name:'Any',
value:'any',
description:'Show orders of any financial status.',
},
{
name:'Authorized',
value:'authorized',
description:'Show only authorized orders',
},
{
name:'Paid',
value:'paid',
description:'Show only paid orders',
},
{
name:'Partially Paid',
value:'partiallyPaid',
description:'Show only partially paid orders',
},
{
name:'Partially Refunded',
value:'partiallyRefunded',
description:'Show only partially refunded orders',
},
{
name:'Pending',
value:'pending',
description:'Show only pending orders',
},
{
name:'Refunded',
value:'refunded',
description:'Show only refunded orders',
},
{
name:'Voided',
value:'voided',
description:'Show only voided orders',
},
{
name:'Unpaid',
value:'unpaid',
description:'Show authorized and partially paid orders.',
},
],
default:'any',
description:'Filter orders by their financial status.',
},
{
displayName:'Fulfillment Status',
name:'fulfillmentStatus',
type:'options',
options:[
{
name:'Any',
value:'any',
description:'Show orders of any fulfillment status.',
},
{
name:'Partial',
value:'partial',
description:'Show partially shipped orders.',
},
{
name:'Shipped',
value:'shipped',
description:'Show orders that have been shipped. Returns orders with fulfillment_status of fulfilled.',
},
{
name:'Unshipped',
value:'unshipped',
description:'Show orders that have not yet been shipped. Returns orders with fulfillment_status of null.',
},
{
name:'Unfulfilled',
value:'unfulfilled',
description:'Returns orders with fulfillment_status of null or partial.',
},
],
default:'any',
description:'Filter orders by their fulfillment status.',
},
{
displayName:'Fields',
name:'fields',
type:'string',
default:'',
description:'Fields the orders will return, formatted as a string of comma-separated values. By default all the fields are returned',
},
{
displayName:'IDs',
name:'ids',
type:'string',
default:'',
description:'Retrieve only orders specified by a comma-separated list of order IDs.',
},
{
displayName:'Processed At Max',
name:'processedAtMax',
type:'dateTime',
default:'',
description:'Show orders imported at or before date',
},
{
displayName:'Processed At Min',
name:'processedAtMin',
type:'dateTime',
default:'',
description:'Show orders imported at or after date',
},
{
displayName:'Status',
name:'status',
type:'options',
options:[
{
name:'Any',
value:'any',
description:'Show orders of any status, including archived orders.',
},
{
name:'Cancelled',
value:'Cancelled',
description:'Show only canceled orders.',
},
{
name:'Closed',
value:'closed',
description:'Show only closed orders.',
},
{
name:'Open',
value:'open',
description:'Show only open orders.',
},
],
default:'open',
description:'Filter orders by their status.',
},
{
displayName:'Since ID',
name:'sinceId',
type:'string',
default:'',
description:'Show orders after the specified ID.',
},
{
displayName:'Updated At Max',
name:'updatedAtMax',
type:'dateTime',
default:'',
description:'Show orders last updated at or after date',
},
{
displayName:'Updated At Min',
name:'updatedAtMin',
type:'dateTime',
default:'',
description:'Show orders last updated at or before date',