{"openapi":"3.0.3","info":{"title":"Pay Engineers Compliance API","version":"v1","description":"Compliance API for credentials verification, merchant context, payments and webhook testing."},"servers":[{"url":"https:\/\/payengineers.com\/api\/v1","description":"Sandbox"},{"url":"https:\/\/payengineers.com\/api\/v1","description":"Staging"},{"url":"https:\/\/payengineers.com\/api\/v1","description":"Production"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API key"}},"parameters":{"MerchantId":{"name":"X-Merchant-Id","in":"header","required":false,"schema":{"type":"string"},"description":"Published merchant identifier for the environment."}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"}}},"PaymentCreate":{"type":"object","required":["amount","currency"],"properties":{"amount":{"type":"integer","minimum":1},"currency":{"type":"string","minLength":3,"maxLength":3},"reference":{"type":"string"},"description":{"type":"string"}}}}},"security":[{"bearerAuth":[]}],"paths":{"\/health":{"get":{"summary":"Health check","security":[],"responses":{"200":{"description":"Service healthy"}}}},"\/credentials\/verify":{"get":{"summary":"Verify API credential","parameters":[{"$ref":"#\/components\/parameters\/MerchantId"}],"responses":{"200":{"description":"Credential valid"},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/merchant":{"get":{"summary":"Merchant context","parameters":[{"$ref":"#\/components\/parameters\/MerchantId"}],"responses":{"200":{"description":"Merchant details"}}}},"\/payments":{"get":{"summary":"List payments","parameters":[{"$ref":"#\/components\/parameters\/MerchantId"}],"responses":{"200":{"description":"Payment list"}}},"post":{"summary":"Create payment","parameters":[{"$ref":"#\/components\/parameters\/MerchantId"}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PaymentCreate"}}}},"responses":{"201":{"description":"Payment created"},"422":{"description":"Validation error"}}}},"\/webhooks\/sample":{"post":{"summary":"Generate signed webhook sample","responses":{"200":{"description":"Signed payload"}}}}}}