PartnerCard Issue v2

From Barion Documentation
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Barion API: Issue a partner card

POST /v2/PartnerCard/Issue

Use cases

This endpoint can issue an already prepared partner card. It can attach it to a specific Barion account.

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
OwnerLoginName string
  • Required
The login name (e-mail address) of the user who the card belongs to.
OwnerPassword string
  • Required
The password of the user who the card belongs to.

Output properties

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

Possible error responses

Error code Description
AuthenticationFailed The user name and password of the card owner was incorrect.
InvalidCardKey The card key provided either doesn't belong to a card or the card is already issued.
InvalidCardOwner The owner specified is not a registered Barion user or the user is not available for card registration.