---
updatedAt: 2026-09-24T09:35:42.000Z
agentTools:
  projectIndex: https://developers.cloudbeds.com/llms.txt
---

# Create a payment or authorization

Creates a payment with the specified capture mode. Use 'auto' for immediate charge, 'manual' for authorization only.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Cloudbeds API v2",
    "description": "<p>Welcome to the documentation for <strong>Cloudbeds API Version v2</strong>! If you are looking to learn how to use the Cloudbeds API to access guest information, reservations, or similar data for your Cloudbeds customers, then you've come to the right place.</p><p>In this document you will find all the API methods we provide along with explanations for parameters and response examples.</p><p>If you have questions about different implementation steps (e.g. how to implement OAuth 2.0), please refer to our <a href='https://integrations.cloudbeds.com/hc/en-us'>Integrations Portal</a>.</p><p>Be sure to <a href='https://go.pardot.com/l/308041/2018-07-24/qb2lg'>subscribe</a> to the monthly Cloudbeds API announcement mailing list to receive information on new additions and improvements to the Cloudbeds API and related developer tools.</p><p><strong>Endpoint:</strong> https://api.cloudbeds.com/{method}</p><p><strong>HTTPS:</strong> Our API requires HTTPS. We'll respond with an appropriate error if you're not using it.</p><p><strong>Request Format:</strong> HTTP GET, POST, PUT, PATCH and DELETE; request bodies are JSON (Content-Type: application/json)</p><p><strong>Response Format:</strong> JSON</p><p><strong>Response Header:</strong> X-Request-ID is added to response headers in all calls to help accelerate support and troubleshooting.</p><p><strong><a href='https://integrations.cloudbeds.com/hc/en-us/articles/14104678058267-API-Documentation#postman-collection'><img src='https://run.pstmn.io/button.svg' alt='Run in Postman'></a></strong> use this link to access our Public collection in Postman.</p>",
    "version": "v2"
  },
  "servers": [
    {
      "url": "https://api.cloudbeds.com/",
      "description": "Cloudbeds API v2"
    }
  ],
  "paths": {
    "/payments/v1/payments": {
      "post": {
        "tags": [
          "Payments"
        ],
        "summary": "Create a payment or authorization",
        "description": "Creates a payment with the specified capture mode. Use 'auto' for immediate charge, 'manual' for authorization only.",
        "operationId": "createPayment",
        "parameters": [
          {
            "name": "x-property-id",
            "in": "header",
            "description": "A numeric, comma-separated string representing the property IDs, sent in the header.",
            "required": true,
            "schema": {
              "type": "string",
              "example": "1,2,3"
            }
          }
        ],
        "requestBody": {
          "description": "Payment creation request",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePaymentRequestSchema"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Payment created successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatePaymentResponseSchema"
                }
              }
            }
          },
          "400": {
            "description": "Bad request - invalid parameters or validation errors",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestResponseSchema"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden - insufficient permissions",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenResponseSchema"
                }
              }
            }
          },
          "404": {
            "description": "Not found - inventory object not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundResponseSchema"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerErrorResponseSchema"
                }
              }
            }
          }
        },
        "security": [
          {
            "default": [
              "write:payment"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "BadRequestErrorItemSchema": {
        "required": [
          "field",
          "message"
        ],
        "properties": {
          "field": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "code": {
            "description": "Error code identifying the specific validation failure",
            "type": "string",
            "example": "GROUP_CUSTOM_RATE_NOT_ALLOWED",
            "nullable": true
          },
          "details": {
            "description": "Additional details about the validation failure",
            "type": "object",
            "nullable": true
          }
        },
        "type": "object"
      },
      "BadRequestErrorListSchema": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/BadRequestErrorItemSchema"
        }
      },
      "BadRequestResponseSchema": {
        "required": [
          "message"
        ],
        "properties": {
          "message": {
            "type": "string"
          },
          "errors": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/BadRequestErrorListSchema"
              }
            ],
            "nullable": true,
            "description": "The list of errors"
          },
          "code": {
            "description": "Error code identifying the type of error",
            "type": "string",
            "example": "INVALID_REQUEST",
            "nullable": true
          }
        },
        "type": "object"
      },
      "ForbiddenResponseSchema": {
        "properties": {
          "message": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "InternalServerErrorResponseSchema": {
        "required": [
          "message"
        ],
        "properties": {
          "message": {
            "type": "string"
          },
          "code": {
            "description": "Error code identifying the type of error",
            "type": "string",
            "example": "PAYMENT_VOID_FAILED",
            "nullable": true
          }
        },
        "type": "object"
      },
      "MoneySchema": {
        "description": "Money representation with amount in smallest currency unit and ISO 4217 currency code",
        "required": [
          "amount",
          "currencyCode"
        ],
        "properties": {
          "amount": {
            "description": "Amount in the smallest representable units of the currency (e.g., cents for USD). For example, USD $124.39 would be \"12439\".",
            "type": "string",
            "example": "12439"
          },
          "currencyCode": {
            "description": "ISO 4217 currency code",
            "type": "string",
            "example": "USD"
          }
        },
        "type": "object"
      },
      "NotFoundResponseSchema": {
        "properties": {
          "message": {
            "type": "string"
          },
          "code": {
            "description": "Error code identifying the type of error",
            "type": "string",
            "example": "RESOURCE_NOT_FOUND",
            "nullable": true
          }
        },
        "type": "object"
      },
      "InventoryObjectType": {
        "description": "The type of inventory object",
        "type": "string",
        "enum": [
          "reservation",
          "house_account",
          "group_profile",
          "accounts_receivable_ledger"
        ]
      },
      "CaptureModeSchema": {
        "description": "The capture mode for the payment",
        "type": "string",
        "enum": [
          "auto",
          "manual"
        ]
      },
      "CreatePaymentRequestSchema": {
        "required": [
          "captureMode",
          "total",
          "inventoryObject",
          "paymentMethod",
          "redirectUrl"
        ],
        "properties": {
          "captureMode": {
            "$ref": "#/components/schemas/CaptureModeSchema"
          },
          "total": {
            "$ref": "#/components/schemas/MoneySchema"
          },
          "redirectUrl": {
            "description": "URL to redirect the user to after 3D Secure authentication or other payment actions",
            "type": "string",
            "example": "https://example.com/payment/callback"
          },
          "inventoryObject": {
            "$ref": "#/components/schemas/InventoryObjectSchema"
          },
          "paymentMethod": {
            "$ref": "#/components/schemas/PaymentMethodSchema"
          },
          "description": {
            "description": "Optional payment description that appears in the folio.",
            "type": "string",
            "example": "Deposit",
            "nullable": true
          }
        },
        "type": "object"
      },
      "InventoryObjectSchema": {
        "required": [
          "type",
          "id"
        ],
        "properties": {
          "type": {
            "$ref": "#/components/schemas/InventoryObjectType"
          },
          "id": {
            "description": "The ID of the inventory object",
            "type": "string",
            "example": "12345"
          }
        },
        "type": "object"
      },
      "PaymentMethodSchema": {
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "$ref": "#/components/schemas/PaymentMethodTypeSchema"
          },
          "sdkToken": {
            "description": "SDK token (cbpm1_*) generated by the Cloudbeds Payment SDK. Required when type is 'sdk_token'.",
            "type": "string",
            "example": "cbpm1_abc123def456",
            "nullable": true
          },
          "paymentMethodId": {
            "description": "A stored payment method, as a UUID. Either a Cloudbeds permanent card token issued by POST /vault/v1/tokens/card, or the paymentMethodId returned in a previous response from this endpoint. Required when type is 'payment_method_id'.",
            "type": "string",
            "format": "uuid",
            "example": "550e8400-e29b-41d4-a716-446655440000",
            "nullable": true
          }
        },
        "type": "object"
      },
      "PaymentMethodTypeSchema": {
        "description": "The type of payment method",
        "type": "string",
        "enum": [
          "sdk_token",
          "payment_method_id"
        ]
      },
      "CardDetailsResponseSchema": {
        "required": [
          "last4",
          "brand"
        ],
        "properties": {
          "last4": {
            "description": "The last 4 digits of the card number",
            "type": "string",
            "example": "4242"
          },
          "brand": {
            "description": "The card brand",
            "type": "string",
            "example": "visa"
          },
          "paymentMethodId": {
            "description": "Identifier of the stored payment method, reusable as paymentMethod.paymentMethodId on a later request. Null when the payment did not store a card.",
            "type": "string",
            "format": "uuid",
            "example": "10000000-0000-0000-0000-000000000070",
            "nullable": true
          }
        },
        "type": "object"
      },
      "CreatePaymentResponseSchema": {
        "properties": {
          "paymentStatus": {
            "$ref": "#/components/schemas/PaymentStatus"
          },
          "paymentId": {
            "description": "The ID of the created payment",
            "type": "string",
            "example": "12345"
          },
          "paymentMethodDetails": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PaymentMethodDetailsResponseSchema"
              }
            ],
            "nullable": true,
            "description": "Payment method details"
          },
          "nextAction": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/NextActionResponseSchema"
              }
            ],
            "nullable": true,
            "description": "Next action required, such as a redirect for 3D Secure"
          }
        },
        "type": "object"
      },
      "NextActionType": {
        "description": "The type of next action required",
        "type": "string",
        "enum": [
          "redirect"
        ]
      },
      "PaymentMethodType": {
        "description": "The type of payment method used",
        "type": "string",
        "enum": [
          "card"
        ]
      },
      "PaymentStatus": {
        "description": "The payment status from the payment processor",
        "type": "string",
        "enum": [
          "successful",
          "failed",
          "pending",
          "canceled",
          "unconfirmed",
          "expired",
          "scheduled"
        ]
      },
      "NextActionResponseSchema": {
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "$ref": "#/components/schemas/NextActionType"
          },
          "redirect": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/RedirectResponseSchema"
              }
            ],
            "nullable": true,
            "description": "Redirect details when type is 'redirect'"
          }
        },
        "type": "object"
      },
      "PaymentMethodDetailsResponseSchema": {
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "$ref": "#/components/schemas/PaymentMethodType"
          },
          "card": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/CardDetailsResponseSchema"
              }
            ],
            "nullable": true,
            "description": "Card details when the payment method is a card"
          }
        },
        "type": "object"
      },
      "RedirectResponseSchema": {
        "required": [
          "redirectUrl"
        ],
        "properties": {
          "redirectUrl": {
            "description": "The URL to redirect the user to for authentication",
            "type": "string",
            "example": "https://payments.cloudbeds.com/3d_secure_2/authenticate"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "default": {
        "type": "oauth2",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://api.cloudbeds.com/auth/oauth/authorize",
            "tokenUrl": "https://api.cloudbeds.com/auth/oauth/token",
            "scopes": {
              "read:addon": "Read Addon information",
              "read:doorLockKey": "Read DoorLock keys and settings",
              "write:doorLockKey": "Write DoorLock keys and settings",
              "delete:doorLockKey": "Delete DoorLock keys and settings",
              "read:housekeeping": "Read Housekeeping inspections",
              "read:marketsegment": "Read Market Segmentation groups and segments",
              "write:marketsegment": "Write Market Segmentation groups and segments",
              "delete:marketsegment": "Delete Market Segmentation groups and segments",
              "write:importTask": "Create new data imports",
              "read:importTask": "Read data imports",
              "hotel:read": "Read Hotel information",
              "hotel:write": "Write Hotel information",
              "hotel:delete": "Delete Hotel information",
              "write:appError": "Write AppError information",
              "read:agePolicy": "Read Age Policy information",
              "write:agePolicy": "Write Age Policy information",
              "delete:agePolicy": "Delete Age Policy information",
              "write:allotmentBlocks": "Write AllotmentBlock information",
              "read:allotmentBlocks": "Read AllotmentBlock information",
              "delete:allotmentBlocks": "Delete AllotmentBlock information"
            }
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Payments",
      "description": "Payments"
    }
  ]
}
```