GET
/
v1
/
pay
/
cycles
/
{id}
curl --request GET \
  --url https://api.onsi.com/v1/pay/cycles/{id} \
  --header 'x-api-key: <api-key>'
{
  "id": "pc_<id>",
  "startDate": "2024-01-01",
  "endDate": "2024-01-15",
  "status": "Open"
}

This endpoint returns a single pay cycle, by its ID.

  • Closed - The cycle is closed, no moe withdrawals can be made, and you can now perform your final deductions/accounting.
  • Open - The cycle is open, members can still make withdrawals.

Authorizations

x-api-key
string
header
required

Path Parameters

id
string
required

The unique identifier for a PayCycle, prefixed with pc_

Example:

"pc_<id>"

Response

200 - application/json

A pay cycle is a period of time pay is made available for members to withdraw