Creating Payment Method

This guide provides detailed information about managing payment methods, including how to retrieve payment method templates and add new payment methods.

I. Get Payment Method Templates

Endpoint Information

  • Request Method: GET

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

  • Request Path: /v2/payments/templates

  • Authorization Required: Yes

Request Parameters

Query Parameters

Parameter
Type
Required
Description

paymentId

number

Yes

ID of the payment method

Response Structure

The response will contain the following fields:

{
  "code": 0,
  "msg": "",
  "data": {
      [string]: [string]
  }
}

Example Responses

Payment Type 1: Bank Information

Mexico Bank

Argentina Bank

Payment Type 2: SEPA Transfers

SEPA

WIRE / ACH Transfers

Payment Type 3: SWIFT / CHATS

II. Add Payment Method

Endpoint Information

  • Request Method: POST

  • Request Path: /v2/payments

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

  • Authorization Required: Yes

Request Parameters

Request Body

The request body should include the following parameters:

Parameter
Type
Required
Description

merchantId

number

Yes

ID of the merchant id

paymentId

number

Yes

ID of the payment method

country

string

Yes

Name of the country

fiat

string

Yes

Name of the fiat currency

realName

string

No

Real name of the account holder

fieldJson

object

Yes

Field JSON of the payment template, format { [string]: [string] }

remark

string

No

Additional remarks for the payment method

Request Example

Response Structure

The response will contain the following fields:

Notes

  • Ensure to provide valid parameters for successful creation of payment methods.

  • The merchantId and paymentId must correspond to existing configurations in the system.

  • Pay attention to the status and failure reason in the response for troubleshooting.