v1
latestOpenAPI 3.1.02026-07-245361280.3 KBCreate payment
Creates a new payment using any of the available payment methods.
post/payments
Request body
Response
200
Example response
{
"id": "PAY2323243343543",
"amount": 120,
"currency": "USD",
"country": "BR",
"payment_method_id": "CARD",
"payment_method_type": "CARD",
"payment_method_flow": "DIRECT",
"card": {
"holder_name": "Thiago Gabriel",
"expiration_month": 10,
"expiration_year": 2040,
"last4": "1111",
"brand": "VI"
},
"created_date": "2018-02-15T15:14:52-00:00",
"approved_date": "2018-02-15T15:14:52-00:00",
"status": "PAID",
"status_code": "200",
"status_detail": "The payment was paid.",
"order_id": "657434343",
"notification_url": "http://merchant.com/notifications"
}