openapi: 3.1.1 info: title: PaymentAction version: 2.0.0 description: Schema definition for PaymentAction in the Beckn Protocol v2.0.1 license: name: CC-BY-NC-SA 4.0 International contact: name: Beckn Labs url: https://beckn.io components: schemas: PaymentAction: $id: https://schema.beckn.io/PaymentAction/v2.0 $schema: https://json-schema.org/draft/2020-12/schema description: Schema definition for PaymentAction in the Beckn Protocol v2.0.1 title: PaymentAction type: object properties: amount: description: Amount associated with this payment action type: object properties: currency: type: string x-jsonld: '@id': schema:priceCurrency value: type: number x-jsonld: '@id': schema:price paymentStatus: description: "Payment lifecycle status (Pending | Authorized | Captured\ \ | Failed | Refunded | PartialRefund \u2026)" type: string enum: - INITIATED - PENDING - AUTHORIZED - CAPTURED - COMPLETED - FAILED - CANCELLED - REFUNDED - PARTIALLY_REFUNDED - CHARGEBACK - DISPUTED - EXPIRED - REVERSED - VOIDED - SETTLED - ON_HOLD - ADJUSTED x-jsonld: '@id': beckn:paymentStatus paymentMethod: type: object method: type: string paymentUrl: description: URL for payment processing/redirection type: string x-jsonld: '@id': schema:url format: uri example: https://payments.example.com/pay?transactionId=123&amount=100 state: $ref: https://schema.beckn.io/State/v2.0/attributes.yaml#/components/schemas/State txnRef: description: PSP/gateway/bank transaction reference type: string x-jsonld: '@id': schema:transactionNumber checkoutAt: $ref: https://schema.beckn.io/CheckoutTerminal/v2.0/attributes.yaml#/components/schemas/CheckoutTerminal paidAt: description: The time at which the payment was made type: string format: date-time paymentActionAttributes: description: Extensible set of attributes containing payment actions specific to each ecosystem. $ref: https://schema.beckn.io/Attributes/v2.0/attributes.yaml#/components/schemas/Attributes required: - paymentStatus additionalProperties: false x-tags: - common