Payment Initiation

The Payment Initiation API generates checkout payment links that redirect end users to complete bank-based payments. UrbanpayX validates the transaction details, creates a pending transaction record, and calls the API to produce a secure checkout link. All endpoints use the /api/v1/checkout base path.

Endpoints

MethodEndpointDescription
POST/api/v1/checkout/paylinkGenerate a checkout payment link for a new transaction

Payment Flow

  1. Generate link — Call POST /paylink with the transaction amount, currency, user ID, and project ID. UrbanpayX creates a transaction in pending status and returns a checkout URL.
  2. Redirect user — Direct the end user to the returned checkout URL. The user selects their bank and authorizes the payment.
  3. Payment processing — Processes the bank payment. The transaction status moves from pending to processing.
  4. Completion — Once the bank confirms the payment, the status updates to success or failed. The user is redirected to the project's configured payment_return_url.
  5. Webhook notification — UrbanpayX sends a payment.status_changed webhook event for each status transition.

Related APIs

APIUsage
TransactionsQuery transaction status via GET /api/v1/transactions/{transaction_id} or force a status refresh via POST /refresh-status
KYC VerificationUsers must pass KYC verification before initiating a payment
ProjectsEach payment link is scoped to a project, which defines the callback URL and associated operation company

Prerequisites

Before generating a payment link, ensure:

  1. Your callback URL is configured — PUT /auth/client/settings
  2. Your OpCo is activated — the project's OpCo must have status: activated
  3. The user exists and is verifiedkyc_status: approved (UrbanPayX KYC) or external_verification_status: verified (external attestation)
  4. Payment link generation is enabled for your client

Required roles

OWNER or OPERATIONS — DEVELOPER role cannot generate payment links. API key tokens (which default to OPERATIONS) can generate payment links. See Roles and Permissions.

Related guides