POST /magento-stores.json
Body Required
-
apiPassword string | null
Api password
-
Api username
-
Archive reason
Values are
subscription
orother
. Default value isother
. -
Channel
-
Enabled
Default value is
true
. -
lastFetchedSalesAt string(date-time) | null
Last fetched sales at
-
name string | null
Name
-
paidStatuses array[string] | null
Paid statuses
-
resourcePath string | null
Resource path
-
Send shipment notifications
Default value is
true
. -
Shop
-
sourceLocation string | null
Source location
-
vendorField string | null
Vendor field
POST
/magento-stores.json
curl \
-X POST http://api.example.com/v1/magento-stores.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"apiPassword":"string","apiUsername":"string","archiveReason":"other","channelId":42,"enabled":true,"lastFetchedSalesAt":"2024-05-04T09:42:00+00:00","name":"string","paidStatuses":["string"],"resourcePath":"string","sendShipmentNotifications":true,"shop":"string","sourceLocation":"string","vendorField":"string"}'
Request example
{
"apiPassword": "string",
"apiUsername": "string",
"archiveReason": "other",
"channelId": 42,
"enabled": true,
"lastFetchedSalesAt": "2024-05-04T09:42:00+00:00",
"name": "string",
"paidStatuses": [
"string"
],
"resourcePath": "string",
"sendShipmentNotifications": true,
"shop": "string",
"sourceLocation": "string",
"vendorField": "string"
}
Response examples (200)
{
"apiPassword": "string",
"apiUsername": "string",
"archiveReason": "other",
"channelId": 42,
"createdAt": "2024-05-04T09:42:00+00:00",
"enabled": true,
"id": 42,
"lastFetchedSalesAt": "2024-05-04T09:42:00+00:00",
"name": "string",
"paidStatuses": [
"string"
],
"resourcePath": "string",
"sendShipmentNotifications": true,
"shop": "string",
"sourceLocation": "string",
"updatedAt": "2024-05-04T09:42:00+00:00",
"vendorField": "string"
}