Get Organizations

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Query

  • name — optional, case-insensitive substring of the organization name.
  • tag — optional, exact organization tag name of the partner, case-insensitive.
  • page — starts at 1. Organizations are ordered by name.
  • per_page — optional, 1-500, default 500. Any other value returns 422 with { "error": "..." }.

To find a customer by name, filter with name. Do not page through all organizations.

Success

200 OK — the organizations visible to the partner, with the partner's tags and the coupons reaching each.

{
  "data": [
    {
      "id": "....-03cfda750cfa",
      "name": "Acme Corp",
      "store_visible": true,
      "tags": [{ "id": "....-d75e0abec7d2", "name": "Gold", "note": "Renewed in May" }],
      "coupons": [
        { "id": "....-a1", "name": "Gold 10", "status": "active", "source": "tag" },
        { "id": "....-b2", "name": "Spring", "status": "expired", "source": "code" }
      ]
    }
  ],
  "page_info": { "has_next": false, "total_count": 1 }
}
  • store_visible — whether the organization sees the partner's store: a tag coupon discounts the customer only when store_visible is true.
  • coupons — source: tag for a coupon of one of the organization's tags, source: code for one the organization redeemed by code; a coupon reached both ways is listed once, as code. status is active, scheduled, expired or inactive. Empty when store_visible is false or store coupons are not enabled for the partner.
Query Params
integer

Page number, starts at 1

integer

Items per page, 1-500, default 500

string

Case-insensitive substring of the organization name

string

Exact organization tag name of the partner, case-insensitive

Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json