{"openapi":"3.1.0","info":{"title":"4Reply API","description":"One base URL for Free Fire, Razer Gold and ShamCash. Human docs: https://api.4reply.com/","version":"2.0.0"},"paths":{"/v1/services":{"get":{"tags":["catalog"],"summary":"The two service types","operationId":"list_services_v1_services_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response List Services V1 Services Get"}}}}}}},"/v1/projects":{"get":{"tags":["catalog"],"summary":"Projects, optionally of one service type","operationId":"list_projects_v1_projects_get","parameters":[{"name":"service","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"products | payments","title":"Service"},"description":"products | payments"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Projects V1 Projects Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project}":{"get":{"tags":["catalog"],"summary":"One project","operationId":"get_project_v1_projects__project__get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Project V1 Projects  Project  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project}/balance":{"get":{"tags":["account"],"summary":"Your balance on this platform","operationId":"balance_v1_projects__project__balance_get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","description":"freefire | razer | shamcash","title":"Project"},"description":"freefire | razer | shamcash"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Your razer / shamcash key (or freefire <keyId>.<secret>)","title":"X-Api-Key"},"description":"Your razer / shamcash key (or freefire <keyId>.<secret>)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"freefire: Bearer <keyId>.<secret>","title":"Authorization"},"description":"freefire: Bearer <keyId>.<secret>"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Balance V1 Projects  Project  Balance Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project}/products":{"get":{"tags":["catalog"],"summary":"Products of a project, with your price","operationId":"list_products_v1_projects__project__products_get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","description":"freefire | razer | shamcash","title":"Project"},"description":"freefire | razer | shamcash"},{"name":"service","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"products | payments","title":"Service"},"description":"products | payments"},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"available","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Available"}},{"name":"account_email","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"razer: whose catalog and prices","title":"Account Email"},"description":"razer: whose catalog and prices"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Your razer / shamcash key (or freefire <keyId>.<secret>)","title":"X-Api-Key"},"description":"Your razer / shamcash key (or freefire <keyId>.<secret>)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"freefire: Bearer <keyId>.<secret>","title":"Authorization"},"description":"freefire: Bearer <keyId>.<secret>"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Products V1 Projects  Project  Products Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project}/products/{product_id}":{"get":{"tags":["catalog"],"summary":"One product","operationId":"get_product_v1_projects__project__products__product_id__get","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}},{"name":"project","in":"path","required":true,"schema":{"type":"string","description":"freefire | razer | shamcash","title":"Project"},"description":"freefire | razer | shamcash"},{"name":"account_email","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"razer: whose catalog and prices","title":"Account Email"},"description":"razer: whose catalog and prices"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Your razer / shamcash key (or freefire <keyId>.<secret>)","title":"X-Api-Key"},"description":"Your razer / shamcash key (or freefire <keyId>.<secret>)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"freefire: Bearer <keyId>.<secret>","title":"Authorization"},"description":"freefire: Bearer <keyId>.<secret>"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Product V1 Projects  Project  Products  Product Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project}/inquiries":{"post":{"tags":["orders"],"summary":"Look up a bill / player before paying","operationId":"create_inquiry_v1_projects__project__inquiries_post","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","description":"freefire | razer | shamcash","title":"Project"},"description":"freefire | razer | shamcash"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Your razer / shamcash key (or freefire <keyId>.<secret>)","title":"X-Api-Key"},"description":"Your razer / shamcash key (or freefire <keyId>.<secret>)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"freefire: Bearer <keyId>.<secret>","title":"Authorization"},"description":"freefire: Bearer <keyId>.<secret>"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InquiryRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Inquiry V1 Projects  Project  Inquiries Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project}/inquiries/{inquiry_id}":{"get":{"tags":["orders"],"summary":"One inquiry","operationId":"get_inquiry_v1_projects__project__inquiries__inquiry_id__get","parameters":[{"name":"inquiry_id","in":"path","required":true,"schema":{"type":"string","title":"Inquiry Id"}},{"name":"project","in":"path","required":true,"schema":{"type":"string","description":"freefire | razer | shamcash","title":"Project"},"description":"freefire | razer | shamcash"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Your razer / shamcash key (or freefire <keyId>.<secret>)","title":"X-Api-Key"},"description":"Your razer / shamcash key (or freefire <keyId>.<secret>)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"freefire: Bearer <keyId>.<secret>","title":"Authorization"},"description":"freefire: Bearer <keyId>.<secret>"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Inquiry V1 Projects  Project  Inquiries  Inquiry Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project}/orders":{"post":{"tags":["orders"],"summary":"Buy: one request shape for every project","operationId":"create_order_v1_projects__project__orders_post","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","description":"freefire | razer | shamcash","title":"Project"},"description":"freefire | razer | shamcash"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Your razer / shamcash key (or freefire <keyId>.<secret>)","title":"X-Api-Key"},"description":"Your razer / shamcash key (or freefire <keyId>.<secret>)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"freefire: Bearer <keyId>.<secret>","title":"Authorization"},"description":"freefire: Bearer <keyId>.<secret>"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["orders"],"summary":"Your orders on this project (newest first)","operationId":"list_orders_v1_projects__project__orders_get","parameters":[{"name":"project","in":"path","required":true,"schema":{"type":"string","description":"freefire | razer | shamcash","title":"Project"},"description":"freefire | razer | shamcash"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"pending | processing | completed | failed | refunded","title":"Status"},"description":"pending | processing | completed | failed | refunded"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Your razer / shamcash key (or freefire <keyId>.<secret>)","title":"X-Api-Key"},"description":"Your razer / shamcash key (or freefire <keyId>.<secret>)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"freefire: Bearer <keyId>.<secret>","title":"Authorization"},"description":"freefire: Bearer <keyId>.<secret>"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Orders V1 Projects  Project  Orders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project}/orders/{order_id}":{"get":{"tags":["orders"],"summary":"One order, by your order_id (status refreshed from the platform)","operationId":"get_order_v1_projects__project__orders__order_id__get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"project","in":"path","required":true,"schema":{"type":"string","description":"freefire | razer | shamcash","title":"Project"},"description":"freefire | razer | shamcash"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Your razer / shamcash key (or freefire <keyId>.<secret>)","title":"X-Api-Key"},"description":"Your razer / shamcash key (or freefire <keyId>.<secret>)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"freefire: Bearer <keyId>.<secret>","title":"Authorization"},"description":"freefire: Bearer <keyId>.<secret>"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Order V1 Projects  Project  Orders  Order Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project}/orders/{order_id}/webhooks":{"get":{"tags":["orders"],"summary":"Webhook delivery attempts of an order","operationId":"get_deliveries_v1_projects__project__orders__order_id__webhooks_get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"project","in":"path","required":true,"schema":{"type":"string","description":"freefire | razer | shamcash","title":"Project"},"description":"freefire | razer | shamcash"},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Your razer / shamcash key (or freefire <keyId>.<secret>)","title":"X-Api-Key"},"description":"Your razer / shamcash key (or freefire <keyId>.<secret>)"},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"freefire: Bearer <keyId>.<secret>","title":"Authorization"},"description":"freefire: Bearer <keyId>.<secret>"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Deliveries V1 Projects  Project  Orders  Order Id  Webhooks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/status":{"get":{"tags":["account"],"summary":"Reachability of each platform","operationId":"status_v1_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Status V1 Status Get"}}}}}}},"/health":{"get":{"tags":["account"],"summary":"Liveness (no auth, no upstream calls)","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Health Health Get"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InquiryRequest":{"properties":{"product_id":{"type":"string","maxLength":200,"minLength":1,"title":"Product Id"},"quantity":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Quantity","default":1},"fields":{"additionalProperties":true,"type":"object","title":"Fields"}},"additionalProperties":false,"type":"object","required":["product_id"],"title":"InquiryRequest"},"OrderRequest":{"properties":{"order_id":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:\\-]{0,99}$","title":"Order Id","description":"Your own unique id for this order (a UUID is recommended; Free Fire requires one)."},"product_id":{"type":"string","maxLength":200,"minLength":1,"title":"Product Id"},"quantity":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Quantity","default":1},"fields":{"additionalProperties":true,"type":"object","title":"Fields"},"amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amount"},"inquiry_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inquiry Id"},"bill_index":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Bill Index","default":0},"webhook_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Webhook Url"}},"additionalProperties":false,"type":"object","required":["order_id","product_id"],"title":"OrderRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}