Skip to main content
WEBHOOK

Authorizations

Authorization
string
header
required

Send your API key as Authorization: ApiKey pc_<your-key>. The API also accepts the key without the ApiKey prefix. API keys authenticate requests to /api/partner/v1/*. Contact GroGov support to rotate your key or deactivate your API account. Rotation invalidates the previous key. Account deactivation blocks both API keys and access tokens.

Headers

GroGov-Signature
string
required

t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>", keyed with your endpoint secret>

GroGov-Event-Id
string
required
GroGov-Event-Type
string
required

Body

application/json

A GroGov staff member refunded one of your payments.

id
string
required

Event id, the same on every delivery attempt. Use it to identify duplicate deliveries.

Example:

"evt_3f2a9c0d1b8e4f6a7c5d2e1f0a9b8c7d"

type
enum<string>
required
Available options:
payment.refunded
createdAt
string<date-time>
required
data
object
required

Response

2XX

Received. Any other status, or no answer within 10 seconds, is retried.