cURL
The command-line tool cURL can be used to make REST API calls to the fulfillmenttools platform.
The following example demonstrates how to create a new facility. All requests must include Authorization and Content-Type headers. The placeholders in the URL and headers, such as {YOUR-TENANT-NAME} and <TOKEN>, must be replaced with the correct values for the tenant, authentication, and endpoint.
curl -sSL -X POST 'https://{YOUR-TENANT-NAME}.api.fulfillmenttools.com/api/facilities' \
--header 'Authorization: Bearer <TOKEN>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Bills Candy Shop",
"address": {
"companyName": "Bills Candy Shop Ltd.",
"country": "DE",
"postalCode": "81669",
"city": "München",
"street": "Lilienstr.",
"houseNumber": "58"
},
"services": [
{
"type": "SHIP_FROM_STORE"
}
],
"status": "ONLINE",
"locationType": "STORE"
}'Last updated