Cards
Assign free card
Assign a free card to a customer. This action is limited to one card per card type per customer. If your project allows customers to have multiple cards of one type, use PUT /cards/{card_id} instead. See Assign card to customer for details.
post/cards/actions/assign-free-card
Request
- Base URLhttps://sandbox.crmcarecloud.com/webservice/rest-api/enterprise-interface/v1.0
- Auth
- HTTP bearer
- or HTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Accept-Languagestring
The unique ID of the language code by ISO 639-1.
Request body
Example request
{
"card_type_id": "83d1d11ea3884a5d33253fe214",
"customer_id": "8ea2591121e636086a4a9c0992",
"card_number": "1000000000016"
}Response
OK
Example response
{
"data": {
"card_id": "8fd73167342d06899c4c015320"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.