QueryAuthorization
POST/v1/authorization/query
Get details of authorization
Request
- application/json
Body
required
The unique ID of authorization which defined by our end
The unique ID of authorization which defined by your end
payer
object
The email address of the payer.
non-empty
payer_id payer id in merchant
name
object
The prefix, or title, to the party's name.
When the party is a person, the party's given, or first, name.
When the party is a person, the party's surname or family name. Also known as the last name. Required when the party is a person. Use also to store multiple surnames including the matronymic, or mother's, surname.
When the party is a person, the party's middle name. Use also to store multiple middle names including the patronymic, or father's, middle name.
The suffix for the party's name.
When the party is a person, the party's full name.
The ip address of the payer.
[Ecommerce, ContAuth]
trusted payer tag
[MERCHANT, MIDAS]
kind of payer. MidasPay should query or bind the card to merchant's user when payer_type is MERCHANT. MidasPay should query or bind the card to midas user when payer_type is MIDAS.
[UNKNOWN, FEMALE, MALE]
gender of payer.
Value must match regular expression ^\+?\d{5,20}$
The telephone number of the payer.
billing_address
object
Address of payer or payee
country (eg. CN) -- use region_code instead
<= 100 characters
ISO 3166-2 define
city
county
region code
street name
house info
<= 100 characters
address postal code
payer_address
object
Address of payer or payee
country (eg. CN) -- use region_code instead
<= 100 characters
ISO 3166-2 define
city
county
region code
street name
house info
<= 100 characters
address postal code
Value must match regular expression ^[a-zA-Z][a-zA-Z0-9_ ()-]{3,63}$
The text to be shown on the shopper's bank statement.We recommend sending a maximum of 22 characters, otherwise banks might truncate the string
payer login id
midas login id(muid), Apply only to midasbuy.
midas login id type, Apply only to midasbuy.
midas login id country, Apply only to midasbuy.
midas login id register time, Apply only to midasbuy.
additional payment info of channel, collected by checkout page.
The anonymous indicates whether the payer is anonymous (i.e., not authenticated). If true, the card binding information of the payer cannot be queried.
merchant id list to query contractlength should be 1 when auth_info is authorization_id or reference_authorization_idlength can be more than 1 when auth_info is payerrequested(in header) merchant_id will be used if this field is empty
Responses
- 200
- default
OK
- application/json
- Response
- Example
Response
Array [
]
authorization_details
object[]
The details of authorization
The unique ID of authorization which defined by our end
[UNKNOWN, PENDING, SUCCESS, FAILED, TERMINATED]
the status of authorization
card_info
object
The card bin of the card no.
The hash of the card no.
The mask of the card, it shows the first six and last four digits of the card.
The expire of month.
The expire of year.
The card verification value.
funding source name
The name of card holder.
card issuing country
card brand
card cooperation brand
card score, a larger value indicates a higher priority
visa、mc、amex、jcb、Discover : scheme; mada_card:mada_card ..
card number md5
The card verification value.
the selected brand for co-brand.
card contract id, used for card contract payment, if store_recurring_payment_method is true, this field will returned by payments rsp.
The unique ID of authorization which defined by your end
metadata
object
metadata when creating authorization
contract_payer
object
The email address of the payer.
non-empty
payer_id payer id in merchant
name
object
The prefix, or title, to the party's name.
When the party is a person, the party's given, or first, name.
When the party is a person, the party's surname or family name. Also known as the last name. Required when the party is a person. Use also to store multiple surnames including the matronymic, or mother's, surname.
When the party is a person, the party's middle name. Use also to store multiple middle names including the patronymic, or father's, middle name.
The suffix for the party's name.
When the party is a person, the party's full name.
The ip address of the payer.
[Ecommerce, ContAuth]
trusted payer tag
[MERCHANT, MIDAS]
kind of payer. MidasPay should query or bind the card to merchant's user when payer_type is MERCHANT. MidasPay should query or bind the card to midas user when payer_type is MIDAS.
[UNKNOWN, FEMALE, MALE]
gender of payer.
Value must match regular expression ^\+?\d{5,20}$
The telephone number of the payer.
billing_address
object
Address of payer or payee
country (eg. CN) -- use region_code instead
<= 100 characters
ISO 3166-2 define
city
county
region code
street name
house info
<= 100 characters
address postal code
payer_address
object
Address of payer or payee
country (eg. CN) -- use region_code instead
<= 100 characters
ISO 3166-2 define
city
county
region code
street name
house info
<= 100 characters
address postal code
Value must match regular expression ^[a-zA-Z][a-zA-Z0-9_ ()-]{3,63}$
The text to be shown on the shopper's bank statement.We recommend sending a maximum of 22 characters, otherwise banks might truncate the string
payer login id
midas login id(muid), Apply only to midasbuy.
midas login id type, Apply only to midasbuy.
midas login id country, Apply only to midasbuy.
midas login id register time, Apply only to midasbuy.
additional payment info of channel, collected by checkout page.
The anonymous indicates whether the payer is anonymous (i.e., not authenticated). If true, the card binding information of the payer cannot be queried.
{
"authorization_details": [
{
"authorization_id": "string",
"status": "UNKNOWN",
"card_info": {
"card_bin": "string",
"card_hash": "string",
"card_mask": "string",
"expiry_month": "string",
"expiry_year": "string",
"cvc": "string",
"funding_source": "string",
"holder_name": "string",
"card_issuing_country": "string",
"card_brand": "string",
"card_cooperation_brand": "string",
"score": "string",
"card_type": "string",
"card_md5": "string",
"card_pwd": "string",
"selected_brand": "string",
"card_contract_id": "string"
},
"reference_authorization_id": "string",
"metadata": {},
"contract_payer": {
"email_address": "user@example.com",
"payer_id": "string",
"name": {
"prefix": "string",
"given_name": "string",
"surname": "string",
"middle_name": "string",
"suffix": "string",
"full_name": "string"
},
"payer_ip": "string",
"payer_interaction": "Ecommerce",
"payer_type": "MERCHANT",
"payer_gender": "UNKNOWN",
"payer_telephone_number": "string",
"billing_address": {
"country": "string",
"state_or_province": "string",
"city": "string",
"county": "string",
"region_code": "string",
"street": "string",
"house_number_or_name": "string",
"postal_code": "string"
},
"payer_address": {
"country": "string",
"state_or_province": "string",
"city": "string",
"county": "string",
"region_code": "string",
"street": "string",
"house_number_or_name": "string",
"postal_code": "string"
},
"payer_statement": "string",
"payer_login_id": "string",
"midas_login_id": "string",
"midas_login_id_type": "string",
"midas_login_id_country": "string",
"midas_login_id_reg_time": "string",
"additional_payment_info": "string",
"anonymous": true
}
}
]
}
Error response structure
- application/json
- Response
- Example
Response
Array [
]
Array [
]
details
object[]
The type of the serialized message.
causes
object[]
{
"name": "string",
"message": "string",
"details": [
{
"@type": "string"
}
],
"debug_id": "string",
"causes": [
{
"cause": "string",
"solution": "string"
}
]
}