Recharge

Recharge for the card

Request URL

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

Request Header

NameTypeDescription

Content-Type*

string

application/json; chartset=UTF-8

Request Body

Refer to : common

Biz_data :

NameTypeDescription

pay_account_num*

string(48)

Payer Account Number

card_token*

string(20)

Card token

order_no*

string(32)

Order number,

Globally unique

amount*

String

Topup amount.

refer to : unit

currency*

string(3)

A 3-letter ISO currency code

reference

string(128)

Remarks

Response

{
    "code": "10000",
    "msg": "Success",
    "data": {
        "transaction_id": 100011
    },
    "random_key":"sdddddd2ww12dd",
    "sign_type": "RSA",
    "app_id": "2017051914172236111"
}
NameTypeDescription

transaction_id

string

Transaction ID

Example

curl --location --request POST 'https://card-api-sandbox.pagsmile.com/issuing/card/topup' \
--header 'Authorization: Basic MTYyNTgyOTIxNDUzMTY2Mzg6UGFnc21pbGVfc2tfZDUwMWQ1ZGNkNTI5OGQ5N2MwNmUzYjI4YjA2OWZjZmY3NDU5ZjY2NzNiMjFjMTFlYTY3NDM5MDgzOTZkOTYxNQ==' \
--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-bA9BAeC6",
    "sign_type": "RSA",
    "biz_data": {
         "card_token": "4192571",
         "order_no": "4192571_order",
         "pay_account_num": "200300000005",
         "amount": "2.1",
         "currency":"BRL",
         "reference":"remark"
    }
}'

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

Please use your own app_id when testing.

Last updated