Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 28 additions & 23 deletions reference/payments/process_payments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down