API
POST /v1/link HTTP/1.1 Host: api.checkoutlinks.com Authorization: Bearer <TOKEN> X-Shopify-Shop: yourshop.myshopify.com Content-Type: application/json { "name": "Holiday Sale Link", "type": "regular", "status": "active", "slug": "holiday-sale", "cart": { "line_items": [ { "variant_id": "123456789", "quantity": 2, "selling_plan_id": "sp_456" } ], "attributes": [ { "key": "utm_source", "value": "newsletter" }, { "key": "utm_campaign", "value": "holidays" } ] }, "discounts": { "free_gifts": [], "order_discount": { "value": 10 }, "free_shipping": true, "discount_codes": ["SAVE10"] }, "eligibility": { "schedule": null, "usage_limit": "none", "passcode": null }, "scripts": "<script>console.log('hello')</script>" }
{ "status": "success", "message": "Link created successfully", "data": { "shortcode": "abc123", "slug": "abc123", "name": "Holiday Sale Link", "status": "active", "type": "regular", "url": "https://yourshop.com/abc123" } }
Create a new checkout link.
regular
dynamic
reorder
abandonment
Bearer <token>
yourshop.myshopify.com