Skip to content

Create a mock payment

Request

This API is only available in sandbox mode. Sends a mock bank transfer into one of your virtual accounts. See Test it in sandbox.

Security
JWT
Bodyapplication/jsonrequired
payin_idstring

The order (order_) or payment link (plink_) that the customer pays. Optional.

Example:"order_678a4c88hpAjf"
amountinteger, [ 1 .. 2147483647 ]

Amount in the smallest unit of the currency. 10000 is 100.00 USD. Required without a payin_id. With a payin_id, it defaults to the payin's quoted amount. In sandbox, exactly 6623 forces a sanctions-screening hit on a matched payment.

Example:10000
currencystring, (iso-4217)

The currency code in ISO 4217 format. Required without a payin_id. Not allowed with a payin_id.

Example:"USD"
payment_methodstring

Optional. Only BankTransfer is accepted.

Value:"BankTransfer"
Example:"BankTransfer"
transfer_typestringrequired

The rail of the transfer.

Enum:"local""swift"
Example:"local"
senderobject

The sender of the transfer. Optional, and so is every field. Without a value, a field takes the payin customer's detail where one exists, otherwise the placeholder below.

curl -i -X POST \
  https://api.glomopay.com/api/v1/payment/mock \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "payin_id": "order_678a4c88hpAjf",
    "transfer_type": "local"
  }'

Responses

Payment created successfully

Bodyapplication/json
idstringread-only

The unique identifier for the payment.

Example:"payt_E602dMzgjpDC"
payin_idstring or null

The unique identifier for the payin. This is set only for payments associated to a payin.

Example:"plink_E602dMzgjpDC"
payin_typestring or null

The type of the payin. This is set only for payments associated to a payin.

  • payment_link — the payment was made through a payment link.
  • orders — the payment was made against an order.
  • add_funds — the payment tops up your own Glomo balance.
Enum:"payment_link""orders""add_funds"null
subscription_idstring or null

The unique identifier for the subscription. This is set only for subscription-related payments.

Example:"sub_68877570b5zeE"
statusstringread-only

The status of the payment.

  • in_progress — the payment has started and has not completed yet.
  • action_required — Glomo needs more information before the payment can complete. Respond to the open RFI to continue.
  • under_review — the information you submitted is being reviewed.
  • success — the payment completed. Terminal. Funds can still be held for compliance review; see compliance_status.
  • failed — the payment did not complete. Terminal.
Enum:"in_progress""action_required""under_review""success""failed"
compliance_statusstring or nullread-only

The compliance review status of the payment. Present only for payments that have been screened for sanctions or transaction-monitoring holds; null for payments that were not screened. This is separate from status — a payment can be status: success while compliance_status is action_required, meaning the payment itself completed but funds are held pending compliance review. See the rfi field for what's required when action_required.

  • under_review — the payment is being reviewed and its funds are held.
  • action_required — documents are needed before the review can finish. Respond to the open RFI.
  • approved — the review passed and the funds are released.
  • rejected — the payment did not pass the review.
Enum:"action_required""under_review""approved""rejected"null
Example:"action_required"
rfiobjectread-only

Present only when a compliance Request For Information exists on this payment. Omitted when the payment was held with no request, or cleared directly. While a request is open, this is the newest open request; see rfis for all of them. Describes why the payment was flagged and what's required to resolve it. RFIs that are not part of a compliance review, such as an LRS document request, are in rfi_id and rfi_documents instead.

rfisArray of objectsread-only

Every open compliance request on this payment, oldest first. Omitted when no request is open. More than one can be open at a time; answer each id with the Respond to an RFI endpoint.

rfi_idstringread-only

The newest open RFI on this payment of any kind, for example an LRS document request. Present only while an RFI is open. Respond to it with the Respond to an RFI endpoint.

Example:"rfi_6a7c5018ZGuKP"
rfi_documentsArray of objectsread-only

The documents requested by the RFI in rfi_id. Present only while an RFI is open.

payment_currencystring, (iso-4217)

The currency in which the customer pays. The currency code is in ISO 4217 format. For example, AED.

Example:"AED"
payment_amountnumber, >= 1

The total amount the customer pays (includes customer-borne fees if applicable), in the smallest unit of payment_currency, the customer-side currency. 374580 is 3,745.80 AED when payment_currency is AED.

Example:374580
converted_currencystring, (iso-4217)

The settlement currency after conversion. The currency code is in ISO 4217 format. For example, USD.

