diff --git a/reference/payments/process_payments.yml b/reference/payments/process_payments.yml index 575561f98..e37f377a2 100644 --- a/reference/payments/process_payments.yml +++ b/reference/payments/process_payments.yml @@ -152,38 +152,43 @@ paths: expiration_year: 2030 payment_method_id: bolt.card responses: - '202': + '201': description: Payment has been successfully processed content: application/json: schema: - title: Success Payment Response + title: Process Payment Response type: object properties: - id: - description: Identifier for this transaction - type: string - transaction_type: - title: Transaction Type - description: Transaction type for this payment - example: authorization - type: string - enum: - - authorization - - purchase - status: - type: string - title: Status - description: Status to indicate a success response - enum: - - success - - pending + data: + title: Process Payment Transaction + type: object + properties: + id: + description: Identifier for this transaction + type: string + transaction_type: + title: Transaction Type + description: Transaction type for this payment + example: authorization + type: string + enum: + - authorization + - purchase + status: + type: string + title: Status + description: Status to indicate a success response + enum: + - success + - pending examples: response: value: - id: 227d9e1e-94f8-408c-95a5-f97b30592eb7 - transaction_type: authorization - status: pending + data: + id: 227d9e1e-94f8-408c-95a5-f97b30592eb7 + transaction_type: authorization + status: pending '400': description: Payment request has been rejected due to malformed request content: