openapi: 3.2.0 info: title: Keap Payment Method Configs API description: Keap Public API Documentation termsOfService: https://www.thryv.com/terms-of-use contact: name: Keap url: https://developer.keap.com/get-support email: api.keap@thryv.com license: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0 version: v2 servers: - url: https://api.infusionsoft.com/crm security: - oauth2: [] tags: - name: Payment Method Configs paths: /rest/v2/paymentMethodConfigs: post: tags: - Payment Method Configs summary: Create Payment Method Configuration description: Creates configuration details for rendering payment method components operationId: createPaymentMethodConfig requestBody: content: application/json: schema: $ref: '#/components/schemas/CreatePaymentMethodConfigRequest' required: true responses: '401': description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/Error' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/Error' '403': description: Forbidden content: application/json: schema: $ref: '#/components/schemas/Error' '409': description: Conflict content: application/json: schema: $ref: '#/components/schemas/Error' '500': description: Internal Server Error content: application/json: schema: $ref: '#/components/schemas/Error' '501': description: Method Not Implemented content: application/json: schema: $ref: '#/components/schemas/Error' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/Error' '405': description: Method Not Allowed content: application/json: schema: $ref: '#/components/schemas/Error' '200': description: OK content: application/json: schema: $ref: '#/components/schemas/PaymentMethodConfig' components: schemas: ErrorDetails: type: object properties: domain: type: string resource: type: string PaymentMethodConfig: type: object properties: session_key: type: string description: A temporary session key required for rendering Keap's payment component. CreatePaymentMethodConfigRequest: type: object properties: contact_id: type: string Error: type: object properties: code: type: integer format: int32 message: type: string status: type: string details: type: array items: $ref: '#/components/schemas/ErrorDetails' securitySchemes: oauth2: type: oauth2 flows: authorizationCode: authorizationUrl: https://accounts.infusionsoft.com/app/oauth/authorize tokenUrl: https://api.infusionsoft.com/token scopes: {}