Give Pay Documentation
API Reference

Overview

REST API documentation for GivePay payment sessions

Overview

The GivePay API allows you to create and manage payment sessions programmatically. Use these endpoints to integrate GivePay payments directly into your application.

Base URL

https://api.givepay.co/api/v1

Authentication

All API requests require an API key passed in the Authorization header. Both forms are accepted:

Authorization: Bearer YOUR_API_KEY
Authorization: YOUR_API_KEY

API key prefixes:

PrefixEnvironmentUse
gp_test_pk_...SandboxPublic publishable key, safe to embed client-side
gp_test_sk_...SandboxSecret key, server-side only
gp_live_pk_...LivePublic publishable key, safe to embed client-side
gp_live_sk_...LiveSecret key, server-side only

You can obtain and rotate keys from the GivePay dashboard.

Environments

The API key prefix determines the environment — there is no separate base URL. Sandbox traffic is isolated from live traffic.

Endpoints

MethodEndpointDescription
POST/payment-session/checkoutCreate a payment session and get a checkout URL
GET/payment-session/:slugRetrieve payment session details
PATCH/payment-session/:slugUpdate a pending payment session (e.g. tip, payer, metadata)
GET/subscription/:slugRetrieve subscription details
PATCH/subscription/:slugUpdate an active subscription

Webhook events deliver real-time updates about payments, refunds, and subscriptions — see the Webhooks section.