PayMongo Checkout Sessions API

The Checkout Sessions API from PayMongo — 3 operation(s) for checkout sessions.

Operations 3

POST /checkout_sessions Create a Checkout Session (Hosted Checkout) #
GET /checkout_sessions/{id} Retrieve a Checkout Session #
POST /checkout_sessions/{id}/expire Expire a Checkout Session #

Documentation

📖
Documentation
https://docs.paymongo.com/docs/payment-acceptance-introduction
📖
APIReference
https://docs.paymongo.com/reference/create-a-paymentintent
📖
APIReference
https://docs.paymongo.com/reference/create-a-paymentmethod
📖
APIReference
https://docs.paymongo.com/reference/list-all-payments
📖
Documentation
https://docs.paymongo.com/docs/older-workflows
📖
Documentation
https://docs.paymongo.com/docs/payment-channels-hosted-checkout
📖
APIReference
https://docs.paymongo.com/reference/create_checkout_sessions
📖
Documentation
https://docs.paymongo.com/docs/payment-channels-payment-links
📖
APIReference
https://docs.paymongo.com/reference/post_v1-payment-links
📖
Documentation
https://docs.paymongo.com/docs/payment-acceptance-card-vaulting
📖
APIReference
https://docs.paymongo.com/reference/retrieve-customer
📖
Documentation
https://docs.paymongo.com/docs/payment-acceptance-refunds
📖
Documentation
https://docs.paymongo.com/docs/payment-acceptance-qr-ph
📖
APIReference
https://docs.paymongo.com/reference/generate-mpm-qr
📖
Documentation
https://docs.paymongo.com/docs/developer-tools-webhooks
📖
APIReference
https://docs.paymongo.com/reference/create-a-webhook
📖
Documentation
https://docs.paymongo.com/docs/payment-acceptance-subscriptions
📖
APIReference
https://docs.paymongo.com/reference/create-a-subscription
📖
Documentation
https://docs.paymongo.com/docs/money-movement-moving-money-with-api
📖
APIReference
https://docs.paymongo.com/reference/transfer-resource
📖
Documentation
https://docs.paymongo.com/docs/money-movement-forex
📖
APIReference
https://docs.paymongo.com/reference/quote-resource
📖
APIReference
https://docs.paymongo.com/reference/fraud-detection-overview

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/paymongo-checkout-sessions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

paymongo-checkout-sessions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PayMongo Checkout Sessions API
  description: PayMongo is a Philippine payments platform. The REST API lets businesses accept payments via cards, GCash, Maya (PayMaya), GrabPay, ShopeePay, QR Ph, BillEase (buy-now-pay-later), and direct online banking, using the Payment Intent / Payment Method workflow, hosted Checkout Sessions, Payment Links, Customers, Refunds, and Webhooks. All amounts are integers in centavos (1 PHP = 100). PHP is the only settlement currency (card intents may optionally be switched to USD).
  version: '2020-08-08'
  termsOfService: https://www.paymongo.com/terms
  contact:
    name: PayMongo Developer Support
    email: support@paymongo.com
    url: https://docs.paymongo.com
servers:
- url: https://api.paymongo.com/v1
  description: Production (live and test mode selected by API key prefix)
security:
- basicAuth: []
tags:
- name: Checkout Sessions
paths:
  /checkout_sessions:
    post:
      operationId: createCheckoutSession
      tags:
      - Checkout Sessions
      summary: Create a Checkout Session (Hosted Checkout)
      description: Creates a PayMongo-hosted checkout page. Returns checkout_url to which the customer is redirected.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckoutSessionCreate'
      responses:
        '200':
          description: Checkout Session created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericResource'
        '400':
          $ref: '#/components/responses/Error'
  /checkout_sessions/{id}:
    get:
      operationId: retrieveCheckoutSession
      tags:
      - Checkout Sessions
      summary: Retrieve a Checkout Session
      parameters:
      - $ref: '#/components/parameters/ResourceId'
      responses:
        '200':
          description: Checkout Session
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericResource'
        '404':
          $ref: '#/components/responses/Error'
  /checkout_sessions/{id}/expire:
    post:
      operationId: expireCheckoutSession
      tags:
      - Checkout Sessions
      summary: Expire a Checkout Session
      parameters:
      - $ref: '#/components/parameters/ResourceId'
      responses:
        '200':
          description: Checkout Session expired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericResource'
components:
  parameters:
    ResourceId:
      name: id
      in: path
      required: true
      schema:
        type: string
      description: The identifier of the resource (e.g. pi_..., pm_..., pay_...).
  responses:
    Error:
      description: Error response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  schemas:
    ErrorResponse:
      type: object
      properties:
        errors:
          type: array
          items:
            type: object
            properties:
              code:
                type: string
              detail:
                type: string
              source:
                type: object
                properties:
                  pointer:
                    type: string
                  attribute:
                    type: string
    GenericResource:
      type: object
      properties:
        data:
          type: object
          properties:
            id:
              type: string
            type:
              type: string
            attributes:
              type: object
              additionalProperties: true
    CheckoutSessionCreate:
      type: object
      required:
      - data
      properties:
        data:
          type: object
          properties:
            attributes:
              type: object
              required:
              - line_items
              - payment_method_types
              properties:
                line_items:
                  type: array
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                      quantity:
                        type: integer
                      amount:
                        type: integer
                      currency:
                        type: string
                        example: PHP
                payment_method_types:
                  type: array
                  items:
                    type: string
                    enum:
                    - card
                    - gcash
                    - grab_pay
                    - paymaya
                    - billease
                    - dob
                    - qrph
                success_url:
                  type: string
                cancel_url:
                  type: string
                description:
                  type: string
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: HTTP Basic authentication. Provide your API key as the Basic-auth username (secret key sk_test_* / sk_live_* for server-side calls; for calls that accept the public key pk_test_* / pk_live_*, the public key goes in the username field). The password field is left blank unless a call requires both keys.