Example:"USD"
converted_amountnumber, >= 1

The payment amount in the smallest unit of converted_currency, the merchant-side currency. 100000 is $1,000.00 when converted_currency is USD. Always the same value as requested_amount. For a payment against an order, payment link or subscription, it is the amount requested and excludes customer-borne fees, which are counted only in payment_amount. A bank transfer that is not yet connected to an order or payment link shows the amount and currency received. Once it is connected and the amount received matches the payin's quote, it shows the merchant-side amount like any other payment.

Example:100000
requested_currencystring, (iso-4217)

The currency that was originally requested by the merchant. The currency code is in ISO 4217 format. For example, USD.

Example:"USD"
requested_amountnumber, >= 1

The amount requested by the merchant, in the smallest unit of requested_currency, the merchant-side currency. 100000 is $1,000.00 when requested_currency is USD. Always the same value as converted_amount. For a payment against an order, payment link or subscription, it excludes customer-borne fees, which are counted only in payment_amount. A bank transfer that is not yet connected to an order or payment link shows the amount and currency received. Once it is connected and the amount received matches the payin's quote, it shows the merchant-side amount like any other payment.

Example:100000
fx_ratenumber or null, (float)read-only

The mid-market exchange rate applied to the payment, before FX fees, as units of converted_currency per one unit of payment_currency. 0.0105063 means 1 INR = 0.0105063 USD. 1 when the two currencies are the same.

Example:0.0105063
effective_fx_ratenumber or null, (float)read-only

The rate after the FX fee only, as units of converted_currency per one unit of payment_currency. 1 when the two currencies are the same. null when no rate is recorded.

Example:0.0104801
purpose_codestring

Purpose code recorded against this payment, from the fixed set of payin purpose codes. For a payment connected to a payin this is normally the payin's purpose code. It can be empty.

Example:"S0001"
sender_namestring

The name of the sender.

Example:"John Doe"
notesobject

Custom field values for this payment. See Custom Fields.

Example:
{ "policy_number": "POL-001" }
request_idstring or nullread-only

The request_id you sent when creating this payment; null if you sent none. Look the payment up with GET /v1/payments?request_id=<your_request_id>.

Example:"your-internal-id"
error_codestringread-only

The error code for the respective error. Error code mappings can be found in the product guide.

Example:"PAYMENT_DECLINED"
error_descriptionstringread-only

The merchant-facing error description corresponding to the error code. Operational copy for the merchant. See customer_error_description for the copy meant for the end-customer.

Example:"The payment attempt was declined. This could be due to issuer rejection, risk assessment, or restrictions on the card or account. The customer should
customer_error_descriptionstring or nullread-only

Customer-facing error copy, written for the merchant to relay to their end-customer. Derives from the same error_code as error_description but targets a different audience. null when there is no error_code, or when the error code has no customer-facing variant (some codes are merchant-only, e.g. ACCOUNT_LOCKED, LOGGED_IN_ELSEWHERE, FUNCTIONALITY_RESTRICTED).

Example:"Your payment could not be completed. Please try a different payment method or contact your bank."
paid_atstring or null, (date-time)read-only

When the payment was completed, as an ISO 8601 date-time in UTC. null if the payment has not been paid.

Example:"2024-12-06T11:38:37.130Z"
fee_bearerstring

The party bearing the fees for the payment.

Enum:"customer""merchant""split"
Example:"customer"
fee_collection_modestring or null

When merchant-borne fees are collected. immediate deducts fees up front; deferred invoices them later. null when not applicable.

Enum:"immediate""deferred"null
Example:"immediate"
created_atstring, (date-time)read-only

When the payment was created, as an ISO 8601 date-time in UTC.

Example:"2024-12-06T11:38:37.130Z"
updated_atstring, (date-time)read-only

When the payment was last updated, as an ISO 8601 date-time in UTC.

Example:"2024-12-06T11:38:37.130Z"
progressobjectread-only

LRS payments only. The last checkout stage Glomo recorded for the customer, so you can tell early from late drop-off. Enabled per merchant by the same switch as checkout events: contact your Glomo account manager. Absent when the switch is off, when the payment is not LRS, or when no stage was recorded. last_stage only moves forward, and recording stops at confirmed or when the payment fails. A payment can reach pending, success or failed without confirmed, so read status for the outcome. A change does not send a webhook. New stage and step values can be added, so ignore values you do not recognise.

customer_idstring

The unique identifier for the customer.

Example:"cust_E602sMzgjpDC"
merchant_idstring

