Search for product pricing with given parameters
curl --request POST \
--url https://api.maplebilling.com/api/v1/companies/{company_id}/pricing/find \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"include_meta": true,
"pagination": {
"from_key": null,
"limit": 20
},
"query": {
"currency": null,
"external_name": null,
"name": null,
"product_id": null,
"search": null,
"state": null,
"tags": null,
"type": null
},
"sort_key": "createdAtDesc"
}'
{
"pagination": {
"from_key": null,
"limit": 123
},
"results": [
{
"company_id": "<string>",
"computed_entitlements": [
{
"entitlement_id": "<string>",
"inherited_from_id": null,
"inherited_from_type": null,
"key": "<string>",
"name": "<string>",
"original_value": "<any>",
"overridden": null,
"type": "<string>",
"value": "<any>"
}
],
"created_at": "2023-11-07T05:31:56Z",
"currency": "<string>",
"description": "<string>",
"external_name": "<string>",
"id": "<string>",
"metadata": {},
"name": "<string>",
"num_subs": 1,
"override_entitlements": [
{
"entitlement_id": "<string>",
"inherited_from_id": null,
"inherited_from_type": null,
"key": "<string>",
"name": "<string>",
"original_value": "<any>",
"overridden": null,
"type": "<string>",
"value": "<any>"
}
],
"product_id": "<string>",
"state": "<string>",
"tags": [
"<string>"
],
"type": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The idempotency key that will be used to ensure the request is only performed once
The company ID with the prefix 'cmp_'.
OK
The response is of type object
.
curl --request POST \
--url https://api.maplebilling.com/api/v1/companies/{company_id}/pricing/find \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"include_meta": true,
"pagination": {
"from_key": null,
"limit": 20
},
"query": {
"currency": null,
"external_name": null,
"name": null,
"product_id": null,
"search": null,
"state": null,
"tags": null,
"type": null
},
"sort_key": "createdAtDesc"
}'
{
"pagination": {
"from_key": null,
"limit": 123
},
"results": [
{
"company_id": "<string>",
"computed_entitlements": [
{
"entitlement_id": "<string>",
"inherited_from_id": null,
"inherited_from_type": null,
"key": "<string>",
"name": "<string>",
"original_value": "<any>",
"overridden": null,
"type": "<string>",
"value": "<any>"
}
],
"created_at": "2023-11-07T05:31:56Z",
"currency": "<string>",
"description": "<string>",
"external_name": "<string>",
"id": "<string>",
"metadata": {},
"name": "<string>",
"num_subs": 1,
"override_entitlements": [
{
"entitlement_id": "<string>",
"inherited_from_id": null,
"inherited_from_type": null,
"key": "<string>",
"name": "<string>",
"original_value": "<any>",
"overridden": null,
"type": "<string>",
"value": "<any>"
}
],
"product_id": "<string>",
"state": "<string>",
"tags": [
"<string>"
],
"type": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}