# Payment

This resource represents a payment attempt made by your customer. The payment can either be successfully completed or failed, depending on various factors.

 - [Payment](https://docs.glomo.one/api-reference/openapi/payment/payment.md): Schema: #/components/schemas/Payment
 - [POST /payment](https://docs.glomo.one/api-reference/openapi/payment/createpayment.md): Creates a payment for an order or subscription. For initial payments, card details and a callback URL are required. For subsequent payments on `as_presented` subscriptions, the card from the last succ
 - [GET /payment](https://docs.glomo.one/api-reference/openapi/payment/getpayments.md): Returns a list of your payments, sorted by creation date with the most recent first. Filters combine with AND, with one exception: `payin_id` and `subscription_id` are mutually exclusive and sending b
 - [POST /payment/mock](https://docs.glomo.one/api-reference/openapi/payment/createmockpayment.md): This API is only available in sandbox mode. Sends a mock bank transfer into one of your virtual accounts. See [Test it in sandbox](/payin/payment-methods/bank-transfer/set-up#test-it-in-sandbox).
 - [GET /payment/{id}](https://docs.glomo.one/api-reference/openapi/payment/getpaymentbyid.md): Retrieves a single payment by ID. The payment must belong to the merchant the API key authenticates as — an ID that exists but belongs to another merchant returns `404`, not `403`. An ID that is not a
 - [GET /payment/{id}/eligible-payins](https://docs.glomo.one/api-reference/openapi/payment/geteligiblepayins.md): Lists the open payment links and orders that an unmatched bank transfer can connect to. For the full flow, see [Resolving Action Required Payments](/payin/action-required).
 - [POST /payment/{id}/connect-payin](https://docs.glomo.one/api-reference/openapi/payment/connectpayin.md): Connects an unmatched bank transfer to one of your open payment links or orders. Find the payin first with [List eligible payins](/api-reference/openapi/payment/geteligiblepayins). For the full flow,
 - [PATCH /payment/{id}/mock-funds-available](https://docs.glomo.one/api-reference/openapi/payment/mockupdatepaymentfundsavailable.md): This API is only available in sandbox mode. Updates the funds_available status of a payment to simulate the availability of funds for testing purposes.
