Payments API

for owner

GET /api/v1/payments

Request

Headers

Accept: application/json
X-Api-Token: oN4MoEEw3d9saD7tCd3_sqds5CMxzEy2RA
X-Api-Email: user-386@example.com

Route

GET /api/v1/payments

Query Parameters

{}: 

cURL

curl "http://localhost:3000/api/v1/payments" -X GET \
	-H "Accept: application/json" \
	-H "X-Api-Token: oN4MoEEw3d9saD7tCd3_sqds5CMxzEy2RA" \
	-H "X-Api-Email: user-386@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

Content-Type: application/json; charset=utf-8
Content-Length: 261

Status

200 OK

Body

{
  "payments": [
    {
      "id": 2,
      "created_at": "2019-10-31T22:04:15Z",
      "plan": {
        "interval": "month",
        "name": "Free"
      },
      "net_amount": 39,
      "tax_amount": null,
      "amount_refunded": null,
      "refund_date": null
    }
  ],
  "meta": {
    "total": 1,
    "page": 1,
    "from": 1,
    "to": 1,
    "per": 25,
    "number_of_pages": 1,
    "query": {
    }
  }
}