POST /shopify-stores.json
Body Required
-
accessToken string | null
Access token
-
apiKey string | null
Api key
-
Archive reason
Values are
subscription
orother
. Default value isother
. -
Authentication type
Values are
public
orprivate
. Default value ispublic
. -
backorderMetafield boolean | null
Backorder metafield
-
carrierServiceId string | null
Carrier service
-
Channel
-
Closed
Default value is
false
. -
connectedAt string(date-time) | null
Connected at
-
Delay order import
Default value is
false
. -
Enabled
Default value is
true
. -
External fulfillment services
Default value is
[]
(empty). -
facebookUnpaidOrders boolean | null
Facebook unpaid orders
-
fetchRecentProducts boolean | null
Fetch recent products
-
hookdeckId string | null
Hookdeck
-
importArchivedOrdersFulfilled boolean | null
When enabled, Onport will import any archived orders that are fulfilled in Shopify. This may be useful to sync orders fulfilled and archived outside of Onport.
-
Import draft orders
Default value is
false
. -
Metafields for products and variants created in Shopify will be imported back into Onport.
Default value is
false
. -
Importing products
Default value is
false
. -
Importing sales
Default value is
false
. -
inventoryFeedLocation string | null
Inventory feed location
-
Inventory feed location type
Values are
default
orselected
. Default value isdefault
. -
inventoryFeedMetafield boolean | null
Inventory feed metafield
-
Inventory locations
Values are
default
ormultiple
. Default value isdefault
. -
Inventory migration
Default value is
true
. -
Last sales import
-
locationId string | null
Location
-
locationIds array[string] | null
If you only want to import orders from specific location IDs, enter the locations below. This should be the Shopify resource ID, not the location name.
-
name string | null
Name
-
Order import delay minutes
Default value is
0
. -
Order metafields
Default value is
false
. -
orderMetafieldsKey string | null
Order metafields key
-
orderMetafieldsValue string | null
Order metafields value
-
Overwrite scope
Default value is
true
. -
password string | null
Password
-
Product import
Values are
automated
ormanual
. Default value isautomated
. -
Send fulfilment notifications to your Shopify store and your customers when items are marked as shipped in Onport. This will use the template settings within your Shopify Store.
Default value is
true
. -
Setup complete
Default value is
false
. -
Shop
-
Show days
Default value is
true
. -
Allow staff members to log in to Onport from the App installed in the Shopify admin. When turned off, staff members will need to use their email and password to log into Onport.
Default value is
true
. -
Throttle
Default value is
true
. -
unpaidAllowList array[string] | null
Some payment gateways may hold transactions in the
authorized
state in Shopify and not appear as fully paid. You can opt to import these orders by adding the gateway below (e.g. Klarna).
curl \
-X POST http://api.example.com/v1/shopify-stores.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"accessToken":"string","apiKey":"string","archiveReason":"other","authenticationType":"public","backorderMetafield":true,"carrierServiceId":"string","channelId":42,"closed":false,"connectedAt":"2024-05-04T09:42:00+00:00","delayOrderImport":false,"enabled":true,"externalFulfillmentServices":[],"facebookUnpaidOrders":true,"fetchRecentProducts":true,"hookdeckId":"string","importArchivedOrdersFulfilled":true,"importDraftOrders":false,"importMetaFields":false,"importingProducts":false,"importingSales":false,"inventoryFeedLocation":"string","inventoryFeedLocationType":"default","inventoryFeedMetafield":true,"inventoryLocations":"default","inventoryMigration":true,"lastSalesImport":"2024-05-04T09:42:00+00:00","locationId":"string","locationIds":["string"],"name":"string","orderImportDelayMinutes":0,"orderMetafields":false,"orderMetafieldsKey":"string","orderMetafieldsValue":"string","overwriteScope":true,"password":"string","productImport":"automated","sendShipmentNotifications":true,"setupComplete":false,"shop":"string","showDays":true,"sso":true,"throttle":true,"unpaidAllowList":["string"]}'
{
"accessToken": "string",
"apiKey": "string",
"archiveReason": "other",
"authenticationType": "public",
"backorderMetafield": true,
"carrierServiceId": "string",
"channelId": 42,
"closed": false,
"connectedAt": "2024-05-04T09:42:00+00:00",
"delayOrderImport": false,
"enabled": true,
"externalFulfillmentServices": [],
"facebookUnpaidOrders": true,
"fetchRecentProducts": true,
"hookdeckId": "string",
"importArchivedOrdersFulfilled": true,
"importDraftOrders": false,
"importMetaFields": false,
"importingProducts": false,
"importingSales": false,
"inventoryFeedLocation": "string",
"inventoryFeedLocationType": "default",
"inventoryFeedMetafield": true,
"inventoryLocations": "default",
"inventoryMigration": true,
"lastSalesImport": "2024-05-04T09:42:00+00:00",
"locationId": "string",
"locationIds": [
"string"
],
"name": "string",
"orderImportDelayMinutes": 0,
"orderMetafields": false,
"orderMetafieldsKey": "string",
"orderMetafieldsValue": "string",
"overwriteScope": true,
"password": "string",
"productImport": "automated",
"sendShipmentNotifications": true,
"setupComplete": false,
"shop": "string",
"showDays": true,
"sso": true,
"throttle": true,
"unpaidAllowList": [
"string"
]
}
{
"accessToken": "string",
"apiKey": "string",
"archiveReason": "other",
"authenticationType": "public",
"backorderMetafield": true,
"carrierServiceId": "string",
"channelId": 42,
"closed": false,
"connectedAt": "2024-05-04T09:42:00+00:00",
"createdAt": "2024-05-04T09:42:00+00:00",
"delayOrderImport": false,
"enabled": true,
"externalFulfillmentServices": [],
"facebookUnpaidOrders": true,
"fetchRecentProducts": true,
"hookdeckId": "string",
"id": 42,
"importArchivedOrdersFulfilled": true,
"importDraftOrders": false,
"importMetaFields": false,
"importingProducts": false,
"importingSales": false,
"inventoryFeedLocation": "string",
"inventoryFeedLocationType": "default",
"inventoryFeedMetafield": true,
"inventoryLocations": "default",
"inventoryMigration": true,
"lastSalesImport": "2024-05-04T09:42:00+00:00",
"locationId": "string",
"locationIds": [
"string"
],
"name": "string",
"orderImportDelayMinutes": 0,
"orderMetafields": false,
"orderMetafieldsKey": "string",
"orderMetafieldsValue": "string",
"overwriteScope": true,
"password": "string",
"productImport": "automated",
"sendShipmentNotifications": true,
"setupComplete": false,
"shop": "string",
"showDays": true,
"sso": true,
"throttle": true,
"unpaidAllowList": [
"string"
],
"updatedAt": "2024-05-04T09:42:00+00:00"
}