PartnerCard Prepare v2: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 13: | Line 13: | ||
<span class="api-ver">v2</span> This API endpoint is available in '''API v2''' only. | <span class="api-ver">v2</span> This API endpoint is available in '''API v2''' only. | ||
== Input properties == | == Input properties == | ||
| Line 36: | Line 35: | ||
|- | |- | ||
| PrivateCardKey || string || The private key of the card. This should only be stored on the card itself. | | PrivateCardKey || string || The private key of the card. This should only be stored on the card itself. | ||
|- | |||
|} | |||
==== Possible error responses ==== | |||
{| class="wikitable api-table" | |||
! Error code || Description | |||
|- | |||
| CardPreparationNotAllowed | If the card number is already registered (attached to a wallet) a new preparation is not allowed. | |||
|- | |- | ||
|} | |} | ||
Revision as of 11:24, 25 May 2017
Barion API: Prepare a payment card
| POST | /v2/PaymentCard/Prepare |
|---|
Use cases
This endpoint can prepare a partner card without attaching 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 |
|
The secret API key of the partner, generated by Barion. |
| PAN | Guid |
|
The whole cardnumber. |
Output properties
| Property name | Property type | Description |
|---|---|---|
| PrivateCardKey | string | The private key of the card. This should only be stored on the card itself. |
Possible error responses
| Error code | Description |
|---|---|
| If the card number is already registered (attached to a wallet) a new preparation is not allowed. |