Create card by ID
POST {{AppUrl}}/api/v1/issuer/customer/{{Customer ID}}/card
Introduction
Create a card for a customer. This endpoint can also be used to re-activate an inactive card. The customer id and card number should match an inactive card in our database.
Structure
Item | Type | Plurality | Options | Required | Description | Validation | ||
---|---|---|---|---|---|---|---|---|
number | integer | 1 | yes | The card number. | The number should be unique, unless you're trying to re-activate an existing card. |
Request Body
{"data"=>{"number"=>"123456789"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string | ||
Content-Type | string |
RESPONSES
status: Created
{"data":{"id":53,"customer":{"id":50,"first_name":"Mick","initials":"M","infix":"","last_name":"Schipper","gender":"m","phone_number":"+3120 5852978","mobile_phone_number":"0643438998","email":"mees.vanderlede@example.net","date_of_birth":"2002-02-06T00:00:00+01:00","bankaccount":"NL27YBGI2209095944","bankaccount_name":"D Blewanus","payment_method":"cash","direct_debit_requested_at":"2018-11-28T10:23:02+01:00","direct_debit_authorized_at":"2018-12-04T21:22:49+01:00","municipality_code":"6417","addresses":[{"type":"home","different_from_home":1,"label":null,"street":"Molenaarboulevard","number":"3114","addition":"b","postcode":"2562VH","city":"Drogteropslagen"},{"type":"post","different_from_home":1,"label":null,"street":"Smitlaan","number":"3090","addition":"a","postcode":"6673DB","city":"Overveen"},{"type":"billing","different_from_home":0,"label":null,"street":null,"number":null,"addition":null,"postcode":null,"city":null},{"type":"custom","different_from_home":0,"label":"Qui perspiciatis","street":"Haengreveboulevard","number":"2810","addition":"b","postcode":"1334DP","city":"Zwaagdijk-West"},{"type":"custom","different_from_home":0,"label":"Molestias autem","street":"Bruggemanring","number":"1109","addition":"b","postcode":"2242PK","city":"Rheezerveen"}],"created_at":"2018-12-10T15:23:21+01:00","updated_at":"2019-01-23T12:00:53+01:00"},"active":true,"number":"123456789","created_at":"2019-01-23T12:00:53+01:00","updated_at":"2019-01-23T12:00:53+01:00"}}