For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get Payment Templates Metamessage

Get Payment Method Templates Metamessage

This API retrieves the template details for various payment methods metamessage on the provided payment method ID.

Endpoint Information

  • Request Header: X-BH-TOKEN: ******

  • Request Method: GET

  • Request Path: /v2/payments/templates/metamessage

  • Authorization Required: Yes

Query Parameters

  • paymentId: (int) The ID of the payment method.

Response Structure

Field metadata description:

  • index: (number) The sequential number identifying the field's position.

  • indexCode: (string) A unique code or identifier for the field. If this field is not empty, then when adding the payment method, use this field for submission.

  • title: (string) The display label or name of the field. When the indexCode is empty, use this field name when providing payment method information.

  • textType: (enum) Numeric code indicating the type or format of the text input.

    • 1: number — Numeric characters only (0–9).

    • 2: letter — Alphabetic characters only (A–Z, a–z).

    • 3: alphanumeric — Letters and numbers only.

    • 4: string — Any free‑text string.

    • 5: image — Image data or a reference to an image. This type of field needs to be uploaded through the /v2/base/file/upload interface, and the returned relative path should be submitted as a parameter. If you are submitting multiple photos, please separate them with commas.

    • 6: ISO 3166‑1 — Country code (e.g., US, CN, JP).

    • 7: ISO 3166‑2 — Subdivision code (e.g., US‑CA, CN‑BJ).

    • 8: international dialing code — Country calling code (e.g., 1, 86).

    • 9: date (fixed format) — Date in yyyy‑MM‑dd format (e.g., 2026‑01‑01).

    • 10: dropdown list — The field is an enumerated value presented as a dropdown. The extendInfo field stores a JSON string that defines the options, e.g., [{"code":"CURP","name":"Curp type"},{"code":"RFC","name":"Rfc type"}].

  • promptText: (string) Placeholder or instructional text shown inside the input field.

  • minLimit: (number) Minimum allowed value or length for the field input.

  • maxLimit: (number) Maximum allowed value or length for the field input.

  • isOptional: (boolean) Indicates whether the field is optional (true) or required (false).

  • isAccount: (boolean) Specifies whether the field is used for account-related purposes.

  • extendInfo: (string) Additional metadata or extended configuration data in string format.

The response will include the following fields:

Last updated