VCC · CARD ISSUANCE
From product selection to card creation
Read product requirements, prepare the customer, submit the card application, and confirm the current result through Webhooks and query endpoints.
sequenceDiagram
autonumber
participant M as Merchant system
participant E as EasyCards API
Note over M,E: Phase 1: Read the card-issuance requirements
M->>E: List products and issuance requirements · GET /payment/vcc/products
E->>M: [Synchronous response] product_code, card_mode, fees, limits, required_customer_fields
opt The product requires file fields
M->>E: Upload a customer file and obtain its identifier · POST /payment/vcc/files
E->>M: [Synchronous response] file_id
end
Note over M,E: Phase 2: Create the customer and submit the application
M->>E: Create the cardholder record · POST /payment/vcc/customers
E->>M: [Synchronous response] customer_id, customer_status
M->>E: Submit a card application · POST /payment/vcc/card-applications
E->>M: [Synchronous acceptance] application_id, application_status
Note over M,E: Phase 3: Receive status changes and query the current result
opt application_status = PENDING
E-->>M: [Asynchronous notification] vcc.application.updated · status or next_action changed
end
M->>E: Query the current application result · GET /payment/vcc/card-applications/{application_id}
E->>M: [Synchronous response] application_status, with card_id on success
opt application_status = SUCCESS
M->>E: Query card state and basic details · GET /payment/vcc/cards/{card_id}
E->>M: [Synchronous response] card_status and basic card details
end
Synchronous acceptanceThe application request returns application_id and application_status in the current HTTP response.
Asynchronous changevcc.application.updated reports subsequent application-state changes.
Active queryRead the current resource state from the application and card detail endpoints.