Paycose Docs
Price
GET/prices

List

List prices with pagination, filtering, and search.

Filterable: id, product_id, application_country_id, currency, recurring_interval, usage_type, reference_id, created_at, updated_at. Searchable (q): currency, reference_id.

Typical usage: fetch all prices for a product via filter[product_id]={product_id}.

Requires: Bearer token, X-Country header.

Request

Example

curl -X GET 'https://api.paycose.com/api/v1/app1/platform/wallet/prices/?limit=10&page=1&use-cursor=true&starting_after=&ending_before=&sort=created_at:desc&q=&filter[created_at]=&filter[currency]=&filter[id]=&filter[labels]=&filter[product_id]=&filter[recurring_interval]=&filter[type]=&filter[updated_at]=&filter[usage_type]=' \
  -H 'X-Session-Token: {{session_token}}' \
  -H 'X-Country: {{country}}' \
  -H 'X-Test-Mode: {{x_test_mode}}'

Headers

NameValueDescription
X-Session-Token{{session_token}}
X-Country{{country}}
X-Test-Mode{{x_test_mode}}true=wallet_test, false=wallet_live (default). Toggle the x_test_mode collection variable to flip every applicable request.

Responses

200200 OK

Headers

NameValue
Content-Typeapplication/json

Body

{
  "object": "list",
  "data": [
    {
      "id": null,
      "object": "<string>",
      "livemode": false,
      "created_at": null,
      "updated_at": null,
      "product": "<string>",
      "currency": "<string>",
      "amount": 0,
      "billing_scheme": "<string>",
      "recurring_interval": "<string>",
      "recurring_interval_count": 0,
      "usage_type": "<string>",
      "scaling_factor": 0,
      "tiers": "<datatypes.JSON>",
      "metadata": "<datatypes.JSON>",
      "labels": "<core.Labels>",
      "unit_amount_decimal": "<string>"
    }
  ],
  "page": 1,
  "limit": 10,
  "total_items": 1,
  "total_pages": 1
}

On this page