Raw
1 type: object
2 description: The payment's details.
3 x-schemaName: AdminPayment
4 required:
5 - id
6 - amount
7 - currency_code
8 - provider_id
9 properties:
10 id:
11 type: string
12 title: id
13 description: The payment's ID.
14 amount:
15 type: number
16 title: amount
17 description: The payment's amount.
18 authorized_amount:
19 type: number
20 title: authorized_amount
21 description: The amount authorized of the payment.
22 currency_code:
23 type: string
24 title: currency_code
25 description: The payment's currency code.
26 provider_id:
27 type: string
28 title: provider_id
29 description: The ID of the payment provider used to process this payment.
30 data:
31 type: object
32 description: The payment's data, useful for processing by the payment provider.
33 externalDocs:
34 url: >-
35 https://docs.medusajs.com/resources/commerce-modules/payment/payment#whats-a-payment
36 created_at:
37 type: string
38 format: date-time
39 title: created_at
40 description: The date the payment was created.
41 updated_at:
42 type: string
43 format: date-time
44 title: updated_at
45 description: The date the payment was updated.
46 captured_at:
47 type: string
48 format: date-time
49 title: captured_at
50 description: The date the payment was captured.
51 canceled_at:
52 type: string
53 format: date-time
54 title: canceled_at
55 description: The date the payment was canceled.
56 captured_amount:
57 type: number
58 title: captured_amount
59 description: The captured amount of the payment.
60 refunded_amount:
61 type: number
62 title: captured_amount
63 description: The refunded amount of the payment.
64 captures:
65 type: array
66 description: The details of payment captures.
67 items:
68 $ref: ./BaseCapture.yaml
69 refunds:
70 type: array
71 description: The details of payment refunds.
72 items:
73 $ref: ./AdminRefund.yaml
74 payment_collection:
75 type: object
76 payment_session:
77 $ref: ./AdminPaymentSession.yaml