{"openapi":"3.2.0","info":{"title":"APICenter Payments API","version":"1.0.0","description":"Provider-neutral payment API for registered consumer services."},"servers":[{"url":"https://api.apicenter.itsandbox.site"}],"security":[{"ApiKeyAuth":[]},{"ServiceBearerAuth":[]}],"tags":[{"name":"Payments"}],"paths":{"/api/v1/payments/checkouts":{"post":{"operationId":"createCheckout","tags":["Payments"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutCreateRequest"},"example":{"referenceId":"ACI-20260727-EXAMPLE01","amount":{"amountMinor":39900,"currency":"PHP"},"successUrl":"https://app.example.test/billing/success","cancelUrl":"https://app.example.test/billing/cancel","metadata":{"planId":"starter"}}}}},"responses":{"201":{"description":"Checkout created","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/Checkout"}}},"example":{"success":true,"data":{"checkoutId":"chk_example_01","referenceId":"ACI-20260727-EXAMPLE01","status":"pending","amount":{"amountMinor":39900,"currency":"PHP"},"checkoutUrl":"https://checkout.example.test/chk_example_01","aggregateVersion":1}}}}},"202":{"$ref":"#/components/responses/Pending"},"400":{"$ref":"#/components/responses/BadRequest"},"409":{"$ref":"#/components/responses/IdempotencyConflict"}}}},"/api/v1/payments/checkouts/{checkoutId}":{"get":{"operationId":"getCheckout","tags":["Payments"],"parameters":[{"$ref":"#/components/parameters/CheckoutId"}],"responses":{"200":{"description":"Checkout","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/Checkout"}}}}}},"404":{"$ref":"#/components/responses/NotFound"}}}},"/api/v1/payments/checkouts/by-reference/{referenceId}":{"get":{"operationId":"getCheckoutByReference","tags":["Payments"],"parameters":[{"$ref":"#/components/parameters/ReferenceId"}],"responses":{"200":{"description":"Checkout","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/Checkout"}}}}}},"404":{"$ref":"#/components/responses/NotFound"}}}},"/api/v1/payments/checkouts/{checkoutId}/cancel":{"post":{"operationId":"cancelCheckout","tags":["Payments"],"parameters":[{"$ref":"#/components/parameters/CheckoutId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Checkout cancelled","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/Checkout"}}}}}},"409":{"$ref":"#/components/responses/IdempotencyConflict"}}}},"/api/v1/payments/intents":{"post":{"operationId":"createPaymentIntent","tags":["Payments"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentIntentCreateRequest"}}}},"responses":{"201":{"description":"Payment intent created","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/PaymentIntent"}}}}}},"409":{"$ref":"#/components/responses/IdempotencyConflict"}}}},"/api/v1/payments/intents/{paymentIntentId}":{"get":{"operationId":"getPaymentIntent","tags":["Payments"],"parameters":[{"$ref":"#/components/parameters/PaymentIntentId"}],"responses":{"200":{"description":"Payment intent","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/PaymentIntent"}}}}}}}}},"/api/v1/payments/intents/{paymentIntentId}/confirm":{"post":{"operationId":"confirmPaymentIntent","tags":["Payments"],"parameters":[{"$ref":"#/components/parameters/PaymentIntentId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Payment intent confirmed","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/PaymentIntent"}}}}}},"409":{"$ref":"#/components/responses/IdempotencyConflict"}}}},"/api/v1/payments/intents/{paymentIntentId}/cancel":{"post":{"operationId":"cancelPaymentIntent","tags":["Payments"],"parameters":[{"$ref":"#/components/parameters/PaymentIntentId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Payment intent cancelled","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/PaymentIntent"}}}}}},"409":{"$ref":"#/components/responses/IdempotencyConflict"}}}},"/api/v1/payments/customers":{"post":{"operationId":"createCustomer","tags":["Payments"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerCreateRequest"}}}},"responses":{"201":{"description":"Customer created","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/Customer"}}}}}},"409":{"$ref":"#/components/responses/IdempotencyConflict"}}}},"/api/v1/payments/customers/{customerId}":{"get":{"operationId":"getCustomer","tags":["Payments"],"parameters":[{"$ref":"#/components/parameters/CustomerId"}],"responses":{"200":{"description":"Customer","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/Customer"}}}}}}}}},"/api/v1/payments/refunds":{"post":{"operationId":"createRefund","tags":["Payments"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundCreateRequest"}}}},"responses":{"201":{"description":"Refund created","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/Refund"}}}}}},"409":{"$ref":"#/components/responses/IdempotencyConflict"}}}},"/api/v1/payments/refunds/{refundId}":{"get":{"operationId":"getRefund","tags":["Payments"],"parameters":[{"$ref":"#/components/parameters/RefundId"}],"responses":{"200":{"description":"Refund","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/Refund"}}}}}}}}},"/api/v1/payments/subscriptions":{"post":{"operationId":"createSubscription","tags":["Payments"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionCreateRequest"}}}},"responses":{"201":{"description":"Subscription created","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/Subscription"}}}}}},"409":{"$ref":"#/components/responses/IdempotencyConflict"}}}},"/api/v1/payments/subscriptions/{subscriptionId}":{"get":{"operationId":"getSubscription","tags":["Payments"],"parameters":[{"$ref":"#/components/parameters/SubscriptionId"}],"responses":{"200":{"description":"Subscription","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/Subscription"}}}}}}}}},"/api/v1/payments/subscriptions/{subscriptionId}/cancel":{"post":{"operationId":"cancelSubscription","tags":["Payments"],"parameters":[{"$ref":"#/components/parameters/SubscriptionId"},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Subscription cancellation scheduled","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/Subscription"}}}}}},"409":{"$ref":"#/components/responses/IdempotencyConflict"}}}},"/api/v1/payments/subscriptions/{subscriptionId}/invoices":{"get":{"operationId":"listSubscriptionInvoices","tags":["Payments"],"parameters":[{"$ref":"#/components/parameters/SubscriptionId"}],"responses":{"200":{"description":"Subscription invoices","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"array","items":{"$ref":"#/components/schemas/Invoice"}}}}}}}}}},"/api/v1/payments/invoices/{invoiceId}":{"get":{"operationId":"getInvoice","tags":["Payments"],"parameters":[{"$ref":"#/components/parameters/InvoiceId"}],"responses":{"200":{"description":"Invoice","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/Invoice"}}}}}}}}},"/api/v1/payments/records":{"get":{"operationId":"listPaymentRecords","tags":["Payments"],"parameters":[{"name":"type","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string"}},{"name":"createdAfter","in":"query","description":"Inclusive ISO 8601 lower bound.","schema":{"type":"string","format":"date-time"}},{"name":"createdBefore","in":"query","description":"Exclusive ISO 8601 upper bound.","schema":{"type":"string","format":"date-time"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Project-scoped payment record page.","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/PaymentRecordPage"}}}}}}}}},"/api/v1/payments/capabilities":{"get":{"operationId":"getPaymentCapabilities","tags":["Payments"],"responses":{"200":{"description":"Payment capabilities","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/PaymentCapabilities"}}}}}}}}},"/api/v1/payments/intents/qrph":{"post":{"operationId":"createQrPhPaymentIntent","tags":["Payments"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QrPhPaymentIntentCreateRequest"}}}},"responses":{"201":{"description":"QR Ph payment intent created; awaiting_next_action is not confirmation of payment.","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/QrPhPaymentIntent"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"409":{"$ref":"#/components/responses/IdempotencyConflict"}}}},"/api/v1/payments/payment-links":{"get":{"operationId":"listPaymentLinks","tags":["Payments"],"responses":{"200":{"description":"Payment links owned by the calling project","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"array","items":{"$ref":"#/components/schemas/PaymentLink"}}}}}}}}},"post":{"operationId":"createPaymentLink","tags":["Payments"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentLinkCreateRequest"}}}},"responses":{"201":{"description":"Payment link created","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/PaymentLink"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"409":{"$ref":"#/components/responses/IdempotencyConflict"}}}},"/api/v1/payments/payment-links/{paymentLinkId}":{"get":{"operationId":"getPaymentLink","tags":["Payments"],"responses":{"200":{"description":"Project-owned payment link","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/PaymentLink"}}}}}},"404":{"$ref":"#/components/responses/NotFound"}}},"patch":{"operationId":"setPaymentLinkArchived","tags":["Payments"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["archive"],"properties":{"archive":{"type":"boolean"}}}}}},"responses":{"200":{"description":"Payment link archive state updated","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/PaymentLink"}}}}}},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/IdempotencyConflict"}}}},"/api/v1/payments/plans":{"get":{"operationId":"listPlans","tags":["Payments"],"responses":{"200":{"description":"Plans owned by the calling project","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"type":"array","items":{"$ref":"#/components/schemas/Plan"}}}}}}}}},"post":{"operationId":"createPlan","tags":["Payments"],"parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanCreateRequest"}}}},"responses":{"201":{"description":"Plan created","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/Plan"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"409":{"$ref":"#/components/responses/IdempotencyConflict"}}}},"/api/v1/payments/plans/{planId}":{"get":{"operationId":"getPlan","tags":["Payments"],"parameters":[{"name":"planId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Plan","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/Plan"}}}}}},"404":{"$ref":"#/components/responses/NotFound"}}}}},"components":{"securitySchemes":{"ServiceBearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Registered APICenter service JWT with gateway-enforced scopes."},"ApiKeyAuth":{"type":"http","scheme":"bearer","bearerFormat":"APICenterApiKey"}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":true,"description":"Unique key for safely retrying this payment mutation. Reuse the same key and request body after uncertain outcomes. A key used with a different request, an in-progress request, or an unresolved provider outcome returns HTTP 409.","schema":{"type":"string","minLength":16,"maxLength":255}},"CheckoutId":{"name":"checkoutId","in":"path","required":true,"schema":{"type":"string","pattern":"^chk_[A-Za-z0-9_]+$"}},"PaymentIntentId":{"name":"paymentIntentId","in":"path","required":true,"schema":{"type":"string","pattern":"^pi_[A-Za-z0-9_]+$"}},"CustomerId":{"name":"customerId","in":"path","required":true,"schema":{"type":"string","pattern":"^cus_[A-Za-z0-9_]+$"}},"RefundId":{"name":"refundId","in":"path","required":true,"schema":{"type":"string","pattern":"^ref_[A-Za-z0-9_]+$"}},"SubscriptionId":{"name":"subscriptionId","in":"path","required":true,"schema":{"type":"string","pattern":"^sub_[A-Za-z0-9_]+$"}},"InvoiceId":{"name":"invoiceId","in":"path","required":true,"schema":{"type":"string","pattern":"^inv_[A-Za-z0-9_]+$"}},"ReferenceId":{"name":"referenceId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255}}},"responses":{"BadRequest":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","required":["success","error"],"properties":{"success":{"const":false},"error":{"$ref":"#/components/schemas/Error"}}}}}},"NotFound":{"description":"Resource not found","content":{"application/json":{"schema":{"type":"object","required":["success","error"],"properties":{"success":{"const":false},"error":{"$ref":"#/components/schemas/Error"}}}}}},"IdempotencyConflict":{"description":"The key was used with a different request, is already processing, or the provider outcome remains unresolved. Inspect `error.code`; in particular, `PAYMENT_OUTCOME_UNKNOWN` requires reconciliation before using a new key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"Pending":{"description":"Provider outcome is pending confirmation","content":{"application/json":{"schema":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{"$ref":"#/components/schemas/PendingResource"}}}}}}},"schemas":{"Money":{"type":"object","required":["amountMinor","currency"],"properties":{"amountMinor":{"type":"integer","minimum":1,"description":"Final gross amount in minor PHP units."},"currency":{"type":"string","enum":["PHP"]}}},"CheckoutCreateRequest":{"type":"object","required":["referenceId","amount","successUrl","cancelUrl"],"properties":{"referenceId":{"type":"string","minLength":1,"maxLength":255},"amount":{"$ref":"#/components/schemas/Money"},"successUrl":{"type":"string","format":"uri"},"cancelUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"Consumer-owned correlation metadata. Do not include secrets."}}},"PaymentIntentCreateRequest":{"type":"object","required":["referenceId","amount"],"properties":{"referenceId":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"}}},"CustomerCreateRequest":{"type":"object","required":["customerReference","email"],"properties":{"customerReference":{"type":"string","minLength":1,"maxLength":255},"email":{"type":"string","format":"email"},"name":{"type":"string","maxLength":255}}},"RefundCreateRequest":{"type":"object","required":["paymentId","amount"],"properties":{"paymentId":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"reason":{"type":"string"}}},"SubscriptionCreateRequest":{"type":"object","required":["customerId","referenceId","priceId"],"properties":{"customerId":{"type":"string"},"referenceId":{"type":"string"},"priceId":{"type":"string","description":"APICenter-managed recurring price reference."}}},"Checkout":{"type":"object","required":["checkoutId","referenceId","status","amount"],"properties":{"checkoutId":{"type":"string"},"referenceId":{"type":"string"},"status":{"type":"string","enum":["created","pending","paid","failed","cancelled","expired"]},"amount":{"$ref":"#/components/schemas/Money"},"checkoutUrl":{"type":"string","format":"uri"},"aggregateVersion":{"type":"integer","minimum":1}}},"PaymentIntent":{"type":"object","required":["paymentIntentId","referenceId","status","amount"],"properties":{"paymentIntentId":{"type":"string"},"referenceId":{"type":"string"},"status":{"type":"string","enum":["requires_action","pending","processing","succeeded","failed","cancelled"]},"amount":{"$ref":"#/components/schemas/Money"},"aggregateVersion":{"type":"integer","minimum":1}}},"Customer":{"type":"object","required":["customerId","customerReference"],"properties":{"customerId":{"type":"string"},"customerReference":{"type":"string"},"email":{"type":"string","format":"email"},"name":{"type":"string"}}},"Refund":{"type":"object","required":["refundId","paymentId","status","amount"],"properties":{"refundId":{"type":"string"},"paymentId":{"type":"string"},"status":{"type":"string","enum":["pending","succeeded","failed"]},"amount":{"$ref":"#/components/schemas/Money"}}},"Subscription":{"type":"object","required":["subscriptionId","customerId","status"],"properties":{"subscriptionId":{"type":"string"},"customerId":{"type":"string"},"status":{"type":"string","enum":["active","past_due","cancelled","pending"]},"currentPeriodEnd":{"type":"string","format":"date-time"}}},"Invoice":{"type":"object","required":["invoiceId","status","amount"],"properties":{"invoiceId":{"type":"string"},"status":{"type":"string","enum":["draft","open","paid","past_due","void"]},"amount":{"$ref":"#/components/schemas/Money"}}},"PaymentCapabilities":{"type":"object","required":["currency","paymentMethods","resources"],"properties":{"currency":{"type":"string","enum":["PHP"]},"paymentMethods":{"type":"array","items":{"type":"string"}},"resources":{"type":"array","items":{"type":"string"}}}},"PaymentRecord":{"type":"object","required":["type","id","projectId","environment","referenceId","relatedResourceId","amountMinor","currency","status","createdAt"],"properties":{"type":{"type":"string"},"id":{"type":"string"},"projectId":{"type":"string"},"environment":{"type":"string","enum":["test","live"]},"referenceId":{"type":["string","null"]},"amountMinor":{"type":["string","null"],"pattern":"^-?[0-9]+$"},"currency":{"type":["string","null"]},"status":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"relatedResourceId":{"type":["string","null"]}}},"PaymentRecordPage":{"type":"object","required":["records"],"properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/PaymentRecord"}},"nextCursor":{"type":"string"}}},"PendingResource":{"type":"object","required":["status","resourceId"],"properties":{"status":{"type":"string","enum":["pending"]},"resourceId":{"type":"string"}}},"Error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"array","items":{"type":"string"}},"detail":{}}},"SuccessEnvelope":{"type":"object","required":["success","data"],"properties":{"success":{"const":true},"data":{}}},"ErrorEnvelope":{"type":"object","required":["success","error"],"properties":{"success":{"const":false},"error":{"$ref":"#/components/schemas/Error"},"meta":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"correlationId":{"type":"string"}}}}},"PlanCreateRequest":{"type":"object","required":["name","amount","interval"],"properties":{"name":{"type":"string","minLength":1,"maxLength":255},"description":{"type":"string","maxLength":1000},"amount":{"type":"integer","minimum":2000,"description":"Amount in PHP centavos."},"currency":{"type":"string","enum":["PHP"],"default":"PHP"},"interval":{"type":"string","enum":["weekly","monthly","yearly"]},"intervalCount":{"type":"integer","minimum":1,"maximum":10,"default":1},"cycleCount":{"type":"integer","minimum":2,"description":"Omit to bill indefinitely."},"metadata":{"type":"object","additionalProperties":{"type":"string"}}}},"Plan":{"type":"object","required":["planId","name","amount","currency","interval","intervalCount"],"properties":{"planId":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"amount":{"type":"integer","description":"Amount in PHP centavos."},"currency":{"type":"string","enum":["PHP"]},"interval":{"type":"string","enum":["weekly","monthly","yearly"]},"intervalCount":{"type":"integer"},"cycleCount":{"type":"integer"},"metadata":{"type":"object","additionalProperties":{"type":"string"}}}},"PaymentLinkCreateRequest":{"type":"object","required":["referenceId","amount","description"],"properties":{"referenceId":{"type":"string","minLength":1,"maxLength":255},"amount":{"$ref":"#/components/schemas/Money"},"description":{"type":"string","minLength":1,"maxLength":255},"remarks":{"type":"string","maxLength":255},"metadata":{"type":"object","additionalProperties":{"type":"string"},"description":"String values only. APICenter sets apicenter_reference_id to referenceId."}}},"PaymentLink":{"type":"object","required":["paymentLinkId","referenceId","amount","status"],"properties":{"paymentLinkId":{"type":"string"},"referenceId":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"description":{"type":"string"},"url":{"type":"string","format":"uri"},"status":{"type":"string","description":"active or archived from PayMongo, or paid once PayMongo reports a payment for the link."},"active":{"type":"boolean"},"archived":{"type":"boolean"},"referenceNumber":{"type":"string","description":"Reference number PayMongo assigned to the link."},"metadata":{"type":"object","additionalProperties":{"type":"string"}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"QrPhPaymentIntent":{"type":"object","required":["paymentIntentId","referenceId","status","amount","qrCodeImageUrl","expirySeconds"],"properties":{"paymentIntentId":{"type":"string"},"referenceId":{"type":"string"},"status":{"type":"string","description":"awaiting_next_action means the QR code is ready, not that payment is complete."},"amount":{"$ref":"#/components/schemas/Money"},"qrCodeImageUrl":{"type":"string","format":"uri"},"expirySeconds":{"type":"integer"}}},"QrPhPaymentIntentCreateRequest":{"type":"object","required":["referenceId","amount"],"properties":{"referenceId":{"type":"string","minLength":1,"maxLength":255},"amount":{"$ref":"#/components/schemas/Money"},"description":{"type":"string","maxLength":255},"expirySeconds":{"type":"integer","minimum":60,"maximum":9000,"default":1800}}}}}}