The unique identifier for the merchant (business) that owns the payment.

Example:"merch_68c777fcOOMpl"
product_namestring or nullread-only

The name of the product associated with the payment.

Example:"ShieldGuard Insurance"
product_descriptionstring or nullread-only

The description of the product associated with the payment.

Example:"Simple, monthly insurance plan that covers your basic belongings and key digital assets"
countrystring, (iso-3166-1-alpha-3)

The country of the sender. Country should be sent as a ISO 3166-1 alpha-3 code.

Example:"Ind"
fee_breakdownobject

A detailed breakdown of the fees charged for the payment, grouped by fee type. Each fee type holds one entry per fee bearer, with any applicable taxes (for example, GST) nested under the entry's taxes array.

documentsArray of objects(AttachedDocument)

The attached documents for the payment.

settlement_idstring

A unique identifier generated by Glomo for the settlement batch in which this payment is included. This ID can be used to track and reconcile payments against corresponding settlements.

funds_availableboolean

Indicates whether the funds for this payment are currently available with Glomo.

Values:

  • true - Funds are available with Glomo and can be included in a payout or settlement
  • false - Funds are still in transit with Glomo's payment partners and are not yet available for use
partner_transaction_reference_idstringread-only

Transaction ID common to both partners in a partnership payment, so both partners can match the same remittance. Present only for partnership payments.

Example:"ptr_6819d8046mpKt"
payment_methodobject

Specifies the method used by the customer to complete the payment.

Example:
{ "summary": "Bank Transfer Payment Method (SWIFT, sender bank identified by BIC)", "value": { "type": "bank_transfer", "details": { … } } }
payer_relationshipstring or nullread-only

Card payments only. The relationship the customer declared to the card holder, for example myself, spouse, parent, grandparent or child. null for other payment methods or when not collected. See Declaration collection.

Example:"myself"
nre_nro_declarationboolean or nullread-only

Card payments only. Whether the customer confirmed that the payment originates from an NRE/NRO Indian account. null for other payment methods or when not collected.

Example:true
batch_idstring or nullread-only

The batch this payment was created in, for payments charged in bulk. null otherwise.

Example:null
credited_to_beneficiarybooleanread-only

LRS broker flows. true once the partner broker has credited the funds to the beneficiary, which also sends the credited_to_beneficiary payment webhook. false otherwise. Omitted on a payment that has reference_broker_name.

Example:false
reference_broker_namestring or nullread-only

LRS broker flows. The name of the broker whose payment this payment is linked to. Present only on a linked payment.

Example:"Example Broker Ltd"
payment_session_idstringread-only

The Payment Session this payment belongs to. Present only when the payment was made through a Payment Session.

Example:"psess_6819d8046mpKt"
auto_debit?boolean or nullread-only

Indicates whether the payment was made via auto-debit. Present only for subscription payments; true for an auto-debit payment, false for a manual subscription payment.

Example:true
feesobjectdeprecated

Deprecated. Use fee_breakdown instead. The fees charged for the payment, aggregated per fee type. fee_breakdown provides a per-bearer breakdown including any applicable taxes.

Response
{ "id": "payt_68f1c2a4mK7tQ", "compliance_status": null, "payin_id": "order_678a4c88hpAjf", "payin_type": "orders", "customer_id": "cust_E602dMzgjpDC", "merchant_id": "merch_68c777fcOOMpl", "subscription_id": null, "product_name": null, "product_description": null, "status": "success", "payment_amount": 10000, "payment_currency": "AED", "converted_amount": 10000, "converted_currency": "AED", "requested_amount": 10000, "requested_currency": "AED", "purpose_code": "P1401", "sender_name": "John Doe", "paid_at": "2026-10-14T06:30:00Z", "country": "ARE", "fees": { "txn_fee": { … }, "fx_fee": { … }, "referral_fee": { … } }, "documents": [], "payment_method": { "type": "bank_transfer", "details": { … } }, "fee_bearer": "merchant", "fee_collection_mode": null, "settlement_id": null, "error_code": null, "error_description": null, "customer_error_description": null, "fee_breakdown": { "fx_fee": [], "txn_fee": [], "referral_fee": [] }, "created_at": "2026-10-14T06:30:00Z", "updated_at": "2026-10-14T06:30:00Z", "funds_available": true, "payer_relationship": null, "nre_nro_declaration": null, "notes": {}, "batch_id": null, "request_id": null, "credited_to_beneficiary": false }