Saves a company card (no id or a negative one: new card). The issuer must be a supplier; one active card per issuer and last digits.
Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
POST
/api-v1/company-cards
curl \
--request POST 'https://wyzio.app/api-v1/company-cards' \
--header "Content-Type: application/json" \
--data '{
"id": 42,
"holderContactId": 42,
"issuerContactId": 42,
"lastDigits": "string",
"description": "string",
"isActive": true
}'
Request examples
# Headers
# Payload
{
"id": 42,
"holderContactId": 42,
"issuerContactId": 42,
"lastDigits": "string",
"description": "string",
"isActive": true
}
Response examples (200)
{
"error": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"errorCode": "string",
"fieldName": "string",
"data": "string",
"isSevere": true
}
]
},
"valid": true
}