Payments API V3
Create and manage payment transactions
Creates a new payment transaction. Amounts should be provided in cents (e.g., 2999 for $29.99).
API key authentication. Include your API key in the Authorization header as a Bearer token.
Example: Authorization: Bearer sk_test_1a2b3c4d5e6f
Payment amount in cents
2999Three-letter ISO currency code
usdPossible values: ID of an existing customer
cus_1a2b3c4d5e6fDescription of the payment
Monthly subscriptionPayment created successfully
Invalid request parameters
Authentication failed
Internal server error
Retrieves the details of a previously created payment.
API key authentication. Include your API key in the Authorization header as a Bearer token.
Example: Authorization: Bearer sk_test_1a2b3c4d5e6f
The payment ID
pay_1a2b3c4d5e6fPayment retrieved successfully
Authentication failed
Payment not found
Internal server error
Refunds a previously successful payment. You can refund the full amount or a partial amount.
API key authentication. Include your API key in the Authorization header as a Bearer token.
Example: Authorization: Bearer sk_test_1a2b3c4d5e6f
The payment ID to refund
pay_1a2b3c4d5e6fAmount to refund in cents. If not provided, the full amount will be refunded.
1500Reason for the refund
Customer requested refundPayment refunded successfully
Invalid refund request
Authentication failed
Payment not found
Internal server error
Last updated
