Alipay+Alipay+

APIs and SDKs

This section introduces the APIs and SDKs that are used in Auto Debit.

APIs

The following table lists the APIs in terms of category, endpoint, and calling direction. You can click the interface name to see the detailed specification of each API.

Category

Interface name

Endpoint

Direction

Authorization

prepare

/aps/api/v1/authorizations/prepare

ACQP > Alipay+

applyToken

/aps/api/v1/authorizations/applyToken

ACQP> Alipay+

cancelToken

/aps/api/v1/authorizations/cancelToken

ACQP > Alipay+

authNotify

/aps/api/v1/authorizations/authNotify

Alipay+ACQP

consultUnbinding

/aps/api/v1/authorizations/consultUnbinding

Alipay+ACQP

Payment

pay (Auto debit)

/aps/api/v1/payments/pay

ACQP > Alipay+

consultPayment

/aps/api/v1/payments/consultPayment

ACQP > Alipay+

notifyPayment

/aps/api/v1/payments/notifyPayment

Alipay+ACQP

inquiryPayment

/aps/api/v1/payments/inquiryPayment

ACQP > Alipay+

cancelPayment

/aps/api/v1/payments/cancelPayment

ACQP > Alipay+

refund

/aps/api/v1/payments/refund

ACQP > Alipay+

Registration

registration

/aps/api/v1/merchants/registration

ACQP > Alipay+

inquiryRegistrationStatus

/aps/api/v1/merchants/inquiryRegistrationStatus

ACQP > Alipay+

notifyRegistrationStatus

/aps/api/v1/merchants/notifyRegistrationStatus

Alipay+ > ACQP

SDK

The following tables list the interfaces that are provided by the Alipay+ ACQP SDK. You can click the interface name to see the detailed specification of each interface.

Web/WAP

Interface name

Direction

AlipayPlus.create()

ACQP -> SDK

loadAn

ACQP -> SDK

inquireAuthorizationOption()

ACQP -> SDK

result.resultStatus

result.resultCode

Cancellation status

Further Actions

S

SUCCESS

Cancellation succeeds

The merchant can reinitiate a payment request.

F

...AlipayPlus.create()

Cancellation failsAlipayPlus.create()

Take actions according to the error code in the Result code section in API reference for cancelPayment.

Note: If the result.resultCode value returns as

CANCEL_WINDOW_EXCEED, please call the refund API.