docs
  1. Resources
  2. Merchants
  3. Create A New Merchant

Create a new merchant

v1.204.1
OpenAPI 3.0.3

This is the specification of the SCAYLE Admin API.

For more information about how to interact with the Admin API, you can read the respective developer guide. The developer guide includes code samples for our PHP SDK, for our Java SDK and for JavaScript and curl.

Authentication is done via X-Access-Token HTTP Header as described here.

Base url should be prefixed with /api/admin/v1.

If a client side timeout is deemed necessary, it is recommended to set it at a minimum of 380 seconds.

Server:https://{tenant-space}.admin.api.scayle.cloud/v1
Client Libraries

Merchants

​

Merchants

Merchants Operations

Create a new merchant

​

This endpoint can be used to create a new merchant. See more details in the Developer Guide.

Query Parameters

  • Comma-separated list of additional properties that should be included in the response.

    values
    contactsreturnAddressescarrierswarehousescustomData

Body·

required
application/json
  • Name of the merchant.

  • Reference key of the merchant.

  • URL to send order cancellation requests.

  • custom data of an entity

    Properties: 1
  • URL to send order delegation requests to the merchants.

  • Priority of the merchant.

Responses

  • application/json
  • application/json
  • application/json
Request Example for post/merchants
let newMerchant = {
    name: "ACME",
    referenceKey: "acme",
    priority: 1,
    orderDelegationUrl: "https://www.acme.com/order",
    cancellationUrl: "https://www.acme.com/cancellation",
};

let response = await client.apis.Merchants.createMerchant({}, {requestBody: newMerchant});
let createdMerchant = response.body;

console.log(createdMerchant.id);

{
  "id": 1,
  "referenceKey": "acme",
  "name": "ACME",
  "priority": 1,
  "orderDelegationUrl": "https://acme.com/order-service/delegate-order",
  "cancellationUrl": "https://acme.com/order-service/cancel-order"
}

Models

​
​
​

Last updated: December 02, 2026