Read your partner record
Your id, name and code at Grail Network, your webhook address, the notice of a take-back request today, and the range of the price adjustment that you may set on a card.
Your id, name and code at Grail Network, your webhook address, the notice of a take-back request today, and the range of the price adjustment that you may set on a card.
partnerApiKeyAuthorizationBearer <token>The partner's API key.
application/json- response
data*curl -X GET 'https://api-stg.grailnetwork.com/partner/me'{ "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "code": "string", "webhookUrl": "string", "takeBackNoticeHours": 0, "priceAdjustment": { "min": "string", "max": "string" } }}Make a new webhook secret POST
Makes a new secret that signs your webhooks, and shows it in this answer once. The old secret stops at once: Grail Network signs the next try of every webhook with the new one. Errors: - 409 `PARTNER_WEBHOOK_NOT_SET`: you have no webhook address. Set one first: it makes a secret.
Set the price adjustment of a card PATCH
Sets the price of the card in relation to its market price: from "-0.10" (10% below) to "0.10" (10% above), with at most four decimals. A card goes on sale in packs when it has a price adjustment and a market price. The same value again changes nothing. No money moves. Errors: - 400 `VALIDATION_FAILED` at `priceAdjustment`: not a decimal with at most four decimals, or outside the range. - 404 `PARTNER_ITEM_NOT_FOUND`: you have no card with this id. - 409 `PARTNER_ITEM_TAKEN_BACK`: the card has a take-back request, so its price stays as it is. - 409 `PARTNER_ITEM_SOLD`: the card is sold. - 503 `SERVICE_UNAVAILABLE` with the header `Retry-After: 5`: a system that this request needs gave no answer. Send the same request again after 5 seconds.