Update Corporation Cardholder

Create Corporation Cardholder

Request URL

POST https://card-api-sandbox.pagsmile.com/issuing/holder/create-corpoation

Request Header

Name
Type
Description

Content-Type*

string

application/json; charset=UTF-8

Request Body

Refer to : common

Biz_data :

Name
Type
Description

holder_id*

long

Corporation Holder ID

contact_name*

string(100)

Contact Name

mobile*

string(16)

The whole mobile phone number.

Need to add an international area code

email*

string(80)

Email

corporation.corporation_id*

long

Corporation ID

corporation.registration_name*

string(100)

Registration Name

Format:CHARSETS_7

corporation.registration_code*

string(32)

Registration Code

corporation.registration_date*

string(20)

Registration Date

Format: yyyy-MM-dd

corporation.vat_code

string(32)

VAT Code

corporation.expires_on

string(20)

Expires On

Format: yyyy-MM-dd

corporation.business_scope

string(300)

Business Scope

corporation.registration_address.address_id*

long

Address ID

corporation.registration_address.line*

string(128)

The first line of the address.

Format:CHARSETS_4

corporation.registration_address.line2

string(128)

The second line of the address.

Format:CHARSETS_4

corporation.registration_address.postal_code*

string(4-8)

The address zip code, or postal code

corporation.registration_address.city_name*

string(4-80)

The address city

Format:CHARSETS_6

corporation.registration_address.state*

string(4-48)

The address state

Format:CHARSETS_6

corporation.registration_address.country_code*

string(2)

Country code,

refer to CountryCode

person.person_id*

long

Person ID

person.first_name*

string(50)

Director

First Name

person.last_name*

string(50)

Director

Last Name

person.middle_name

string(50)

Director

Middle Name

person.national_name

string(50)

Director

National Name

person.id_type*

integer

Director

ID Type

person.id_no*

string(6-20)

Director

ID Number

person.birthday*

string(20)

Director

Birthday

Format: yyyy-MM-dd

person.issuance_date

string(20)

Director

Issuance Date

Format: yyyy-MM-dd

person.expires_on

string(20)

Director

Expires On

Format: yyyy-MM-dd

person.citizenship_country*

string(2)

Director

Citizenship Country

person.address.address_id*

long

Address ID

person.address.line*

string(128)

Director

The first line of the address.

Format:CHARSETS_4

person.address.line2

string(128)

Director

The second line of the address.

Format:CHARSETS_4

person.address.postal_code*

string(4-8)

Director

The address zip code, or postal code

person.address.city_name*

string(4-80)

Director

The address city

Format:CHARSETS_6

person.address.state*

string(4-48)

Director

The address state

Format:CHARSETS_6

person.address.country_code*

string(2)

Director

Country code,

Refer to CountryCode

Response

{
    "code": "10000",
    "msg": "Success"
}

Example


curl --location --request POST 'https://card-api-sandbox.pagsmile.com/issuing/holder/update-corporation' \
--header 'Content-Type: application/json' \
--data-raw '{
    "app_id": "2017051914172236111",
    "partner_id":"000000000000001",
    "sub_partner_id":"",
    "timestamp": "2011-09-23 04:24:03",
    "format": "JSON",
    "version": "2.0",
    "random_key": "jJT3+PR9CSowcR2QOK5OzMjVmTSjGoectzYbO8lENHnboElE",
    "request_id": "F6bEd39c-EecF-C1a2-AFcb-bA9BAed1",
    "sign_type": "RSA",
    "biz_data": {
        "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