List Metadata for Resource Type
Lists metadata for a specified array of subscriptions or customers.
Authorization
BasicAuth The username is a Maxio Chargify API key. The password is x.
In: header
Path Parameters
The resource type to which the metafields belong.
Value in
- "subscriptions"
- "customers"
Query Parameters
Result records are organized in pages. By default, the first page of results is displayed. The page parameter specifies a page number of results to fetch. You can start navigating through the pages to consume the results. You do this by passing in a page parameter. Retrieve the next page by adding ?page=2 to the query string. If there are no results to return, then an empty result set will be returned.
Use in query page=1.
1 <= value1This parameter indicates how many records to fetch in each request. Default value is 20. The maximum allowed values is 200; any per_page value over 200 will be changed to 200.
Use in query per_page=200.
value <= 20020The type of filter you would like to apply to your search.
Value in
- "updated_at"
- "created_at"
The start date (format YYYY-MM-DD) with which to filter the date_field. Returns metadata with a timestamp at or after midnight (12:00:00 AM) in your site’s time zone on the date specified.
dateThe end date (format YYYY-MM-DD) with which to filter the date_field. Returns metadata with a timestamp up to and including 11:59:59PM in your site’s time zone on the date specified.
dateThe start date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns metadata with a timestamp at or after exact time provided in query. You can specify timezone in query - otherwise your site's time zone will be used. If provided, this parameter will be used instead of start_date.
date-timeThe end date and time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns metadata with a timestamp at or before exact time provided in query. You can specify timezone in query - otherwise your site's time zone will be used. If provided, this parameter will be used instead of end_date.
date-timeAllow to fetch deleted metadata.
Allow to fetch metadata for multiple records based on provided ids. Use in query: resource_ids[]=122&resource_ids[]=123&resource_ids[]=124.
items <= 50Controls the order in which results are returned.
Use in query direction=asc.
Value in
- "asc"
- "desc"
Response Body
application/json
curl -X GET "https://example.com/subscriptions/metadata.json"{ "total_count": 0, "current_page": 0, "total_pages": 0, "per_page": 0, "metadata": [ { "id": 0, "value": "string", "resource_id": 0, "name": "string", "deleted_at": "2019-08-24T14:15:22Z", "metafield_id": 0 } ]}Update Metadata PUT
Updates metadata and metafields on the Site and the customer or subscription specified, and updates the metadata value on a subscription or customer. If you update metadata on a subscription or customer with a metafield that does not already exist, the metafield is created with the metadata you specify and it is always added as a text field to the Site and to the subscription or customer you specify. You can update the input_type for the metafield with the Update Metafield endpoint. Each site is limited to 100 unique metafields per resource. This means you can have 100 metafields for the Subscription resource and another 100 for the Customer resource.
List Coupons for Product Family GET
Lists coupons for a specific product family in a site.