API / Developers
Webhooks
Event subscriptions and the event log.
GET
bearerAuthheader
AuthorizationBearer <token>A merchant API key (gg_...). Each key is limited to its granted scopes.
Subscriptions
application/json- response
data*array<>curl -X GET 'https://engine-sandbox.globagift.io/v1/webhook-subscriptions'Example Response
{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "url": "http://example.com", "types": [ "string" ], "status": "string", "created_at": "2019-08-24T14:15:22Z" } ]}POST
Retries: not idempotent. After an unclear failure, read the current state before trying again.
bearerAuthheader
AuthorizationBearer <token>A merchant API key (gg_...). Each key is limited to its granted scopes.
application/json- body
url*stringtypes*array<string>Subscription created
application/json- response
id*stringFormat
uuidurl*stringFormat
uritypes*array<string>status*stringcreated_at*stringFormat
date-timecurl -X POST 'https://engine-sandbox.globagift.io/v1/webhook-subscriptions' \ -H 'Content-Type: application/json' \ -d '{ "url": "string", "types": [ "string" ]}'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "url": "http://example.com", "types": [ "string" ], "status": "string", "created_at": "2019-08-24T14:15:22Z", "secret": "string"}DELETE
Retries: not idempotent. After an unclear failure, read the current state before trying again.
bearerAuthheader
AuthorizationBearer <token>A merchant API key (gg_...). Each key is limited to its granted scopes.
id*stringDeleted
curl -X DELETE 'https://engine-sandbox.globagift.io/v1/webhook-subscriptions/string'Example Response
Empty
GET
bearerAuthheader
AuthorizationBearer <token>A merchant API key (gg_...). Each key is limited to its granted scopes.
after_cursor?stringtypes?stringlimit?integerRange
1 <= value <= 100Default
50Events page
application/json- response
data*array<>next_cursor*|nullcurl -X GET 'https://engine-sandbox.globagift.io/v1/events'Example Response
{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "type": "string", "created_at": "2019-08-24T14:15:22Z", "data": {} } ], "next_cursor": "a7ec8888-a9c3-4732-a281-9a08510f220b"}