Menu
Create a new warehouse
Create a new warehouse
POST
/warehousesUse it in a workflow
- Add a step and choose the SCAYLE Admin connector.
- Pick the Create a new warehouse action (under Warehouses).
- Fill in the fields below, then reference the result from later steps as
{{createANewWarehouse.response.data}}.
Request
Request body
Enter the body as JSON in the step's Body field.
{
"referenceKey": "my-warehouse",
"id": 1,
"isZeosWarehouse": false,
"merchants": [
{
"referenceKey": "acme",
"name": "ACME",
"id": 1,
"priority": 1,
"orderDelegationUrl": "string",
"cancellationUrl": "string",
"contacts": [
{
"id": 1,
"name": "John Doe",
"email": "foo@bar.org",
"phone": 123456789,
"cellPhone": 123456789,
"type": "general",
"position": "Partner Service",
"description": "string"
}
],
"returnAddresses": [
{
"id": 1,
"name": "Return Point",
"street": "Domstrasse",
"streetNo": 10,
"zipCode": 22303,
"city": "Hamburg",
"countryCode": "DE",
"dhlCode": "JVGL0849489024"
}
],
"carriers": [
{
"countryCode": "DE",
"carrier": {
"key": "DHL_STD_NATIONAL",
"name": "DHL",
"id": 1,
"trackingUrl": "http://nolp.dhl.de/nextt-online-public/set_identcodes.do"
}
}
],
"warehouses": [
{
"referenceKey": "my-warehouse",
"id": 1
}
],
"customData": null
}
],
"shopCountries": [
{
"shopKey": "ms",
"countryCode": "DE",
"priority": 100,
"packageGroup": {
"id": 1
}
}
]
}
Response
Returns 201 with an object. Read it in later steps with {{createANewWarehouse.response.data.<field>}}.
{
"referenceKey": "my-warehouse",
"id": 1,
"isZeosWarehouse": false,
"merchants": [
{
"referenceKey": "acme",
"name": "ACME",
"id": 1,
"priority": 1,
"orderDelegationUrl": "string",
"cancellationUrl": "string",
"contacts": [
{
"id": 1,
"name": "John Doe",
"email": "foo@bar.org",
"phone": 123456789,
"cellPhone": 123456789,
"type": "general",
"position": "Partner Service",
"description": "string"
}
],
"returnAddresses": [
{
"id": 1,
"name": "Return Point",
"street": "Domstrasse",
"streetNo": 10,
"zipCode": 22303,
"city": "Hamburg",
"countryCode": "DE",
"dhlCode": "JVGL0849489024"
}
],
"carriers": [
{
"countryCode": "DE",
"carrier": {
"key": "DHL_STD_NATIONAL",
"name": "DHL",
"id": 1,
"trackingUrl": "http://nolp.dhl.de/nextt-online-public/set_identcodes.do"
}
}
],
"warehouses": [
{
"referenceKey": "my-warehouse",
"id": 1
}
],
"customData": null
}
],
"shopCountries": [
{
"shopKey": "ms",
"countryCode": "DE",
"priority": 100,
"packageGroup": {
"id": 1
}
}
]
}
Need more? See the SCAYLE Admin guide for connection setup and behaviour shared by every action.
Was this page helpful?