Create an payment for an order
Create an payment for an order. Depending of the payment amount
, Order status will be updated to one of following type - paid
, underpaid
or overpaid
.
Path parameters
-
User id
-
Project id
POST
/users/{user_id}/projects/{project_id}/orders/{order_id}/payments
curl \
-X POST https://client-subdomain.bitbond.net/api/v1/users/{user_id}/projects/{project_id}/orders/{order_id}/payments \
-H "Content-Type: application/json" \
-d '{"amount":42.0}'
Request example
{
"amount": 42.0
}
Request examples
{
"amount": 42.0
}
Response examples (201)
{
"id": "string",
"amount": 42.0,
"created_at": "string",
"order_id": "string",
"project_id": "string"
}
Response examples (201)
{
"id": "string",
"amount": 42.0,
"created_at": "string",
"order_id": "string",
"project_id": "string"
}