Skip to main content
POST
Create payment

Authorizations

x-api-key
string
header
required

Enter your API key in the format x-api-key <api-key>*

Body

application/json

Payment configuration

amount
string
required
currency
string
required
destination_id
string
required
destination_type
enum<string>
required
Available options:
INVOICE,
CUSTOMER
payment_method_type
enum<string>
required
Available options:
CARD,
ACH,
OFFLINE,
CREDITS,
PAYMENT_LINK,
UPI
cancel_url
string
idempotency_key
string
metadata
object
payment_gateway
enum<string>
Available options:
stripe,
razorpay,
nomod,
moyasar,
paddle,
whop
payment_method_id
string
process_payment
boolean
default:true
save_card_and_make_default
boolean
default:false
success_url
string

Response

Created payment

amount
string
attempts
object[]
created_at
string<date-time>
created_by
string
currency
string
destination_id
string
destination_type
enum<string>
Available options:
INVOICE,
CUSTOMER
error_message
string
failed_at
string<date-time>
gateway_metadata
object
gateway_payment_id
string
gateway_tracking_id
string
id
string
idempotency_key
string
invoice_number
string
metadata
object
payment_gateway
string
payment_method_id
string
payment_method_type
enum<string>
Available options:
CARD,
ACH,
OFFLINE,
CREDITS,
PAYMENT_LINK,
UPI
payment_status
enum<string>
Available options:
INITIATED,
PENDING,
PROCESSING,
SUCCEEDED,
OVERPAID,
FAILED,
REFUNDED,
PARTIALLY_REFUNDED,
VOIDED
payment_url
string
refunded_at
string<date-time>
save_card_and_make_default
boolean
succeeded_at
string<date-time>
tenant_id
string
track_attempts
boolean
updated_at
string<date-time>
updated_by
string
voided_at
string<date-time>