Payment pages

Create payment page

Creates a new payment page.

POST
/payment_pages

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

code*string

Unique code for the payment page.

name*string

Name of the payment page.

type*string

Type of payment page.

Value in"subscription"
status?string

Status of the payment page.

Value in"draft" | "active" | "archived"
description?string|null

Description of the payment page.

plan_id?string|null

ID of the plan associated with the payment page. Required if type is subscription.

slug?string

URL-friendly identifier for the payment page.

Response Body

application/json

curl -X POST "https://api.sandbox.billingrails.com/v1/payment_pages" \  -H "Content-Type: application/json" \  -d '{    "type": "subscription",    "name": "My Subscription Page",    "status": "active",    "slug": "my-subscription-page",    "description": "A payment page for subscriptions.",    "plan_id": "plan_IhMUl3rrZ3"  }'
{
  "payment_page": {
    "type": "subscription",
    "id": "paypg_IhMUl3rrZ3",
    "name": "My Subscription Page",
    "status": "active",
    "description": "A payment page for subscriptions.",
    "slug": "my-subscription-page",
    "hosted_url": "https://billingrails.page/acme/pay/my-subscription-page",
    "return_url": null,
    "created_at": "2025-02-14T17:33:40.843Z"
  },
  "meta": {
    "request_id": "req_IhMUl3rrZ3"
  }
}