Create card
POST
https://api.light.inc/v1/cards
Creates a new card. Use metadata type 'VENDOR' for vendor cards or 'EMPLOYEE' for employee cards.
Authorization
Send one of these on every request. See Authentication for how to get credentials.
- API key
Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
- Bearer token
Headers
-
X-Idempotency-Keystring
Request body
application/json;charset=UTF-8
-
balanceAccountIdstring · uuidID of the card balance account to associate with this card.
-
ownerIdstring · uuidID of the user who will own/manage this card.
-
metadataobjectCard type metadata. Use type 'VENDOR' with vendorId for vendor cards, or type 'EMPLOYEE' with employeeId for employee cards.
-
typestring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
VENDOREMPLOYEE
-
-
descriptionstringOptional description or memo for this card.
-
authenticationobject3D Secure authentication details for the card.
-
phoneNumberobjectVendor phone number.
-
countryCodestring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
UNDEFINEDACADAEAFAGAIALAMANAOAQARASATAUAWAXAZBABBBDBEBFBGBHBIBJBLBMBNBOBQBRBSBTBUBVBWBYBZCACCCDCFCGCHCICKCLCMCNCOCPCRCSCUCVCWCXCYCZDEDGDJDKDMDODZEAECEEEGEHERESETEUEZFIFJFKFMFOFRFXGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHMHNHRHTHUICIDIEILIMINIOIQIRISITJEJMJOJPKEKGKHKIKMKNKPKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMHMKMLMMMNMOMPMQMRMSMTMUMVMWMXMYMZNANCNENFNGNINLNONPNRNTNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPWPYQARERORSRURWSASBSCSDSESFSGSHSISJSKSLSMSNSOSRSSSTSUSVSXSYSZTATCTDTFTGTHTJTKTLTMTNTOTPTRTTTVTWTZUAUGUKUMUSUYUZVAVCVEVGVIVNVUWFWSXIXUXKYEYTYUZAZMZRZW -
localNumberstring
-
-
emailstringEmail address for 3D Secure authentication.
-
-
limitsarray of objectOptional spending limits for this card.
-
amountinteger · int64Spending limit amount in minor units (e.g., cents).
-
currencystring -
intervalstringInterval for the spending limit (PER_TRANSACTION, WEEKLY, or MONTHLY).
⚠️ This enum is not exhaustive; new values may be added in the future.
One of
PER_TRANSACTIONWEEKLYMONTHLY
-
-
formFactorstringCard form factor. Defaults to
VIRTUALwhen omitted.PHYSICALships a plastic card and requiresdeliveryContactto be set.VIRTUALmust be sent withdeliveryContactleft null. Mismatches are rejected withPHYSICAL_CARD_DELIVERY_CONTACT_REQUIREDorVIRTUAL_CARD_DELIVERY_CONTACT_NOT_ALLOWED.⚠️ This enum is not exhaustive; new values may be added in the future.
One of
PHYSICALVIRTUAL -
deliveryContactobjectRecipient and address used by the card issuer to ship the physical card. Only
addressandnameare required.-
addressobjectPostal address the card is shipped to. Country must be an ISO 3166-1 alpha-2 code;
stateOrProvinceis required for US and CA destinations. An address the card issuer rejects comes back asCARD_PROVIDER_REJECTED_FIELDwithpathpointing at the offending field.-
streetstringStreet name (maps to Adyen
address.line1). -
houseNumberOrNamestringHouse number, building, apartment, or suite (maps to Adyen
address.line2). -
citystringCity.
-
postalCodestringPostal or ZIP code in the delivery country's own format; separators such as spaces and dashes are optional. Max 10 characters, or 5 digits for
US. The card issuer validates the format and rejects a code that doesn't match the destination country. -
countrystringISO 3166-1 alpha-2 country code (e.g.
DK,US,GB).⚠️ This enum is not exhaustive; new values may be added in the future.
One of
UNDEFINEDACADAEAFAGAIALAMANAOAQARASATAUAWAXAZBABBBDBEBFBGBHBIBJBLBMBNBOBQBRBSBTBUBVBWBYBZCACCCDCFCGCHCICKCLCMCNCOCPCRCSCUCVCWCXCYCZDEDGDJDKDMDODZEAECEEEGEHERESETEUEZFIFJFKFMFOFRFXGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHMHNHRHTHUICIDIEILIMINIOIQIRISITJEJMJOJPKEKGKHKIKMKNKPKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMHMKMLMMMNMOMPMQMRMSMTMUMVMWMXMYMZNANCNENFNGNINLNONPNRNTNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPWPYQARERORSRURWSASBSCSDSESFSGSHSISJSKSLSMSNSOSRSSSTSUSVSXSYSZTATCTDTFTGTHTJTKTLTMTNTOTPTRTTTVTWTZUAUGUKUMUSUYUZVAVCVEVGVIVNVUWFWSXIXUXKYEYTYUZAZMZRZW -
stateOrProvincestringState, province, or region. Required when
countryisUSorCA; requests without it are rejected withPHYSICAL_CARD_STATE_OR_PROVINCE_REQUIRED. Optional for other countries.
-
-
nameobjectName printed on the shipping label.
-
firstNamestringRecipient first name.
-
lastNamestringRecipient last name.
-
-
companystringCompany or department name on the shipping label.
-
emailstringContact email for delivery notifications.
-
phoneNumberobjectVendor phone number.
-
countryCodestring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
UNDEFINEDACADAEAFAGAIALAMANAOAQARASATAUAWAXAZBABBBDBEBFBGBHBIBJBLBMBNBOBQBRBSBTBUBVBWBYBZCACCCDCFCGCHCICKCLCMCNCOCPCRCSCUCVCWCXCYCZDEDGDJDKDMDODZEAECEEEGEHERESETEUEZFIFJFKFMFOFRFXGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHMHNHRHTHUICIDIEILIMINIOIQIRISITJEJMJOJPKEKGKHKIKMKNKPKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMHMKMLMMMNMOMPMQMRMSMTMUMVMWMXMYMZNANCNENFNGNINLNONPNRNTNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPWPYQARERORSRURWSASBSCSDSESFSGSHSISJSKSLSMSNSOSRSSSTSUSVSXSYSZTATCTDTFTGTHTJTKTLTMTNTOTPTRTTTVTWTZUAUGUKUMUSUYUZVAVCVEVGVIVNVUWFWSXIXUXKYEYTYUZAZMZRZW -
localNumberstring
-
-
Response
-
idstring · uuid -
companyEntityIdstring · uuid -
companyIdstring · uuid -
ownerIdstring · uuid -
cardBalanceAccountIdstring · uuid -
formstring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
PHYSICALVIRTUAL -
statusstring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
ACTIVEFROZENCLOSEDUPDATE_IN_PROGRESS -
metadataobject-
typestring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
VENDOREMPLOYEE
-
-
threeDsobject-
phoneNumberobjectVendor phone number.
-
countryCodestring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
UNDEFINEDACADAEAFAGAIALAMANAOAQARASATAUAWAXAZBABBBDBEBFBGBHBIBJBLBMBNBOBQBRBSBTBUBVBWBYBZCACCCDCFCGCHCICKCLCMCNCOCPCRCSCUCVCWCXCYCZDEDGDJDKDMDODZEAECEEEGEHERESETEUEZFIFJFKFMFOFRFXGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHMHNHRHTHUICIDIEILIMINIOIQIRISITJEJMJOJPKEKGKHKIKMKNKPKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMHMKMLMMMNMOMPMQMRMSMTMUMVMWMXMYMZNANCNENFNGNINLNONPNRNTNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPWPYQARERORSRURWSASBSCSDSESFSGSHSISJSKSLSMSNSOSRSSSTSUSVSXSYSZTATCTDTFTGTHTJTKTLTMTNTOTPTRTTTVTWTZUAUGUKUMUSUYUZVAVCVEVGVIVNVUWFWSXIXUXKYEYTYUZAZMZRZW -
localNumberstring
-
-
passwordstring -
emailstring
-
-
descriptionstring -
binstring -
lastFourstring -
cardholderNamestring -
limitsarray of object-
idstring · uuid -
companyIdstring · uuid -
cardIdstring · uuid -
amountinteger · int64 -
currencystring -
intervalstring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
PER_TRANSACTIONWEEKLYMONTHLY -
createdAtstring · date-time -
updatedAtstring · date-time
-
-
createdAtstring · date-time -
updatedAtstring · date-time -
typestring⚠️ This enum is not exhaustive; new values may be added in the future.
One of
VENDOREMPLOYEE