Skip to content

Map a Polar product

PUT
/v1/admin/integrations/{id}/mappings/{polarProductId}
curl --request PUT \
--url https://api.sealcord.com/v1/admin/integrations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/mappings/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "product_id": "example", "limit_kind": "seats", "limit_count": 1, "key_valid_days": null, "on_refund": "revoke", "on_subscription_end": "expire", "renewal_url": "example" }'

Map a Polar product of the integration to one of your products.

id
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
polarProductId
required
string
/^[A-Za-z0-9_-]{1,100}$/
Media typeapplication/json
object
product_id
required
string
/^[a-z0-9][a-z0-9-]{0,62}$/
limit_kind
string
default: seats
Allowed values: seats machines
limit_count
integer
default: 1 >= 1 <= 4294967295
key_valid_days
integer
nullable >= 1 <= 36500
on_refund
string
default: revoke
Allowed values: revoke none
on_subscription_end
string
default: expire
Allowed values: expire revoke
renewal_url
string
nullable <= 2048 characters

Missing or invalid API key.

Needs scope polar:write.