Payments (created by travis via API)
Create a payment
post
https://api.example.com/payments
Body
application/json
Body
application/json
NewPayment
amountnumber(float)required
Example:49.99
currencystringrequired
Example:USD
Response
201 application/json
Response
201 application/json
Payment created
Payment
idstringrequired
Example:pay_12345
amountnumber(float)required
Example:49.99
currencystringrequired
Example:USD
statusstringrequired
Allowed values:pendingcompletedfailed
created_atstring(date-time)
post/payments
Body
{
"amount": 49.99,
"currency": "USD"
}
201 application/json
Get payment by ID
get
https://api.example.com/payments/{paymentId}
Path Parameters
paymentIdstringrequired
Response
application/json
Response
application/json
Payment details
Payment
idstringrequired
Example:pay_12345
amountnumber(float)required
Example:49.99
currencystringrequired
Example:USD
statusstringrequired
Allowed values:pendingcompletedfailed
created_atstring(date-time)
get/payments/{paymentId}
Path Parameters
application/json
Payment
objectidstringrequired
Example:pay_12345
amountnumber(float)required
Example:49.99
currencystringrequired
Example:USD
statusstringrequired
Allowed values:pendingcompletedfailed
created_atstring(date-time)
Example
NewPayment
objectamountnumber(float)required
Example:49.99
currencystringrequired
Example:USD
Example
Error
objectmessagestring
Example:Resource not found
Example