# Get virtual card details GET https://api-sandbox.payabli.com/api/MoneyOut/vcard/{cardToken} Retrieves vCard details for a single card in an entrypoint. Reference: https://docs.payabli.com/developers/api-reference/moneyout/get-vcard ## OpenAPI Specification ```yaml openapi: 3.1.1 info: title: Get a virtual card version: endpoint_moneyOut.VCardGet paths: /MoneyOut/vcard/{cardToken}: get: operationId: v-card-get summary: Get a virtual card description: Retrieves vCard details for a single card in an entrypoint. tags: - - subpackage_moneyOut parameters: - name: cardToken in: path description: ID for a virtual card. required: true schema: type: string - name: requestToken in: header required: true schema: type: string responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/type___moneyOutTypes__:VCardGetResponse' '400': description: Bad request/ invalid data content: {} '401': description: Unauthorized request. content: {} '500': description: Internal API Error content: {} '503': description: Database connection error content: {} components: schemas: type_:LocationCode: type: string type___moneyOutTypes__:VCardGetResponseContact: type: object properties: ContactName: type: string description: Name of the contact. ContactEmail: type: string description: Email of the contact. ContactTitle: type: string description: Title of the contact. ContactPhone: type: string description: Phone number of the contact. type___moneyOutTypes__:VCardGetResponseAssociatedVendorBillingData: type: object properties: id: type: integer description: Unique identifier for billing data. accountId: type: string description: Account identifier. nickname: type: string description: Nickname for the account. bankName: type: string description: Name of the bank used for transactions. routingAccount: type: string description: Routing number for the bank account. accountNumber: type: string description: Masked account number for transactions. typeAccount: type: string description: Type of the bank account. bankAccountHolderName: type: string description: Name of the bank account holder. bankAccountHolderType: type: string description: Type of bank account holder. bankAccountFunction: type: integer description: Function of the bank account. verified: type: boolean description: Indicates if the account is verified. status: type: integer description: Status of the billing data. services: type: array items: description: Any type description: Services associated with the account. default: type: boolean description: Indicates if this is the default billing account. type___moneyOutTypes__:VCardGetResponseAssociatedVendorSummary: type: object properties: ActiveBills: type: integer description: Number of active bills. PendingBills: type: integer description: Number of bills pending approval or payment. InTransitBills: type: integer description: Number of bills in transit. PaidBills: type: integer description: Number of bills that have been paid. OverdueBills: type: integer description: Number of bills that are overdue. ApprovedBills: type: integer description: Number of bills that have been approved. DisapprovedBills: type: integer description: Number of bills that have been disapproved. TotalBills: type: integer description: Total number of bills. ActiveBillsAmount: type: number format: double description: Total amount of active bills. PendingBillsAmount: type: number format: double description: Total amount of pending bills. InTransitBillsAmount: type: number format: double description: Total amount of bills in transit. PaidBillsAmount: type: number format: double description: Total amount of paid bills. OverdueBillsAmount: type: number format: double description: Total amount of overdue bills. ApprovedBillsAmount: type: number format: double description: Total amount of approved bills. DisapprovedBillsAmount: type: number format: double description: Total amount of rejected bills. TotalBillsAmount: type: number format: double description: Total amount of all bills. type_:Legalname: type: string type_:Dbaname: type: string type_:OrgParentName: type: string type_:Remitaddress1: type: string type_:Remitaddress2: type: string type_:Remitcity: type: string type_:Remitstate: type: string type_:Remitzip: type: string type_:Remitcountry: type: string type_:ExternalPaypointId: type: string type___moneyOutTypes__:VCardGetResponseAssociatedVendor: type: object properties: VendorNumber: type: string description: Unique code identifying the vendor. Name1: type: string description: The primary name associated with the vendor. Name2: type: string description: Additional name information for the vendor. EIN: type: string description: Employer Identification Number of the vendor. Phone: type: string description: Contact phone number of the vendor. Email: type: string description: Contact email address of the vendor. RemitEmail: type: string description: Email address for remittance. Address1: type: string description: Primary address line of the vendor. Address2: type: string description: Secondary address line of the vendor. City: type: string description: City where the vendor is located. State: type: string description: State where the vendor is located. Zip: type: string description: ZIP code for the vendor's location. Country: type: string description: Country where the vendor is located. Mcc: type: string description: Merchant Category Code for the vendor. LocationCode: $ref: '#/components/schemas/type_:LocationCode' Contacts: type: array items: $ref: >- #/components/schemas/type___moneyOutTypes__:VCardGetResponseContact description: Array of objects describing the vendor's contacts. BillingData: $ref: >- #/components/schemas/type___moneyOutTypes__:VCardGetResponseAssociatedVendorBillingData description: Billing data for the vendor. PaymentMethod: type: string description: Preferred payment method for vendor. VendorStatus: type: integer description: Status of the vendor. VendorId: type: integer description: Unique identifier for the vendor. EnrollmentStatus: type: string description: Enrollment status of the vendor. Summary: $ref: >- #/components/schemas/type___moneyOutTypes__:VCardGetResponseAssociatedVendorSummary description: Summary of vendor's billing and transaction status. PaypointLegalname: $ref: '#/components/schemas/type_:Legalname' description: Legal name of the paypoint. PaypointDbaname: $ref: '#/components/schemas/type_:Dbaname' description: DBA name of the paypoint. PaypointEntryname: type: string description: Entryname of the paypoint. ParentOrgName: $ref: '#/components/schemas/type_:OrgParentName' ParentOrgId: type: integer description: ID of the parent organization. CreatedDate: type: string description: Date when the vendor record was created. LastUpdated: type: string description: Date when the vendor's information was last updated. remitAddress1: $ref: '#/components/schemas/type_:Remitaddress1' remitAddress2: $ref: '#/components/schemas/type_:Remitaddress2' remitCity: $ref: '#/components/schemas/type_:Remitcity' remitState: $ref: '#/components/schemas/type_:Remitstate' remitZip: $ref: '#/components/schemas/type_:Remitzip' remitCountry: $ref: '#/components/schemas/type_:Remitcountry' payeeName1: type: string description: Primary name of the payee. payeeName2: type: string description: Secondary name of the payee. customField1: type: string description: A custom field for additional data. customField2: type: string description: Another custom field for extra data. customerVendorAccount: type: string description: Account number of paypoint in the vendor side. InternalReferenceId: type: integer description: Internal reference ID used within the system. additionalData: type: string description: Field for additional data, if any. externalPaypointID: $ref: '#/components/schemas/type_:ExternalPaypointId' StoredMethods: type: string description: Stored payment methods for the vendor. type___moneyOutTypes__:VCardGetResponse: type: object properties: vcardSent: type: boolean description: Indicates if the virtual card was sent. cardToken: type: string description: A unique token identifier for the card. cardNumber: type: string description: The masked number of the card. cvc: type: string description: Masked Card Verification Code. expirationDate: type: string description: The expiration date of the card. status: type: string description: The current status of the card. amount: type: number format: double description: The initial amount loaded on the card. currentBalance: type: number format: double description: The current balance available on the card. expenseLimit: type: number format: double description: The set limit for expenses. expenseLimitPeriod: type: string description: The period for the expense limit. maxNumberOfUses: type: integer description: Maximum number of uses allowed for the card. currentNumberOfUses: type: integer description: The current number of times the card has been used. exactAmount: type: boolean description: Indicates if only the exact amount is allowed for transactions. mcc: type: string description: Merchant Category Code, if applicable. tcc: type: string description: Transaction Category Code, if applicable. misc1: type: string description: A miscellaneous field for additional information. misc2: type: string description: Another miscellaneous field for extra information. dateCreated: type: string description: The creation date of the record. dateModified: type: string description: The last modified date of the record. associatedVendor: $ref: >- #/components/schemas/type___moneyOutTypes__:VCardGetResponseAssociatedVendor description: Information about the associated vendor. associatedCustomer: type: string description: Information about the associated customer, if applicable. ParentOrgName: type: string description: Name of the parent organization. PaypointDbaname: type: string description: The 'Doing Business As' name of the Paypoint. PaypointLegalname: type: string description: The legal name of the Paypoint. PaypointEntryname: type: string description: Entry name for the Paypoint, if applicable. externalPaypointID: $ref: '#/components/schemas/type_:ExternalPaypointId' paypointId: type: integer description: The unique identifier for the paypoint. ``` ## SDK Code Examples ```python GetVCard from payabli import payabli client = payabli( api_key="YOUR_API_KEY", ) client.money_out.v_card_get( card_token="20230403315245421165", ) ``` ```typescript GetVCard import { PayabliClient } from "@payabli/sdk-node"; const client = new PayabliClient({ apiKey: "YOUR_API_KEY" }); await client.moneyOut.vCardGet("20230403315245421165"); ``` ```go GetVCard import ( context "context" option "github.com/payabli/sdk-go/option" sdkgoclient "github.com/payabli/sdk-go/client" ) client := sdkgoclient.NewClient( option.WithApiKey( "", ), ) response, err := client.MoneyOut.VCardGet( context.TODO(), "20230403315245421165", ) ``` ```csharp GetVCard using PayabliApi; var client = new PayabliApiClient("API_KEY"); await client.MoneyOut.VCardGetAsync("20230403315245421165"); ``` ```ruby GetVCard require 'uri' require 'net/http' url = URI("https://api-sandbox.payabli.com/api/MoneyOut/vcard/20230403315245421165") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["requestToken"] = '' response = http.request(request) puts response.read_body ``` ```java GetVCard HttpResponse response = Unirest.get("https://api-sandbox.payabli.com/api/MoneyOut/vcard/20230403315245421165") .header("requestToken", "") .asString(); ``` ```php GetVCard request('GET', 'https://api-sandbox.payabli.com/api/MoneyOut/vcard/20230403315245421165', [ 'headers' => [ 'requestToken' => '', ], ]); echo $response->getBody(); ``` ```swift GetVCard import Foundation let headers = ["requestToken": ""] let request = NSMutableURLRequest(url: NSURL(string: "https://api-sandbox.payabli.com/api/MoneyOut/vcard/20230403315245421165")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```