younifyd
Menu

Create a new price rounding

Create a new price rounding

POST/shops/{shopKey}/countries/{countryCode}/price-roundings

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Create a new price rounding action (under ShopCountryPriceRoundings).
  3. Fill in the fields below, then reference the result from later steps as {{createANewPriceRounding.response.data}}.

Request

Path parameters

shopKeystringrequired

The shop key.

countryCodestringrequired

The shop country code; use shop country ID instead of country code when a country is ambiguous within a shop.

Request body

Enter the body as JSON in the step's Body field.

idinteger

The ID of the price rounding created by SCAYLE.

currencyCodestringrequired

Currency code in ISO 4217 format.

precisionstringrequired

The precision that should be applied to a price, ENUM of "1.00", "5.00", "0.50", "0.05", "0.01", "0.99", "0.95", "0.90".

One of1.005.000.500.050.010.990.950.90

roundingTypestringrequired

The rounding type that should be used when rounding a price.

One ofnearestupdown

json
{
  "currencyCode": "EUR",
  "precision": "1.00",
  "roundingType": "nearest",
  "id": 1
}

Response

Returns 201 with an object. Read it in later steps with {{createANewPriceRounding.response.data.<field>}}.

idinteger

The ID of the price rounding created by SCAYLE.

currencyCodestring

Currency code in ISO 4217 format.

precisionstring

The precision that should be applied to a price, ENUM of "1.00", "5.00", "0.50", "0.05", "0.01", "0.99", "0.95", "0.90".

One of1.005.000.500.050.010.990.950.90

roundingTypestring

The rounding type that should be used when rounding a price.

One ofnearestupdown

json
{
  "currencyCode": "EUR",
  "precision": "1.00",
  "roundingType": "nearest",
  "id": 1
}

Need more? See the SCAYLE Admin guide for connection setup and behaviour shared by every action.

Create a new price rounding — SCAYLE Admin — Documentation