GetAlipayTransferStatus

Updated at:

Queries the tipping status of the Alipay wallet bound to an application.

Try it now

You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples.

Try it now

Authorization information

The following table describes the authorization information for this API. You can use it in the Action element of a RAM permission policy statement to grant a RAM user or RAM role the permission to call this API. Details:

  • Operation: refers to the specific permission point.

  • Access level: refers to the access level of each operation. Valid values: Write, Read, or List.

  • Resource type: refers to the resource types that support authorization in the operation. Details:

    • Required resource types are marked with a preceding *.
    • For operations that do not support resource-level authorization, All Resources is used.
  • Condition key: refers to the condition keys defined by the cloud service itself.

  • Related operation: refers to other permissions required to successfully perform the operation. The caller must also have the permissions of the related operations for the operation to succeed.

OperationAccess levelResource typeCondition keyRelated operation
sfm:GetAlipayTransferStatusnone
*All Resources
*
    None
None

Endpoint

GETPOST/openapi/alipay/transfer/statusHTTP/1.1

Request body

workspace_idstringOptional

The Bailian workspace ID.

Example: llm-xxxxxxxxxxxx
codestringOptional

The tipping code returned by the Alipay tipping link request.

Example: xxx-xxxx

Response fields

object

Schema of Response

requestIdstring

The unique ID of the request.

Example: 6a71f2d9-f1c9-913b-818b-11402910xxxx
dataobject

The tipping result data.

codestring

The code corresponding to the tipping.

Example: 0
walletItemCodestring

The Alipay product wallet code.

Example: xsdfsdf
mainAccountIdstring

The primary account ID (ignored by the API).

Example: 1007576424487905
accountIdstring

The sub-account ID (ignored by the API).

Example: 1348393307144609
alipayOrderIdstring

The Alipay order ID.

Example: 1234234
statuslong

The tipping status

  • 1 (Succeeded)
  • 0 (Deleted)
  • 2 (Pending tipping)
  • 3 (Canceled)
  • 4 (Refunded)
  • 5 (Closed)
  • 6 (Failed)
  • 7 (Disputed or abnormal)
Example: 1
creatorstring

The creator (ignored by the API).

Example: 234234
modifierstring

The modifier (ignored by the API).

Example: 234234
alipayOrderDetailstring

The payment details (ignored by the API).

Example: {}
titlestring

The transfer title.

Example: test
qrURLstring

The tipping link (ignored by the API).

transAmountstring

The total order amount. Unit: CNY.

Example: 0.22
scopestring

The ownership status of the tipping application.

Example: publish

Response example

Success response

JSON format

{
  "requestId": "6a71f2d9-f1c9-913b-818b-11402910xxxx\n",
  "data": {
    "code": 0,
    "walletItemCode": "xsdfsdf",
    "mainAccountId": 1007576424487905,
    "accountId": 1348393307144609,
    "alipayOrderId": 1234234,
    "status": 1,
    "creator": 234234,
    "modifier": 234234,
    "alipayOrderDetail": {},
    "title": "test",
    "qrURL": "https://xxx.aliyun.com",
    "transAmount": 0.22,
    "scope": "publish"
  }
}

Error codes

Visit the Error Center to view more error codes.