PartnerCard Issue v2: Difference between revisions

From Barion Documentation
Jump to navigation Jump to search
No edit summary
 
(One intermediate revision by the same user not shown)
Line 30: Line 30:
* Required
* Required
|| The login name (e-mail address) of the user who the card belongs to.
|| 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.
|-
|-
|}
|}
Line 46: Line 50:
{| class="wikitable api-table"
{| class="wikitable api-table"
! Error code || Description
! 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.
| InvalidCardKey|| The card key provided either doesn't belong to a card or the card is already issued.

Latest revision as of 10:39, 26 June 2017

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.