Introducing Starknet Network:   OffRamp and OnRamp USDC are now supported for Starknet network.  View changelog for details →.
Sphere Paysphere
Event

Get an Event by ID

GET
/v1/event/{event_id}
AuthorizationBearer <token>

In: header

Path Parameters

event_idstring

The id of the event

Response Body

curl -X GET "https://api.sandbox.spherepay.co/v1/event/{{event_id}}"
fetch("https://api.sandbox.spherepay.co/v1/event/{{event_id}}")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://api.sandbox.spherepay.co/v1/event/{{event_id}}"

  req, _ := http.NewRequest("GET", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://api.sandbox.spherepay.co/v1/event/{{event_id}}"

response = requests.request("GET", url)

print(response.text)
{
  "ok": true,
  "object": "object",
  "statusCode": 200,
  "error": null,
  "message": "success",
  "data": {
    "event": {
      "id": "event_3ced8f24b05941218cac61a923d0b993",
      "name": "paymentLink.create",
      "data": {
        "paymentLink": {
          "id": "paymentLink_a016ae165c0a440b9f6b2cb683a982c8",
          "end": null,
          "url": "https://spherepay.co/pay/paymentLink_a016ae165c0a440b9f6b2cb683a982c8",
          "meta": {},
          "name": "",
          "start": null,
          "coupon": null,
          "phases": [],
          "created": "2025-01-22T20:04:05.470Z",
          "failUrl": "",
          "taxRate": null,
          "updated": "2025-01-22T20:04:05.470Z",
          "wallets": [],
          "features": {
            "requiresName": false,
            "requiresEmail": false,
            "requiresShippingDetails": false
          },
          "lineItems": [
            {
              "price": "price_7dcbbd7fdff1463885a89cfbe99364fd",
              "created": "2025-01-22T20:04:05.470Z",
              "product": "product_686a47eb809448a8a64157ec447fcf3a",
              "updated": "2025-01-22T20:04:05.470Z",
              "quantity": 1,
              "amountTotal": null,
              "quantityLabel": "",
              "paymentCurrency": null,
              "quantityMutable": false
            }
          ],
          "successUrl": "",
          "description": "",
          "disableSwaps": false,
          "shippingRate": null,
          "cctpSourceNetworks": null,
          "discordConstraints": []
        }
      },
      "webhookRecords": [],
      "mock": false,
      "updated": "2025-01-22T20:04:05.500Z",
      "created": "2025-01-22T20:04:05.500Z"
    }
  },
  "ts": "2025-04-20T21:16:58.155Z",
  "request": "request_c999a0d8fbf1484d83edb63a826d5007"
}