Add Payment Method

This API allows you to add a new payment method for a merchant.

Endpoint Information

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

  • Request Header: Content-Type: application/json

  • Request Method: POST

  • Request Path: /v2/payments

  • Authorization Required: Yes

Request Body Parameters

The request body should include the following fields:

{
  "merchantId": 0,         // (number: id of the merchant id)
  "paymentId": 0,          // (number: payment ID)
  "country": "",            // (string: name of the country)
  "fiat": "",               // (string: name of the fiat currency)
  "realName": "",           // (string: real name of the account holder)
  "fieldJson": {            // (object: field JSON of the payment template)
       [string]: [string]   // (key-value pairs as per the payment template)
  },
  "remark": ""              // (string: remark about the payment method)
}

Authorization

This request requires authorization.

Response Structure

The response will include the following fields:

Example Request (Mexico - MXN) 58: Automated SPEI - Arcus

Example Request (Mexico - MXN) 105: SPEI - FINCO PAY

Example Request (Argentina - ARS)

Example Request (Colombia - COP)

Example Request (Brazil - BRL)

Example Request (Peru - PEN)

Example Request (United States - USD)

Example Request (Hong Kong - USD)

Example Response

Notes

  • The fieldJson object should match the required fields for the specified payment method template.

  • Ensure that valid authorization tokens are included in the request headers for successful execution.

Last updated