The transfer interface

The transfer interface (optional interface)

This interface is required if you are not only paying for the payment, but also paying the user, giving the user a refund, and redeeming the user. You only need to pass in the other party's B.APP account to complete the automatic transfer.

How to use: your server will post the parameters to our interface in Json format, and carry the SSL certificate to submit the transfer content.

https://bapi.app/api/v2/transfer/user

Transfer method::POST

How to use: your server will post the parameters to our interface in Json format, and carry the SSL certificate to submit the transfer content.

Attention: this interface is disabled by default. You need to find a customer service to apply. An SSL certificate will be provided when it is opened. At the same time, you can ask the customer service to demo.

Parameter request

Parameters Required Types Description
order_id Required string(32) The merchant order number, up to 32 characters, please ensure the uniqueness of the order number
account Required string(30) The recipient's B.app login account, do not add the area code in front of it (Note: does not support transfer to yourself)
amount Required long The order amount, unit (Cent), and amount > 0
amount_type Required string(16) The currency unit of the order, currently only supports RMB, so it will only be: CNY
app_key Required string(16) The app key is generated by the platform. Get in "Business Backend - Business Information"
sign Required string(32) Sign it, then click here to view the signature generation method
time Required long The server time when initiating payment, with 13-bit timestamp, is used for security reasons to defend against request resend attacks
order_ip Optional string(45) The order originating end ip (user's ip), such as: 114.114.114.114
description Optional string(50) The transfer description

Example request

  1. $ curl -X POST-d 'sign=fe9f2493cb9418ded81714e133bd1efb&app_key=65f0806337b6933f&out_trade_no=456&nonce_str=xxx&total_fee=300&account=15018888888' https://bapi.app/api/v2/transfer/user

Returned parameter

Parameter format::application/json

Parameters Types Description
code int The status code, 200 means successful acquisition, other status codes, please refer to the information content returned by msg
msg string Prompt message

Returned example

  1. {
  2. "code": 200,
  3. "msg": "ok",
  4. }