Prices
The market price, your price adjustment, and the price of a card.
Each card has a market price. Grail Network reads it from the market, and it changes over time. You set a price adjustment for each card: a share of the market price, up or down.
The formula
price = market price × (1 + price adjustment)Grail Network rounds the price to the cent, and a half cent goes up.
An example: the market price is $33.33, and the adjustment is "0.05". 33.33 × 1.05 = 34.9965, so the price is
$35.00.
The adjustment is a decimal number as text, with at most 4 decimals, such as "-0.05" or "0.1". Its range is
priceAdjustment.min to priceAdjustment.max of GET /partner/me.
When a card goes on sale
A card goes on sale (available) when it has a market price and a price adjustment. A new card has no adjustment, so
it waits for yours. Each change of the market price changes the card's price, and you get the webhook
partner-item.changed.
Set the adjustment
PATCH /partner/items/{itemId}{ "priceAdjustment": "0.05" }The answer is the card with its new priceAdjustment and price. The same value again changes nothing.
| Code | Status | When |
|---|---|---|
VALIDATION_FAILED | 400 | The value is not a decimal with at most 4 decimals, or it is outside the range |
PARTNER_ITEM_NOT_FOUND | 404 | You have no card with this id |
PARTNER_ITEM_TAKEN_BACK | 409 | You asked to take the card back |
PARTNER_ITEM_SOLD | 409 | The card is sold. It can no longer change |
SERVICE_UNAVAILABLE | 503 | A part of Grail Network gave no answer. Send it again after Retry-After seconds |