Register Card

Register Card for Card Payment Method

Register Card can be triggered to register the card information of the customer for future one click and two click transactions.



Register Card Status Method

HTTP MethodEndpointDefinition
GETBASE_URL/v2/card/registerRegister card information (card number and expiry) to be used for two clicks and one click


Register Card Request

See sample on the right -- try it yourself!

Query ParameterDescriptionTypeRequired
card_numberThe 16 digits card number.StringRequired
card_exp_monthThe card expiry month in MM format.StringRequired
card_exp_yearThe card expiry year in YYYY format.StringRequired
client_keyPartner client key credential. For more details, refer Retrieving API Access Keys .StringRequired
callbackFunction name used for JSONP callbackStringOptional


Register Card Response

{
  "status_code": "200",
  "saved_token_id": "436502PjvfpHomPBggDvfipaIYhV0009",
  "transaction_id": "50e7c4ac-772e-43fa-94fb-52559bce4fc0",
  "masked_card": "48111111-1114"
}
JSON AttributeDescriptionType
transaction_idTransaction ID given by Midtrans.String
masked_cardFirst 8-digit and last 4-digit of customer's credit card number.String
status_codeStatus code of transaction charge result.String
saved_token_idToken id used for Two Clicks or One Click.String
Language
Credentials
Basic
base64
:
Click Try It! to start a request and see the response here!