Create an payment for an order

POST /users/{user_id}/projects/{project_id}/orders/{order_id}/payments

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


Body Required

Payment information


  • 201

    Payment created and returned

    Hide response attributes Show response attributes object
  • 401

    Authorization information is missing or invalid.

  • 422

    Request body has errors or invalid.

POST /users/{user_id}/projects/{project_id}/orders/{order_id}/payments
curl \
 -X POST{user_id}/projects/{project_id}/orders/{order_id}/payments \
 -H "Content-Type: application/json" \
 -d '{"amount":42.0}'
Request example
  "amount": 42.0
Response examples (201)
  "id": "string",
  "amount": 42.0,
  "created_at": "string",
  "order_id": "string",
  "project_id": "string"