Introduction

Authentication

Test cards

Establishments

Users

Customers

Cards

Payment links

Error codes

Payment Split

Products

Discount Coupons

Sales

Signatures

Webhooks

Financial


On this page:


POST Add card

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.

List of Parameters

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>

Request example

This is an example of how your request to register a new card should look like.

Responses

If your request is successful, you will receive the consumer object as the response.


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>