Yuansfer DOCS
  • Introduction
  • GUIDE
    • Online Payment
    • Point of Sale
      • Scan QR Code
      • Create QR Code
    • Plugins
    • Payment Methods
    • Financial Report
    • Security
    • Incident Priorities
    • SDK
    • Tutorials & Examples
      • PHP SDK
      • JAVA SDK
      • C# SDK
      • JS SDK
  • API REFERENCE V3
    • Sandbox Environment
      • Apply Sandbox Credentials
    • Signing API Parameters
    • Customers
      • Register Customer
      • Retrieve Customer
      • Update Customer
    • Payments
      • Online Payment
        • Yuansfer Checkout
        • Yuansfer Integrated Payment
          • Braintree Payments
          • Prepay
        • Recurring Payments
          • Authorize
          • Apply Token
          • Pay
          • Revoke
      • Point of Sale Payment
        • Scan QR Code
          • Add
          • Prepay
        • Create QR Code
    • Transaction Revert
      • Refund
      • Cancel
    • Transaction Data Search
      • Transaction Query
    • Payouts
      • Create Payee
      • Retrieve Payee
      • Balance
      • Send Money
      • Search Payments
    • Notes
  • 中文
Powered by GitBook
On this page

Was this helpful?

  1. API REFERENCE V3
  2. Payments
  3. Online Payment
  4. Recurring Payments

Apply Token

ApplyToken

POST https://mapi.yuansfer.com/auto-debit/v3/apply-token

The apply-token interface is used to recieve an AccessToken or refresh your current AccessToken.

Request Body

Name
Type
Description

merchantNo*

string

Merchant ID

storeNo*

string

Store ID

autoDebitNo*

string

The auto-debit record ID.

grantType*

string

Possible value are 'AUTHORIZATION_CODE', 'REFRESH_TOKEN'.

verifySign*

string

The parameter signature.

{
    "result": {
        "accessTokenExpiryTime": "2021-07-07T03:17:31+08:00",
        "autoDebitNo": "298222562856331071",
        "autoReference": "testAuth2021010801",
        "vendor": "GCASH",
        "refreshTokenExpiryTime": "2022-01-08T03:17:31+08:00"
    },
    "ret_code": "000100",
    "ret_msg": "apply success"
}

Response

Parameter

Type

Description

result

object

The result object.

ret_msg

string

The response return message.

ret_code

string

Result Object

Parameter

Type

Description

accessTokenExpiryTime

string

Expiry time of access token.

autoDebitNo

string

Unique ID of auto debit record in Yuansfer's system.

autoReference

string

Unique ID of auto debit in the merchant's system.

vendor

string

The possible payment channels are "gcash", "kakaopay", "alipay", "alipay_hk", "dana", "truemoney", "tng", "easypaisa", "bkash".

refreshTokenExpiryTime

string

Expiry time of refresh token.

{
    "merchantNo": "200043",
    "storeNo": "300014",
    "verifySign": "edeb2fe1c1be1c4d4763ac7b7c3a4098",
    "autoDebitNo": "298222562856331071",
    "grantType": "AUTHORIZATION_CODE"
}
{
    "result": {
        "accessTokenExpiryTime": "2021-07-07T03:17:31+08:00",
        "autoDebitNo": "298222562856331071",
        "autoReference": "testAuth2021010801",
        "vendor": "GCASH",
        "refreshTokenExpiryTime": "2022-01-08T03:17:31+08:00"
    },
    "ret_code": "000100",
    "ret_msg": "apply success"
}
{
   "ret_code": "000000",
   "retMsg": "data error : verifySign",
}

PreviousAuthorizeNextPay

Last updated 2 years ago

Was this helpful?

The response return code. For more details, see .

here