Coinbase Billing

Create Payment Link

Changed on

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.

post/api/v1/billing/coinbase/payment-links

Request

  • The document declares no server URL.
  • Auth
    • OAuth 2
      Authorization codehttps://auth.mor.org/oauth2/authorize
      Token URLhttps://auth.mor.org/oauth2/token
      Scopesaws.cognito.signin.user.admin, openid, email, profile
    • or HTTP bearer

Request body

amountstring required

Payment amount (e.g., '100.00')

currencystring

Currency code (currently only USDC)

metadataobject

Key-value pairs passed through the payment flow

descriptionstring

Description shown on the payment page

success_redirect_urlstring

HTTPS URL to redirect on success

failure_redirect_urlstring

HTTPS URL to redirect on failure

expires_atstring

ISO 8601 timestamp when the link expires

Response

Successful Response

idstring required

Payment link ID (24-char hex)

urlstring

Payment link URL

statusstring

ACTIVE, COMPLETED, EXPIRED, or DEACTIVATED

amountstring
currencystring
descriptionstring
metadataobject
createdAtstring
updatedAtstring
expiresAtstring

Changes