PartnerCard Activate v2

From Barion Documentation
Jump to navigation Jump to search

Barion API: Activate a partner card

POST /v2/PartnerCard/Activate

Use cases

This endpoint can activate an already issued partner card. It sets the PIN number associated with the card.

v2 This API endpoint is available in API v2 only.

Input properties

Property name Property type Limitations and constraints Description
PartnerKey Guid
  • Required
The secret API key of the partner, generated by Barion.
PrivateCardKey string
  • Required
The private key that was received in the reponse of PaymentCard/Prepare
CardPin string
  • Required
  • Min 4 Max 8 length alphanumeric string
The PIN code associated with the card

Output properties

Property name Property type Description
PrivateCardKey string The private key of the card.
CardActivationWasSuccessful bool True, if the process was successful.

Possible error responses

Error code Description
InvalidCardKey The card key provided either doesn't belong to a card or the card is already issued.