Make a new webhook secret
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.
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.
partnerApiKeyAuthorizationBearer <token>The partner's API key.
application/json- response
data*curl -X POST 'https://api-stg.grailnetwork.com/partner/webhook/secret'{ "data": { "url": "string", "secretMadeAt": "2019-08-24T14:15:22Z", "secret": "string" }}List your statements GET
One statement for each closed UTC day from `from` to `to`, both included, the newest first, also the days with no line. A statement sums the lines recorded on its day. A day is closed at 00:01 UTC of the next day. With neither end: the last 30 closed days. With `from` only: from `from` to the last closed day. With `to` only: the 30 days that end on `to`. Errors: - 400 `VALIDATION_FAILED`: `from` is after `to`, or the range has more than 31 days. - 409 `PARTNER_STATEMENT_DAY_NOT_CLOSED`: a day of the range is not closed yet.
Read your partner record GET
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.