Globagift Docs
API / Developers

Webhooks

Event subscriptions and the event log.

GET
/v1/webhook-subscriptions

Authorization

bearerAuth
headerAuthorizationBearer <token>

A merchant API key (gg_...). Each key is limited to its granted scopes.

Response Body

Subscriptions

application/json
  1. response
data*array<>
Example Request
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
/v1/webhook-subscriptions

Retries: not idempotent. After an unclear failure, read the current state before trying again.

Authorization

bearerAuth
headerAuthorizationBearer <token>

A merchant API key (gg_...). Each key is limited to its granted scopes.

Request Body

application/json
  1. body
url*string
types*array<string>

Response Body

Subscription created

application/json
  1. response
id*string
Formatuuid
url*string
Formaturi
types*array<string>
status*string
created_at*string
Formatdate-time
Example Request
curl -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
/v1/webhook-subscriptions/{id}

Retries: not idempotent. After an unclear failure, read the current state before trying again.

Authorization

bearerAuth
headerAuthorizationBearer <token>

A merchant API key (gg_...). Each key is limited to its granted scopes.

Path Parameters

id*string

Response Body

Deleted

Example Request
curl -X DELETE 'https://engine-sandbox.globagift.io/v1/webhook-subscriptions/string'
Example Response
Empty
GET
/v1/events

Authorization

bearerAuth
headerAuthorizationBearer <token>

A merchant API key (gg_...). Each key is limited to its granted scopes.

Query Parameters

after_cursor?string
types?string
limit?integer
Range1 <= value <= 100
Default50

Response Body

Events page

application/json
  1. response
data*array<>
next_cursor*|null
Example Request
curl -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"}