{"openapi":"3.1.0","info":{"title":"Overflow API","version":"2026-12-05","description":"Checkouts, refunds, products, discount codes, customers, subscriptions, evidence events and disputes. Amounts are integers in the smallest currency unit. Call from a server only. Every answer has a request-id, overflow-version and ratelimit headers."},"servers":[{"url":"https://overflowpay.net/api/v1"}],"security":[{"secretKey":[]}],"paths":{"/checkouts":{"post":{"operationId":"createCheckout","summary":"Create a checkout, from your own items or from a product","parameters":[{"name":"Idempotency-Key","in":"header","schema":{"type":"string","maxLength":255},"description":"Any POST : sent again within 24 hours with the same body, the first answer comes back instead of running twice."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutCreate"}}}},"responses":{"200":{"description":"The new checkout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Checkout"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"operationId":"listCheckouts","summary":"List checkouts, newest first","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"starting_after","in":"query","schema":{"type":"string"},"description":"The id of the last object you received. Returns the ones created before it."},{"name":"status","in":"query","schema":{"$ref":"#/components/schemas/Status"}}],"responses":{"200":{"description":"A page of checkouts","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Checkout"}},"has_more":{"type":"boolean"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/checkouts/{id}":{"get":{"operationId":"getCheckout","summary":"Retrieve a checkout","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Checkout id, starts with co_"}],"responses":{"200":{"description":"The checkout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Checkout"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/checkouts/{id}/refund":{"post":{"operationId":"refundCheckout","summary":"Refund a paid checkout, fully or partly","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Checkout id, starts with co_"},{"name":"Idempotency-Key","in":"header","schema":{"type":"string","maxLength":255},"description":"Any POST : sent again within 24 hours with the same body, the first answer comes back instead of running twice."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"type":"integer","description":"Leave out to refund everything that is left."},"reason":{"enum":["requested_by_customer","duplicate","fraudulent"]}}}}}},"responses":{"200":{"description":"The updated checkout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Checkout"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/checkouts/{id}/refunds":{"get":{"operationId":"listCheckoutRefunds","summary":"The checkout's refunds, newest first","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Checkout id, starts with co_"},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"starting_after","in":"query","schema":{"type":"string"},"description":"The id of the last object you received. Returns the ones created before it."}],"responses":{"200":{"description":"Refunds","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Refund"}},"has_more":{"type":"boolean"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/checkouts/{id}/expire":{"post":{"operationId":"expireCheckout","summary":"Stop an open checkout from being paid","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Checkout id, starts with co_"},{"name":"Idempotency-Key","in":"header","schema":{"type":"string","maxLength":255},"description":"Any POST : sent again within 24 hours with the same body, the first answer comes back instead of running twice."}],"responses":{"200":{"description":"The expired checkout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Checkout"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/checkouts/{id}/events":{"post":{"operationId":"addEvent","summary":"Add your own event to the checkout timeline, used as dispute evidence","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Checkout id, starts with co_"},{"name":"Idempotency-Key","in":"header","schema":{"type":"string","maxLength":255},"description":"Any POST : sent again within 24 hours with the same body, the first answer comes back instead of running twice."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["type"],"properties":{"type":{"type":"string","description":"Short name such as delivered, download or login."},"note":{"type":"string","maxLength":500},"ip":{"type":"string","description":"The buyer's address when it happened."}}}}}},"responses":{"200":{"description":"Stored","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"const":true}}}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"operationId":"listEvents","summary":"The checkout's timeline, oldest first","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Checkout id, starts with co_"}],"responses":{"200":{"description":"Events","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Event"}}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/refunds":{"get":{"operationId":"listRefunds","summary":"Every refund in the store, newest first, including ones made in Stripe's dashboard","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"starting_after","in":"query","schema":{"type":"string"},"description":"The id of the last object you received. Returns the ones created before it."}],"responses":{"200":{"description":"Refunds","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Refund"}},"has_more":{"type":"boolean"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/products":{"get":{"operationId":"listProducts","summary":"List products","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"starting_after","in":"query","schema":{"type":"string"},"description":"The id of the last object you received. Returns the ones created before it."}],"responses":{"200":{"description":"Products","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Product"}},"has_more":{"type":"boolean"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createProduct","summary":"Create a product with a pay link","parameters":[{"name":"Idempotency-Key","in":"header","schema":{"type":"string","maxLength":255},"description":"Any POST : sent again within 24 hours with the same body, the first answer comes back instead of running twice."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductInput"}}}},"responses":{"200":{"description":"The product","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/products/{id}":{"get":{"operationId":"getProduct","summary":"Retrieve a product","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Product id, starts with lnk_"}],"responses":{"200":{"description":"The product","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"updateProduct","summary":"Change a product. Only the fields you send change","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Product id, starts with lnk_"},{"name":"Idempotency-Key","in":"header","schema":{"type":"string","maxLength":255},"description":"Any POST : sent again within 24 hours with the same body, the first answer comes back instead of running twice."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductInput"}}}},"responses":{"200":{"description":"The product","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/coupons":{"get":{"operationId":"listCoupons","summary":"List discount codes","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"starting_after","in":"query","schema":{"type":"string"},"description":"The id of the last object you received. Returns the ones created before it."}],"responses":{"200":{"description":"Codes","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Coupon"}},"has_more":{"type":"boolean"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createCoupon","summary":"Create a discount code buyers type on a product's checkout","parameters":[{"name":"Idempotency-Key","in":"header","schema":{"type":"string","maxLength":255},"description":"Any POST : sent again within 24 hours with the same body, the first answer comes back instead of running twice."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["code"],"properties":{"code":{"type":"string","pattern":"^[A-Za-z0-9_-]{3,30}$"},"percent_off":{"type":"integer","minimum":1,"maximum":100},"amount_off":{"type":"integer","minimum":1,"description":"With currency. Send this or percent_off."},"currency":{"type":"string"},"product":{"type":"string","description":"Only for this product."},"max_uses":{"type":"integer","minimum":1},"expires_at":{"type":"integer","description":"Unix seconds."}}}}}},"responses":{"200":{"description":"The code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Coupon"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/coupons/{id}":{"get":{"operationId":"getCoupon","summary":"Retrieve a discount code","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Coupon id, starts with cpn_"}],"responses":{"200":{"description":"The code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Coupon"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"updateCoupon","summary":"Turn a code off or on","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Coupon id, starts with cpn_"},{"name":"Idempotency-Key","in":"header","schema":{"type":"string","maxLength":255},"description":"Any POST : sent again within 24 hours with the same body, the first answer comes back instead of running twice."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["active"],"properties":{"active":{"type":"boolean"}}}}}},"responses":{"200":{"description":"The code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Coupon"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/customers":{"get":{"operationId":"listCustomers","summary":"Everyone who paid, by email and currency, most recent first","parameters":[{"name":"email","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"Customers","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Customer"}}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/subscriptions":{"get":{"operationId":"listSubscriptions","summary":"List subscriptions","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"starting_after","in":"query","schema":{"type":"string"},"description":"The id of the last object you received. Returns the ones created before it."},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Subscriptions","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Subscription"}},"has_more":{"type":"boolean"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/subscriptions/{id}":{"get":{"operationId":"getSubscription","summary":"Retrieve a subscription","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Subscription id, starts with sub_"}],"responses":{"200":{"description":"The subscription","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Subscription"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/subscriptions/{id}/cancel":{"post":{"operationId":"cancelSubscription","summary":"Cancel a subscription, at the end of the paid period by default","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Subscription id, starts with sub_"},{"name":"Idempotency-Key","in":"header","schema":{"type":"string","maxLength":255},"description":"Any POST : sent again within 24 hours with the same body, the first answer comes back instead of running twice."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"at_period_end":{"type":"boolean","default":true}}}}}},"responses":{"200":{"description":"The subscription","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Subscription"}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/disputes":{"get":{"operationId":"listDisputes","summary":"The store's 100 most recent disputes","responses":{"200":{"description":"Disputes","content":{"application/json":{"schema":{"type":"object","properties":{"object":{"const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Dispute"}}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"secretKey":{"type":"http","scheme":"bearer","description":"A store secret key, ovf_sk_... A read-only key can only GET."}},"schemas":{"Status":{"enum":["open","processing","paid","trialing","blocked","failed","expired","refunded","disputed"]},"Currency":{"enum":["usd","eur","gbp","aud","cad","chf","nzd","sgd","hkd","jpy","dkk","nok","sek","pln","czk","ron","bgn","mxn","brl","inr","myr","thb","aed"]},"Item":{"type":"object","required":["name","amount"],"properties":{"name":{"type":"string","maxLength":250},"amount":{"type":"integer","minimum":0,"description":"Price of one, in the smallest currency unit."},"quantity":{"type":"integer","minimum":1,"maximum":999,"default":1},"description":{"type":"string","maxLength":500}}},"CheckoutCreate":{"type":"object","properties":{"items":{"type":"array","minItems":1,"maxItems":50,"items":{"$ref":"#/components/schemas/Item"},"description":"Required unless you send product."},"currency":{"$ref":"#/components/schemas/Currency","description":"Required unless you send product."},"product":{"type":"string","description":"A product id. Its price, files, keys and shipping apply, and items and currency are ignored."},"quantity":{"type":"integer","minimum":1,"description":"With product. Up to the product's quantity_max."},"customer_email":{"type":"string","format":"email"},"return_url":{"type":"string","format":"uri","description":"Where the buyer goes after paying. ?checkout_id= is added."},"metadata":{"type":"object","additionalProperties":{"type":"string"},"maxProperties":20},"expires_in":{"type":"integer","minimum":1800,"maximum":86400,"default":86400,"description":"Seconds the buyer has to pay."}}},"Checkout":{"type":"object","properties":{"id":{"type":"string"},"object":{"const":"checkout"},"livemode":{"type":"boolean","description":"false for a test checkout."},"status":{"$ref":"#/components/schemas/Status"},"kind":{"enum":["payment","subscription","renewal"],"description":"renewal : one period of a subscription, charged by Stripe."},"amount":{"type":"integer","description":"The total, after any discount."},"currency":{"type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"discount":{"type":"integer","description":"Taken off by a code, in the smallest unit."},"product":{"type":["string","null"]},"subscription":{"type":["string","null"]},"shipping":{"type":["object","null"],"properties":{"name":{"type":"string"},"address":{"type":"object"}}},"customer_email":{"type":["string","null"]},"return_url":{"type":["string","null"]},"metadata":{"type":"object","additionalProperties":{"type":"string"}},"url":{"type":"string","format":"uri","description":"The hosted checkout page."},"risk":{"type":"object","properties":{"verdict":{"enum":["allow","challenge","block",null],"description":"The fraud gate's decision. null until the buyer opens the checkout."},"score":{"type":["integer","null"]},"reasons":{"type":"array","items":{"type":"string"}},"radar_level":{"type":["string","null"],"description":"Stripe Radar level : normal, elevated or highest."},"radar_score":{"type":["integer","null"]},"three_d_secure":{"type":["string","null"]}}},"refunded_amount":{"type":"integer"},"fee":{"type":["integer","null"],"description":"The platform fee. null until paid."},"reserve":{"type":["integer","null"],"description":"Held back for a while, then sent to you. null until paid."},"net":{"type":["integer","null"],"description":"Yours : amount minus fee, reserve and refunds. null until paid."},"created":{"type":"integer","description":"Unix seconds."},"paid_at":{"type":["integer","null"]},"expires_at":{"type":"integer"}}},"Refund":{"type":"object","properties":{"id":{"type":"string"},"object":{"const":"refund"},"checkout":{"type":"string"},"amount":{"type":"integer"},"currency":{"type":"string"},"reason":{"type":["string","null"]},"status":{"enum":["pending","succeeded","failed","canceled","requires_action"]},"source":{"enum":["overflow","stripe"],"description":"stripe : made by hand in Stripe's dashboard."},"created":{"type":"integer"}}},"ProductInput":{"type":"object","properties":{"name":{"type":"string","maxLength":120},"description":{"type":["string","null"]},"amount":{"type":"integer"},"currency":{"$ref":"#/components/schemas/Currency"},"kind":{"enum":["one_time","subscription"]},"interval":{"enum":["day","week","month","year"]},"interval_count":{"type":"integer","minimum":1,"maximum":12},"trial_days":{"type":"integer","minimum":0,"maximum":365},"quantity_max":{"type":"integer","minimum":1,"maximum":99},"return_url":{"type":["string","null"]},"active":{"type":"boolean"}}},"Product":{"type":"object","properties":{"id":{"type":"string"},"object":{"const":"product"},"name":{"type":"string"},"description":{"type":["string","null"]},"amount":{"type":"integer"},"currency":{"type":"string"},"active":{"type":"boolean"},"kind":{"enum":["one_time","subscription"]},"interval":{"type":["string","null"]},"interval_count":{"type":["integer","null"]},"trial_days":{"type":"integer"},"quantity_max":{"type":"integer"},"shipping":{"type":"boolean"},"ship_fee":{"type":"integer"},"license":{"enum":["none","generate","list"]},"files":{"type":"integer","description":"How many files buyers get."},"image":{"type":["string","null"]},"url":{"type":"string","format":"uri","description":"The pay link."},"return_url":{"type":["string","null"]},"sold":{"type":"integer"},"created":{"type":"integer"},"updated":{"type":["integer","null"]}}},"Coupon":{"type":"object","properties":{"id":{"type":"string"},"object":{"const":"coupon"},"code":{"type":"string"},"percent_off":{"type":["integer","null"]},"amount_off":{"type":["integer","null"]},"currency":{"type":["string","null"]},"product":{"type":["string","null"]},"max_uses":{"type":["integer","null"]},"used":{"type":"integer"},"expires_at":{"type":["integer","null"]},"active":{"type":"boolean"},"created":{"type":"integer"}}},"Customer":{"type":"object","properties":{"object":{"const":"customer"},"email":{"type":"string"},"currency":{"type":"string"},"orders":{"type":"integer"},"spent":{"type":"integer"},"refunded":{"type":"integer"},"first_paid_at":{"type":"integer"},"last_paid_at":{"type":"integer"}}},"Subscription":{"type":"object","properties":{"id":{"type":"string"},"object":{"const":"subscription"},"livemode":{"type":"boolean"},"status":{"enum":["trialing","active","past_due","unpaid","canceled","incomplete","incomplete_expired","paused"]},"amount":{"type":"integer"},"currency":{"type":"string"},"interval":{"type":"string"},"interval_count":{"type":"integer"},"customer_email":{"type":["string","null"]},"product":{"type":["string","null"]},"checkout":{"type":"string","description":"The checkout that started it."},"current_period_end":{"type":["integer","null"]},"cancel_at_period_end":{"type":"boolean"},"canceled_at":{"type":["integer","null"]},"created":{"type":"integer"}}},"Event":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"data":{"type":"object"},"created":{"type":"integer"}}},"Dispute":{"type":"object","properties":{"id":{"type":"string"},"object":{"const":"dispute"},"checkout":{"type":"string"},"reason":{"type":["string","null"]},"status":{"type":"string"},"amount":{"type":"integer"},"currency":{"type":"string"},"evidence_submitted":{"type":"boolean"},"evidence_due_by":{"type":["integer","null"]},"created":{"type":"integer"}}},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"field":{"type":"string"},"request_id":{"type":"string"}}}}}}},"x-webhooks-doc":"https://overflowpay.net/docs/webhooks.md"}