Merchant API Documentation
  1. Interface description
Merchant API Documentation
  • Interface description
    • Interface encryption and decryption instructions
  • Account interface
    • Account Balance
      POST
    • Dpt Transfer Card Account
      POST
    • Card account exchange
      POST
    • Exchange rate inquiry
      POST
  • Vcc interface
    • Scene list query
      POST
    • Cardbin query
      POST
    • Apply for a Card Opening
      POST
    • Cancel Card Application
      POST
    • Recharge
      POST
    • Card Inquiry
      POST
    • Transaction Inquiry
      POST
    • Refund
      POST
    • Shared Card Application
      POST
    • Shared Card Pagination Query
      POST
    • Shared Card Inquiry
      POST
    • Shared Card Status Change
      POST
    • Card Information Modification
      POST
    • Cardholder Application
      POST
    • Cardholder Details Inquiry
      POST
    • Cardholder Deletion
      POST
    • Card Operation Order Inquiry
      POST
    • Card Pagination Query
      POST
  • Pcc interface
    • Card Assign
      POST
    • Card Active
      POST
    • Card Pin Reset
      POST
  • Dpt interface
    • Digital currency acquiring
    • Digital Withdraw
  • Webhook notification
    • Webhook Notification
    • Transaction Result Notification type = card_transaction
    • Order Result Notification type = card_operate
    • Transaction fee type = trade_fee
    • 3ds notification type = card_3ds_otp
    • Digital Currency Payment Collection Notification type=dpt_payment_bill
    • Physical Card ActiveCode Notify type=card_activation_code
    • Physical Card Activation Status type=card_activation_status
  • Appendix
    • Transaction Type
    • Transaction Response Code
    • Currency
    • Mobile phone prefix
    • American State Two-letter Code
    • Country Code
  1. Interface description

Interface encryption and decryption instructions

Interface request:#

API parameters
Serial numerDomain nameVariable nameRequiredField TypeRemarks
1Version NumberversionMString(6)1.0.0
2Merchant NumberuserNoMNumberThe unique number provided to the merchant
3Data TypedataTypeMString(8)JSON
4Encrypted datadataContentMString(2048)The specific parameters are as follows for the encrypted data
1.
Convert dataContent to a JSON string.
2.
Perform base64 encoding on the JSON string.
3.
Use RSA 1024 to perform asymmetric encryption on the base64-encoded data to obtain a byte array.
4.
Convert the byte array into a hexadecimal string.

Interface response:#

Serial numerDomain nameVariable nameRequiredField TypeRemarks
1Success IdentifiersuccessMbooleanReturn true (success), false
2Error CodeerrorCodeOString(6)Success is false, errorCode has a value, see the error code description for details.
3Error DescriptionerrorMsgOString(256)Error description, not empty when success is false
4Return result informationresultOString(1024)When SUCCESS is false, it is empty; otherwise, it is not empty.
5Merchant NumberuserNoMString(11)The unique number provided to the merchant
6Whether it is asynchronousasyncMString(1024)True indicates that the business processing will callback to notify the result, and false indicates synchronous processing, result.
1、The format of the returned data is the same as the merchant's JSON. The merchant first decrypts it with the public key and then decodes it from base64 to obtain it.
Modified at 2024-12-11 08:47:58
Next
Account Balance
Built with