Skip to content

Mock funds available

Request

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.

Security
JWT
Path
idstringrequired

The unique identifier of the payment to mark funds as available for. The payment must already be in success status, must not have direct settlement enabled, and must have a transaction recorded against it; otherwise the call is rejected with 400. If funds are already available the call is a no-op and returns 200.

Example:payt_E602dMzgjpDC
curl -i -X PATCH \
  https://api.glomopay.com/api/v1/payment/payt_E602dMzgjpDC/mock-funds-available \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Payment funds available status updated successfully

Bodyapplication/json
dataobject(Payment)
messagestring

Success message

Example:"Payment funds available status updated successfully"
Response
{ "data": { "id": "payt_E602dMzgjpDC", "payin_id": "plink_E602dMzgjpDC", "payin_type": "payment_link", "subscription_id": "sub_68877570b5zeE", "status": "in_progress", "compliance_status": "action_required", "rfi": { … }, "rfis": [ … ], "rfi_id": "rfi_6a7c5018ZGuKP", "rfi_documents": [ … ], "payment_currency": "AED", "payment_amount": 374580, "converted_currency": "USD", "converted_amount": 100000, "requested_currency": "USD", "requested_amount": 100000, "fx_rate": 0.0105063, "effective_fx_rate": 0.0104801, "purpose_code": "S0001", "sender_name": "John Doe", "notes": { … }, "request_id": "your-internal-id", "error_code": "PAYMENT_DECLINED", "error_description": "The payment attempt was declined. This could be due to issuer rejection, risk assessment, or restrictions on the card or account. The customer should contact their bank or try a different payment method.", "customer_error_description": "Your payment could not be completed. Please try a different payment method or contact your bank.", "paid_at": "2024-12-06T11:38:37.130Z", "fee_bearer": "customer", "fee_collection_mode": "immediate", "created_at": "2024-12-06T11:38:37.130Z", "updated_at": "2024-12-06T11:38:37.130Z", "progress": { … }, "customer_id": "cust_E602sMzgjpDC", "merchant_id": "merch_68c777fcOOMpl", "product_name": "ShieldGuard Insurance", "product_description": "Simple, monthly insurance plan that covers your basic belongings and key digital assets", "country": "Ind", "fees": { … }, "fee_breakdown": { … }, "documents": [ … ], "settlement_id": "string", "funds_available": true, "partner_transaction_reference_id": "ptr_6819d8046mpKt", "payment_method": { … }, "payer_relationship": "myself", "nre_nro_declaration": true, "batch_id": null, "credited_to_beneficiary": false, "reference_broker_name": "Example Broker Ltd", "payment_session_id": "psess_6819d8046mpKt", "auto_debit?": true }, "message": "Payment funds available status updated successfully" }