Apply Card

Apply Card

User Apply a card

Request URL

POST https://card-api-sandbox.pagsmile.com/issuing/card/apply

Request Header

NameTypeDescription

Content-Type*

string

application/json; chartset=UTF-8

Request Body

Refer to : common

Biz_data

NameTypeDescription

order_no*

string

Order number. Globally unique.

card_scheme*

integer

Card schema,

fix value:3,

refer to CardSchema

card_type*

integer

Card type.

Refer to :CardType

holder_id

long

Cardholder ID.

Choose one of field holder_id and holder (obj).

holder.mobile*

string(16)

Mobile,

needs to add an international area code

holder.first_name*

string(50)

First name

holder.last_name*

string(50)

Last name

holder.id_no*

string(6-20)

ID number

holder.id_type*

integer

Refer to :IdType

holder.issuance_date

string

Format:yyyy-MM-dd

holder.expires_on

string

Format:yyyy-MM-dd,

holder.email*

string(80)

Email

holder.birthday*

string

Date of Birth

format: yyyy-MM-dd

holder.gender*

integer

Refer to: Gender

holder.nationality_code*

string(2)

Nationality code,

refer to CountryCode

holder.address.line*

string(12-128)

The first line of the address.

Format:CHARSETS_4

holder.address.line2

string(128)

The second line of the address.

Format:CHARSETS_4

holder.address.postal_code*

string(4-8)

The address zip code, or postal code

holder.address.city_name*

string(4-80)

The address city

Format:CHARSETS_6

holder.address.state*

string(4-48)

The address state

Format:CHARSETS_6

holder.address.country_code*

string(2)

Country code,

refer to CountryCode

Choose one of field holder_id and holder (obj).

Response

{
    "code": "10000",
    "msg": "Success",
    "data":{
        "holder_id":1234,
        "holder_name":"string",
        "order_no": "cswwwww34",
        "order_status": 1,
        "order_count":1,
        "card_token":"string",
        "card_pan":"string",
        "card_scheme":1,
        "card_type":1
    },
    "random_key":"abssdddd2wdw==",
    "sign_type": "RSA",
    "app_id": "2017051914172236111"
}
NameTypeDescription

holder_id

long

Cardholder ID

holder_name

string

Cardholder name

order_no

string

Order number

order_status

integer

Order status,

Refer to: OrderStatus

order_count

integer

order count

card_token

string

Card token

card_pan

string

Card pan

card_scheme

integer

card scheme

card_type

integer

card type

Example

curl --location --request POST 'https://card-api-sandbox.pagsmile.com/issuing/card/apply' \
--header 'Content-Type: application/json' \
--data-raw '
{
    "partner_id": "000000000000001",
    "sub_partner_id": "",
    "app_id": "162051914172236138",
    "timestamp": "2011-09-23 04:24:03",
    "format": "JSON",
    "version": "2.0",
    "random_key": "jJT3+PR9CSowcR2QOK5OzMjVmTSjGoectzYbO8lENHnboElE",
    "request_id": "F6bEd39c-EecF-C1a2-AFcb-bA9BAeC8",
    "sign_type": "RSA",
    "biz_data": {
        "order_no": "F6bEd39c22211111112",
        "holder_id": 100032,
        "card_scheme": 3,
        "card_type": 3,
        "holder": {
            "mobile": "8512345679",
            "first_name": "fu",
            "last_name": "hello",
            "id_no": "7234559",
            "id_type": 1,
            "email": "123@162.com",
            "birthday": "1990-11-08",
            "gender": 1,
            "issuance_date": "2024-07-21",
            "expires_on": "2024-07-24",
            "nationality_code": "BR",
            "address": {
                "city_name": "bbbb",
                "country_code": "BR",
                "postal_code": "25115",
                "state": "proident enim",
                "line": "line11111111111111",
                "line2": "line2 officia adipisicing"
            }
        }
    }
}'

Note: 201************11 is pagsmile's test app id for sandbox

Please use your own app_id when testing.

Last updated