On this page:
https://api.premepay.com/v1/stores/:id/customers/:id/cards
Follow the route to make the request and add a card for your consumer. You will need to send the request containing some mandatory fields. Below, you can view our List of Field Descriptions for Adding a Card.
Parameter | Type | Description | Required |
---|---|---|---|
holderName |
string | Holder name | Yes |
expirationMonth |
integer | Expiration month | Yes |
expirationYear |
integer | Expiration year | Yes |
cardNumber |
number | Card number | Yes |
securityCode |
string | Security code | Yes |
<aside> ⚠️ Attention: Only Primefy customers who have PCI Compliance certification can store sensitive payment data of consumers.
</aside>
This is an example of how your request to register a new card should look like.
If your request is successful, you will receive the consumer object as the response.
200: OK
400: Bad Request
401: Unauthorized
403: Forbbiden
500: Internal Server Error
Related Content
<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/52c5ff42-e8bf-45d3-81d1-b6e05786a688/POST.png" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/52c5ff42-e8bf-45d3-81d1-b6e05786a688/POST.png" width="40px" /> POST - Create sale with credit card
</aside>
<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a22a31f7-bd92-40af-8042-7685c0c0859a/GET.png" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a22a31f7-bd92-40af-8042-7685c0c0859a/GET.png" width="40px" /> GET - Get card details
</aside>