2.3.3 Mock Binding Data
Path:openapi/card/mock/binding
Method:POST
Content-Type:application/json
Response Content-Type:application/json
Description:
This interface is only used for mock data in the test environment, and there is no such interface in the production environment! ! !
When you need to test the 2.1.27 Binding api in a test environment,
you can generate card binding data by calling this api.
Example Request:
{
"card_type_id": "6000005"
}
Request Parameter:
Parameter Name | Type | Required | Description |
---|---|---|---|
card_type_id | string | true | Card type ID; currently there are two values: 6000005 needs to call 2.1.3 Activation api to activate it; 90000007 will be activated automatically |
API Response:
Parameter name | Type | Description |
---|---|---|
code | string | Error code |
msg | string | Error message |
data | array | Binding card list |
card_number | string | Card number |
secret | string | secret |
card_type_id | string | Card type ID |
Example Response:
{
"code": "00000",
"msg": "ok",
"data": [
{
"card_number": "60000050000401001",
"secret": "888888",
"card_type_id": "6000005"
}
]
}