Menu
Create an Order
Create an Order
POST
/v1/ordersUse it in a workflow
- Add a step and choose the SCAYLE Storefront connector.
- Pick the Create an Order action (under orders).
- Fill in the fields below, then reference the result from later steps as
{{createAnOrder.response.data}}.
Request
Query parameters
Headers
Request body
Enter the body as JSON in the step's Body field.
{
"address": {
"shipping": null,
"billing": {
"city": "string",
"countryCode": "string",
"firstName": "string",
"gender": "m",
"houseNumber": "string",
"lastName": "string",
"street": "string",
"additional": "string",
"forwardToCollectionPoint": false,
"parcelShop": {
"id": "string",
"description": "string",
"type": "string",
"customerId": "string",
"delegationId": "string"
},
"phone": "string",
"state": "string"
}
},
"application": {
"id": 0,
"checkout": "string",
"device": "mobile"
},
"items": [
{
"variantId": 0,
"categoryName": "string",
"customData": {},
"initial": {
"merchantId": 0,
"merchantVariantId": "string",
"quantity": 0,
"size": "string",
"unitCost": 0
},
"itemGroup": {
"id": "string",
"isMainItem": false,
"isRequired": false
},
"promotion": {
"id": "string",
"code": "string"
},
"price": {
"withTax": 0,
"tax": {
"vat": {
"rate": 0
}
}
}
}
],
"channel": null,
"paymentTypes": [
{
"authorizedValue": 0,
"transactionId": "string",
"type": "string",
"confirmationData": {
"amount": 0,
"api_version": "string",
"authorization_id": "string",
"authorized_date": "string",
"charge_permission_id": "string",
"checkoutId": "string",
"creditCardBrand": "string",
"descriptor": "string",
"expirationDate": "string",
"giftCardCode": "string",
"giftCardPin": "string",
"isRegularCustomer": false
},
"primaryPaymentMerchantKey": "string"
}
],
"cost": {
"withTax": 0,
"withTaxWithoutServiceCosts": 0,
"withoutTax": 0,
"tax": {
"vat": {
"amount": 0
}
},
"itemGroups": {},
"appliedFees": [
{
"amount": {
"withTax": 0,
"withoutTax": 0
},
"tax": {
"vat": {
"amount": 0,
"rate": 0
}
},
"category": "string",
"key": "string"
}
]
},
"customer": {
"lastName": "string",
"id": 0,
"referenceKey": "string",
"firstName": "string",
"gender": "f",
"birthDate": "2025-01-01",
"email": "name@example.com",
"phone": "string",
"publicKey": "string",
"title": "string",
"type": "personal",
"groups": [
"string"
]
},
"additionalMetaData": {},
"carrier": {
"carrierKey": "string",
"shippingPolicyKey": "string",
"deliveryDates": {
"maximum": "2025-01-01",
"minimum": "2025-01-01"
}
},
"customData": {},
"ipAddress": "string",
"membershipCard": {
"number": "string",
"type": "string"
}
}
Response
Returns 201 with an object. Read it in later steps with {{createAnOrder.response.data.<field>}}.
{
"id": 0,
"basketKey": "string",
"cost": {
"tax": {
"vat": {
"amount": 0
}
},
"withoutTax": 0,
"withTax": 0,
"withTaxWithMembershipDiscountWithoutServiceCosts": 0,
"hasExternalPrices": false,
"appliedFees": [
{
"amount": {
"withoutTax": 0,
"withTax": 0
},
"category": "payment",
"key": "string",
"option": "string",
"tax": {
"vat": {
"amount": 0,
"rate": 0
}
}
}
],
"appliedReductions": [
{
"amount": {
"absoluteWithTax": 0,
"relative": 0
},
"category": "voucher",
"type": "absolute",
"code": "string",
"displayName": "string"
}
],
"costCapture": 0,
"withoutTaxWithMembershipDiscount": 0,
"itemGroups": {}
},
"currencyCode": "string",
"detailedStatus": {
"billing": {
"code": "string",
"name": "string"
},
"order": {
"code": "string",
"name": "string"
},
"shipping": {
"code": "string",
"name": "string"
}
},
"status": "order_open",
"createdAt": "2025-01-01T00:00:00Z",
"updatedAt": "2025-01-01T00:00:00Z",
"address": {
"billing": {
"id": 0,
"city": "string",
"countryCode": "string",
"isDefault": {
"billing": false,
"shipping": false
},
"recipient": {
"lastName": "string",
"type": "personal",
"firstName": "string",
"gender": "m",
"title": "string"
},
"street": "string",
"zipCode": "string",
"createdAt": "2025-01-01T00:00:00Z",
"updatedAt": "2025-01-01T00:00:00Z",
"additional": "string",
"appId": 0,
"collectionPoint": {
"key": "string",
"type": null,
"customerKey": "string",
"description": "string"
}
},
"shipping": {
"id": 0,
"city": "string",
"countryCode": "string",
"isDefault": {
"billing": false,
"shipping": false
},
"recipient": {
"lastName": "string",
"type": "personal",
"firstName": "string",
"gender": "m",
"title": "string"
},
"street": "string",
"zipCode": "string",
"createdAt": "2025-01-01T00:00:00Z",
"updatedAt": "2025-01-01T00:00:00Z",
"additional": "string",
"appId": 0,
"collectionPoint": {
"key": "string",
"type": null,
"customerKey": "string",
"description": "string"
}
},
"forward": {
"id": 0,
"city": "string",
"countryCode": "string",
"isDefault": {
"billing": false,
"shipping": false
},
"recipient": {
"lastName": "string",
"type": "personal",
"firstName": "string",
"gender": "m",
"title": "string"
},
"street": "string",
"zipCode": "string",
"createdAt": "2025-01-01T00:00:00Z",
"updatedAt": "2025-01-01T00:00:00Z",
"additional": "string",
"appId": 0,
"collectionPoint": {
"key": "string",
"type": null,
"customerKey": "string",
"description": "string"
}
}
},
"campaignKey": "string",
"channel": {
"id": 0,
"key": "string",
"name": "string",
"type": "marketplace"
},
"confirmedAt": "2025-01-01T00:00:00Z"
}
Need more? See the SCAYLE Storefront guide for connection setup and behaviour shared by every action.
Was this page helpful?