---
title: "Create Payment Link"
method: POST
path: "/api/v1/billing/coinbase/payment-links"
tags: ["Coinbase Billing"]
---

# Create Payment Link

`POST /api/v1/billing/coinbase/payment-links`

## Request

- The document declares no server URL.
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://auth.mor.org/oauth2/authorize`
    - Token URL: `https://auth.mor.org/oauth2/token` scopes: `aws.cognito.signin.user.admin`, `openid`, `email`, `profile`
  - HTTP bearer

Create a Coinbase Business Payment Link for the authenticated user.

Creates a USDC payment link via the Coinbase Business API.
The user_id is automatically added to metadata so the webhook
can credit the correct account.

## Request body

- CreatePaymentLinkRequest: Request to create a new Coinbase Payment Link.
  - `amount` string, required: Payment amount (e.g., '100.00')
  - `currency` string: Currency code (currently only USDC)
  - `metadata` object: Key-value pairs passed through the payment flow
  - `description` string: Description shown on the payment page
  - `success_redirect_url` string: HTTPS URL to redirect on success
  - `failure_redirect_url` string: HTTPS URL to redirect on failure
  - `expires_at` string: ISO 8601 timestamp when the link expires

## Response `200`

Successful Response

- PaymentLinkResponse: Response from the Coinbase Payment Link API.
  - `id` string, required: Payment link ID (24-char hex)
  - `url` string: Payment link URL
  - `status` string: ACTIVE, COMPLETED, EXPIRED, or DEACTIVATED
  - `amount` string
  - `currency` string
  - `description` string
  - `metadata` object
  - `createdAt` string
  - `updatedAt` string
  - `expiresAt` string

## Other responses

- `422`: Validation Error

## Changes

- **2026-05-22** `6059f99c1875`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/morpheusais/apis/morpheus-api-gateway/changes/api/v1/billing/coinbase/payment-links/post.md)

---

[API](https://skmtc.dev/morpheusais/apis/morpheus-api-gateway.md) - [All operations](https://skmtc.dev/morpheusais/apis/morpheus-api-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/morpheusais/apis/morpheus-api-gateway/revisions/6059f99c1875?raw)
