Procurify · Schema
CreditCard
Spend ManagementProcurementPurchase OrdersAccounts PayableVendor ManagementBudget TrackingProcure-to-PayERP Integration
Properties
| Name | Type | Description |
|---|---|---|
| id | integer | |
| uuid | string | |
| is_active | boolean | |
| created_at | string | |
| updated_at | string | |
| name | string | |
| number | string | |
| balance | integer | |
| gl_code | string | |
| type | object | |
| category | integer | |
| external_id | string | External id of the Credit Card |
| status | integer | The status of the Credit Card * `pending` - Pending * `active` - Active * `inactive` - Inactive * `canceled` - Canceled * `lost` - Lost * `stolen` - Stolen |
| require_activation | boolean | Does this card require new activation? |
| last_changed_by | integer | |
| vendor | integer | |
| payment_method | integer | |
| currency | integer | |
| currency_name | string | |
| creator | integer | |
| assignees | array |
JSON Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "CreditCard",
"type": "object",
"properties": {
"id": {
"type": "integer",
"readOnly": true
},
"uuid": {
"type": "string",
"format": "uuid"
},
"is_active": {
"type": "boolean"
},
"created_at": {
"type": "string",
"format": "date-time",
"readOnly": true
},
"updated_at": {
"type": "string",
"format": "date-time",
"readOnly": true
},
"name": {
"type": "string",
"maxLength": 255
},
"number": {
"type": "string",
"pattern": "^[0-9]{4}$",
"maxLength": 19
},
"balance": {
"type": "integer",
"maximum": 2147483647,
"minimum": -2147483648,
"nullable": true
},
"gl_code": {
"type": "string",
"maxLength": 100
},
"type": {
"allOf": [
{
"$ref": "#/components/schemas/CreditCardTypeEnum"
}
],
"minimum": -2147483648,
"maximum": 2147483647
},
"category": {
"nullable": true,
"minimum": -2147483648,
"maximum": 2147483647,
"oneOf": [
{
"$ref": "#/components/schemas/CategoryEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
],
"type": "integer"
},
"external_id": {
"type": "string",
"description": "External id of the Credit Card",
"maxLength": 100
},
"status": {
"nullable": true,
"description": "The status of the Credit Card\n\n* `pending` - Pending\n* `active` - Active\n* `inactive` - Inactive\n* `canceled` - Canceled\n* `lost` - Lost\n* `stolen` - Stolen",
"oneOf": [
{
"$ref": "#/components/schemas/CreditCardStatusEnum"
},
{
"$ref": "#/components/schemas/BlankEnum"
},
{
"$ref": "#/components/schemas/NullEnum"
}
],
"type": "integer"
},
"require_activation": {
"type": "boolean",
"title": "Require new activation?",
"description": "Does this card require new activation?"
},
"last_changed_by": {
"type": "integer",
"nullable": true,
"title": "Last changed by user"
},
"vendor": {
"type": "integer"
},
"payment_method": {
"type": "integer",
"nullable": true
},
"currency": {
"type": "integer"
},
"currency_name": {
"type": "string",
"readOnly": true
},
"creator": {
"type": "integer",
"nullable": true,
"title": "Card Issuer"
},
"assignees": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CreditCardAssignee"
}
}
},
"required": [
"assignees",
"currency",
"uuid",
"vendor"
]
}