Cards
resourcesopenapi-cards.json
{
"components": {
"securitySchemes": {
"apiKey": {
"bearerFormat": "JWT",
"scheme": "bearer",
"type": "http"
},
"basicAuth": {
"scheme": "basic",
"type": "http"
}
}
},
"info": {
"contact": {
"email": "[email protected]",
"name": "Treasury Prime Support",
"url": "https://support.treasuryprime.com"
},
"summary": "Banking APIs",
"termsOfService": "https://www.treasuryprime.com/policy/terms",
"title": "Cards",
"version": "1.16.137-gec7bd54b"
},
"openapi": "3.1.0",
"paths": {
"/card": {
"get": {
"responses": {
"200": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Success",
"value": {
"data": [
{
"account_id": "acct_291u96075mva",
"card_controls": null,
"card_product_id": "cdpt_w10r2sebv0nl",
"created_at": "2021-02-19T20:42:40Z",
"cvv": null,
"expiration": "0225",
"fulfillment": {
"shipping_method": "USPS Mail (5-7 business days)",
"status": "issued",
"tracking_number": null
},
"id": "card_zuhqnmz7e085",
"last4": "3385",
"pan": null,
"person_id": "psn_5vyzn6sveupa",
"pin_is_set": false,
"status": "unactivated",
"updated_at": "2021-02-19T20:42:41Z",
"userdata": null
}
]
}
}
},
"schema": {
"properties": {
"data": {
"items": {
"properties": {
"account_id": {
"description": "The ID of the account that the card should be issued against. Filterable.",
"type": "string"
},
"card_controls": {
"description": "An object that defines rules for how this card can be used",
"properties": {
"controls": {
"items": {
"properties": {
"amount": {
"type": "decimal"
},
"interval": {
"type": "string"
},
"mccs": {
"items": {
"type": "mcc"
},
"type": "array"
},
"mids": {
"items": {
"type": "string"
},
"type": "array"
},
"restriction": {
"type": "string"
},
"rollover_time": {
"type": "string"
},
"timezone": {
"type": "string"
},
"type": {
"type": "string"
},
"version": {
"type": "integer"
},
"window": {
"type": "integer"
}
},
"type": "object"
},
"type": "array"
},
"name": {
"type": "string"
}
},
"type": "object"
},
"card_product_id": {
"description": "The ID of the card product that this card should be issued from",
"type": "string"
},
"creation_options": {
"description": "An object that defines additional fields for card customization on creation",
"properties": {
"name_line_one": {
"description": "Specifies the first line of personalized text that appears on the card. (max 21 characters)",
"type": "string"
},
"name_line_two": {
"description": "Specifies the second line of personalized text that appears on the card. (max 21 characters)",
"type": "string"
}
},
"type": "object"
},
"cvv": {
"description": "The 3-digit card verification code. Note this field will return null unless the `show_cvv` query parameter is set",
"type": "string"
},
"expiration": {
"description": "The card expiration year and month, in MMYY format",
"type": "string"
},
"fulfillment": {
"description": "Information about the card's fulfillment process",
"properties": {
},
"type": "object"
},
"id": {
"description": "Unique identifier for object",
"type": "string"
},
"last4": {
"description": "Last 4 digits of the card number. Filterable.",
"type": "string"
},
"new_pan_from_card_id": {
"description": "The ID of a card to reissue. If this field is entered a new card will be created without pin, a new PAN, CVV and expiration",
"type": "string"
},
"pan": {
"description": "The primary 16-digit card number. Note this field will return null unless the `show_pan` parameter is set",
"type": "string"
},
"person_id": {
"description": "The ID of the person representing the cardholder that this card will be issued to. Filterable.",
"type": "string"
},
"pin_is_set": {
"description": "Reflects whether the user has set a PIN on the card; initially false",
"type": "boolean"
},
"reissue_pan_from_card_id": {
"description": "The ID of a card to reissue. If this field is entered a new card will be created with the same PAN and pin, but new CVV and expiration.",
"type": "string"
},
"show_cvv": {
"description": "When true, the `cvv` field will be returned with non-null data. False by default. Requires PCI compliance.",
"enum": [
"true",
"false"
],
"type": "string"
},
"show_pan": {
"description": "When true, the `pan` field will be returned with non-null data. False by default. Requires PCI compliance.",
"enum": [
"true",
"false"
],
"type": "string"
},
"status": {
"description": "One of: `unactivated`, `active`, `suspended`, `terminated`. Filterable.",
"type": "string"
},
"userdata": {
"description": "Optional arbitrary user data",
"type": "object"
}
}
},
"type": "array"
},
"description": "Array of objects"
},
"type": "object"
}
}
},
"description": "A list of card elements"
}
},
"summary": "List Cards",
"tags": [
"Card"
]
},
"post": {
"requestBody": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Example",
"value": {
"account_id": "acct_291u96075mva",
"card_product_id": "cdpt_w10r2sebv0nl",
"creation_options": {
"name_line_two": "VP of cards"
},
"person_id": "psn_5vyzn6sveupa"
}
}
},
"schema": {
"properties": {
"account_id": {
"description": "The ID of the account that the card should be issued against. Filterable.",
"type": "string"
},
"card_controls": {
"description": "An object that defines rules for how this card can be used",
"properties": {
"controls": {
"items": {
"properties": {
"amount": {
"type": "decimal"
},
"interval": {
"type": "string"
},
"mccs": {
"items": {
"type": "mcc"
},
"type": "array"
},
"mids": {
"items": {
"type": "string"
},
"type": "array"
},
"restriction": {
"type": "string"
},
"rollover_time": {
"type": "string"
},
"timezone": {
"type": "string"
},
"type": {
"type": "string"
},
"version": {
"type": "integer"
},
"window": {
"type": "integer"
}
},
"type": "object"
},
"type": "array"
},
"name": {
"type": "string"
}
},
"type": "object"
},
"card_product_id": {
"description": "The ID of the card product that this card should be issued from",
"type": "string"
},
"creation_options": {
"description": "An object that defines additional fields for card customization on creation",
"properties": {
"name_line_one": {
"description": "Specifies the first line of personalized text that appears on the card. (max 21 characters)",
"type": "string"
},
"name_line_two": {
"description": "Specifies the second line of personalized text that appears on the card. (max 21 characters)",
"type": "string"
}
},
"type": "object"
},
"new_pan_from_card_id": {
"description": "The ID of a card to reissue. If this field is entered a new card will be created without pin, a new PAN, CVV and expiration",
"type": "string"
},
"person_id": {
"description": "The ID of the person representing the cardholder that this card will be issued to. Filterable.",
"type": "string"
},
"reissue_pan_from_card_id": {
"description": "The ID of a card to reissue. If this field is entered a new card will be created with the same PAN and pin, but new CVV and expiration.",
"type": "string"
},
"show_cvv": {
"description": "When true, the `cvv` field will be returned with non-null data. False by default. Requires PCI compliance.",
"enum": [
"true",
"false"
],
"type": "string"
},
"show_pan": {
"description": "When true, the `pan` field will be returned with non-null data. False by default. Requires PCI compliance.",
"enum": [
"true",
"false"
],
"type": "string"
},
"status": {
"description": "One of: `unactivated`, `active`, `suspended`, `terminated`. Filterable.",
"type": "string"
},
"userdata": {
"description": "Optional arbitrary user data",
"type": "object"
}
},
"required": [
"account_id",
"person_id",
"card_product_id",
"id"
]
}
}
},
"description": "The card to create",
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Success",
"value": {
"account_id": "acct_291u96075mva",
"card_controls": null,
"card_product_id": "cdpt_w10r2sebv0nl",
"created_at": "2021-02-19T20:42:40Z",
"cvv": null,
"expiration": "0225",
"fulfillment": {
"shipping_method": "USPS Mail (5-7 business days)",
"status": "issued",
"tracking_number": null
},
"id": "card_zuhqnmz7e085",
"last4": "3385",
"pan": null,
"person_id": "psn_5vyzn6sveupa",
"pin_is_set": false,
"status": "unactivated",
"updated_at": "2021-02-19T20:42:41Z",
"userdata": null
}
}
},
"schema": {
"properties": {
"account_id": {
"description": "The ID of the account that the card should be issued against. Filterable.",
"type": "string"
},
"card_controls": {
"description": "An object that defines rules for how this card can be used",
"properties": {
"controls": {
"items": {
"properties": {
"amount": {
"type": "decimal"
},
"interval": {
"type": "string"
},
"mccs": {
"items": {
"type": "mcc"
},
"type": "array"
},
"mids": {
"items": {
"type": "string"
},
"type": "array"
},
"restriction": {
"type": "string"
},
"rollover_time": {
"type": "string"
},
"timezone": {
"type": "string"
},
"type": {
"type": "string"
},
"version": {
"type": "integer"
},
"window": {
"type": "integer"
}
},
"type": "object"
},
"type": "array"
},
"name": {
"type": "string"
}
},
"type": "object"
},
"card_product_id": {
"description": "The ID of the card product that this card should be issued from",
"type": "string"
},
"creation_options": {
"description": "An object that defines additional fields for card customization on creation",
"properties": {
"name_line_one": {
"description": "Specifies the first line of personalized text that appears on the card. (max 21 characters)",
"type": "string"
},
"name_line_two": {
"description": "Specifies the second line of personalized text that appears on the card. (max 21 characters)",
"type": "string"
}
},
"type": "object"
},
"cvv": {
"description": "The 3-digit card verification code. Note this field will return null unless the `show_cvv` query parameter is set",
"type": "string"
},
"expiration": {
"description": "The card expiration year and month, in MMYY format",
"type": "string"
},
"fulfillment": {
"description": "Information about the card's fulfillment process",
"properties": {
},
"type": "object"
},
"id": {
"description": "Unique identifier for object",
"type": "string"
},
"last4": {
"description": "Last 4 digits of the card number. Filterable.",
"type": "string"
},
"new_pan_from_card_id": {
"description": "The ID of a card to reissue. If this field is entered a new card will be created without pin, a new PAN, CVV and expiration",
"type": "string"
},
"pan": {
"description": "The primary 16-digit card number. Note this field will return null unless the `show_pan` parameter is set",
"type": "string"
},
"person_id": {
"description": "The ID of the person representing the cardholder that this card will be issued to. Filterable.",
"type": "string"
},
"pin_is_set": {
"description": "Reflects whether the user has set a PIN on the card; initially false",
"type": "boolean"
},
"reissue_pan_from_card_id": {
"description": "The ID of a card to reissue. If this field is entered a new card will be created with the same PAN and pin, but new CVV and expiration.",
"type": "string"
},
"show_cvv": {
"description": "When true, the `cvv` field will be returned with non-null data. False by default. Requires PCI compliance.",
"enum": [
"true",
"false"
],
"type": "string"
},
"show_pan": {
"description": "When true, the `pan` field will be returned with non-null data. False by default. Requires PCI compliance.",
"enum": [
"true",
"false"
],
"type": "string"
},
"status": {
"description": "One of: `unactivated`, `active`, `suspended`, `terminated`. Filterable.",
"type": "string"
},
"userdata": {
"description": "Optional arbitrary user data",
"type": "object"
}
}
}
}
},
"description": "The card created"
}
},
"summary": "Create a Card",
"tags": [
"Card"
]
}
},
"/card/{card_id}/digital_wallet_token/apple_pay": {
"post": {
"parameters": [
{
"description": "The ID card being added to the wallet",
"in": "path",
"name": "card_id",
"required": true,
"schema": {
"description": "The ID card being added to the wallet",
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Example",
"value": {
"card_id": "card_291u96075mva",
"certificates": [
"MIIEPDCCA+KgAwIBAgICEAAwCQYHKoZIzj...",
"MIIDZjCCAw2gAwIBAgIJAJx22AGaEPSgMA..."
],
"device_type": "mobile_phone",
"nonce": "vXWJaBidcTLaJJCF",
"nonce_signature": "jD4Aphu+93N2wbBn",
"provisioning_app_version": "2.13.3"
}
}
},
"schema": {
"properties": {
"card_id": {
"description": "The ID card being added to the wallet",
"type": "string"
},
"certificates": {
"description": "Leaf and sub-CA certificates provided by Apple",
"items": {
"type": "string"
},
"type": "array"
},
"device_type": {
"description": "One of `mobile_phone`, `watch`, or `tablet`",
"type": "string"
},
"nonce": {
"description": "One-time-use nonce provided by Apple for security purposes",
"type": "string"
},
"nonce_signature": {
"description": "Apple-provided signature to the nonce",
"type": "string"
},
"provisioning_app_version": {
"description": "Version of the application making the provisioning request",
"type": "string"
}
},
"required": [
"provisioning_app_version",
"device_type",
"certificates",
"nonce_signature",
"card_id",
"nonce"
]
}
}
},
"description": "The apple-pay-token-request to create",
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Success",
"value": {
"activation_data": "TUJQQUMtMS1GSy03NDgwNTIuMS0tVERF",
"card_id": "card_291u96075mva",
"encrypted_pass_data": "w9NGKYa3OkPGeQ+FmAKGga",
"ephemeral_public_key": "BMop3NufgKwy/r0GX1muvomvw"
}
}
},
"schema": {
"properties": {
"card_id": {
"description": "The ID card being added to the wallet",
"type": "string"
},
"certificates": {
"description": "Leaf and sub-CA certificates provided by Apple",
"items": {
"type": "string"
},
"type": "array"
},
"device_type": {
"description": "One of `mobile_phone`, `watch`, or `tablet`",
"type": "string"
},
"nonce": {
"description": "One-time-use nonce provided by Apple for security purposes",
"type": "string"
},
"nonce_signature": {
"description": "Apple-provided signature to the nonce",
"type": "string"
},
"provisioning_app_version": {
"description": "Version of the application making the provisioning request",
"type": "string"
}
}
}
}
},
"description": "The apple-pay-token-request created"
}
},
"summary": "Provision with Apple Pay",
"tags": [
"Digital Wallet Tokens"
]
}
},
"/card/{card_id}/digital_wallet_token/google_pay": {
"post": {
"parameters": [
{
"description": "The ID card being added to the wallet",
"in": "path",
"name": "card_id",
"required": true,
"schema": {
"description": "The ID card being added to the wallet",
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Example",
"value": {
"card_id": "card_291u96075mva",
"device_id": "W85OGhjZTk2dsr452dgsr51j",
"device_type": "mobile_phone",
"provisioning_app_version": "2.13.3",
"wallet_account_id": "ae25OGhjZTk2dsr452dgsr51"
}
}
},
"schema": {
"properties": {
"card_id": {
"description": "The ID card being added to the wallet",
"type": "string"
},
"device_id": {
"description": "The user’s Android device ID; the device’s unique identifier",
"type": "string"
},
"device_type": {
"description": "One of `mobile_phone`, `watch`, or `tablet`",
"type": "string"
},
"provisioning_app_version": {
"description": "Version of the application making the provisioning request",
"type": "string"
},
"wallet_account_id": {
"description": "The user’s Google wallet account ID",
"type": "string"
}
},
"required": [
"provisioning_app_version",
"device_type",
"card_id",
"device_id",
"wallet_account_id"
]
}
}
},
"description": "The google-pay-token-request to create",
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Success",
"value": {
"card_id": "card_291u96075mva",
"device_type": "mobile_phone",
"provisioning_app_version": "2.0",
"push_tokenize_request_data": {
"display_name": "Visa Card",
"last_digits": "1234",
"network": "Visa",
"opaque_payment_card": "eyJraWQiOiIxVjMwT1ZCUTNUMjRZMVFBVFRRUza",
"token_service_provider": "TOKEN_PROVIDER_VISA",
"user_address": {
"address1": "1 Market St",
"address2": "Suite 42",
"city": "San Francisco",
"country": "US",
"name": "George Washington",
"phone": "4154845555",
"postal_code": "94104",
"state": "CA"
}
}
}
}
},
"schema": {
"properties": {
"card_id": {
"description": "The ID card being added to the wallet",
"type": "string"
},
"device_id": {
"description": "The user’s Android device ID; the device’s unique identifier",
"type": "string"
},
"device_type": {
"description": "One of `mobile_phone`, `watch`, or `tablet`",
"type": "string"
},
"provisioning_app_version": {
"description": "Version of the application making the provisioning request",
"type": "string"
},
"wallet_account_id": {
"description": "The user’s Google wallet account ID",
"type": "string"
}
}
}
}
},
"description": "The google-pay-token-request created"
}
},
"summary": "Provision with Google Pay",
"tags": [
"Digital Wallet Tokens"
]
}
},
"/card/{id}": {
"get": {
"parameters": [
{
"description": "Unique identifier for object",
"in": "path",
"name": "id",
"required": true,
"schema": {
"description": "Unique identifier for object",
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Success",
"value": {
"account_id": "acct_291u96075mva",
"card_controls": null,
"card_product_id": "cdpt_w10r2sebv0nl",
"created_at": "2021-02-19T20:42:40Z",
"cvv": null,
"expiration": "0225",
"fulfillment": {
"shipping_method": "USPS Mail (5-7 business days)",
"status": "issued",
"tracking_number": null
},
"id": "card_zuhqnmz7e085",
"last4": "3385",
"pan": null,
"person_id": "psn_5vyzn6sveupa",
"pin_is_set": false,
"status": "unactivated",
"updated_at": "2021-02-19T20:42:41Z",
"userdata": null
}
}
},
"schema": {
"properties": {
"account_id": {
"description": "The ID of the account that the card should be issued against. Filterable.",
"type": "string"
},
"card_controls": {
"description": "An object that defines rules for how this card can be used",
"properties": {
"controls": {
"items": {
"properties": {
"amount": {
"type": "decimal"
},
"interval": {
"type": "string"
},
"mccs": {
"items": {
"type": "mcc"
},
"type": "array"
},
"mids": {
"items": {
"type": "string"
},
"type": "array"
},
"restriction": {
"type": "string"
},
"rollover_time": {
"type": "string"
},
"timezone": {
"type": "string"
},
"type": {
"type": "string"
},
"version": {
"type": "integer"
},
"window": {
"type": "integer"
}
},
"type": "object"
},
"type": "array"
},
"name": {
"type": "string"
}
},
"type": "object"
},
"card_product_id": {
"description": "The ID of the card product that this card should be issued from",
"type": "string"
},
"creation_options": {
"description": "An object that defines additional fields for card customization on creation",
"properties": {
"name_line_one": {
"description": "Specifies the first line of personalized text that appears on the card. (max 21 characters)",
"type": "string"
},
"name_line_two": {
"description": "Specifies the second line of personalized text that appears on the card. (max 21 characters)",
"type": "string"
}
},
"type": "object"
},
"cvv": {
"description": "The 3-digit card verification code. Note this field will return null unless the `show_cvv` query parameter is set",
"type": "string"
},
"expiration": {
"description": "The card expiration year and month, in MMYY format",
"type": "string"
},
"fulfillment": {
"description": "Information about the card's fulfillment process",
"properties": {
},
"type": "object"
},
"id": {
"description": "Unique identifier for object",
"type": "string"
},
"last4": {
"description": "Last 4 digits of the card number. Filterable.",
"type": "string"
},
"new_pan_from_card_id": {
"description": "The ID of a card to reissue. If this field is entered a new card will be created without pin, a new PAN, CVV and expiration",
"type": "string"
},
"pan": {
"description": "The primary 16-digit card number. Note this field will return null unless the `show_pan` parameter is set",
"type": "string"
},
"person_id": {
"description": "The ID of the person representing the cardholder that this card will be issued to. Filterable.",
"type": "string"
},
"pin_is_set": {
"description": "Reflects whether the user has set a PIN on the card; initially false",
"type": "boolean"
},
"reissue_pan_from_card_id": {
"description": "The ID of a card to reissue. If this field is entered a new card will be created with the same PAN and pin, but new CVV and expiration.",
"type": "string"
},
"show_cvv": {
"description": "When true, the `cvv` field will be returned with non-null data. False by default. Requires PCI compliance.",
"enum": [
"true",
"false"
],
"type": "string"
},
"show_pan": {
"description": "When true, the `pan` field will be returned with non-null data. False by default. Requires PCI compliance.",
"enum": [
"true",
"false"
],
"type": "string"
},
"status": {
"description": "One of: `unactivated`, `active`, `suspended`, `terminated`. Filterable.",
"type": "string"
},
"userdata": {
"description": "Optional arbitrary user data",
"type": "object"
}
}
}
}
},
"description": "The card"
}
},
"summary": "Fetch a Card",
"tags": [
"Card"
]
},
"patch": {
"parameters": [
{
"description": "Unique identifier for object",
"in": "path",
"name": "id",
"required": true,
"schema": {
"description": "Unique identifier for object",
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Activating a card",
"value": {
"status": "active"
}
}
},
"schema": {
"properties": {
"card_controls": {
"description": "An object that defines rules for how this card can be used",
"properties": {
"controls": {
"items": {
"properties": {
"amount": {
"type": "decimal"
},
"interval": {
"type": "string"
},
"mccs": {
"items": {
"type": "mcc"
},
"type": "array"
},
"mids": {
"items": {
"type": "string"
},
"type": "array"
},
"restriction": {
"type": "string"
},
"rollover_time": {
"type": "string"
},
"timezone": {
"type": "string"
},
"type": {
"type": "string"
},
"version": {
"type": "integer"
},
"window": {
"type": "integer"
}
},
"type": "object"
},
"type": "array"
},
"name": {
"type": "string"
}
},
"type": "object"
},
"pin": {
"description": "Write-only field representing the card PIN. When passed, set a PIN on behalf of the user. (4 digit number)",
"type": "regex"
},
"status": {
"description": "One of: `unactivated`, `active`, `suspended`, `terminated`",
"type": "string"
},
"userdata": {
"description": "Arbitrary data the user can attach to the object",
"type": "object"
}
}
}
}
},
"description": "The card to update",
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Success",
"value": {
"account_id": "acct_291u96075mva",
"card_controls": null,
"card_product_id": "cdpt_w10r2sebv0nl",
"created_at": "2021-02-19T20:42:40Z",
"cvv": null,
"expiration": "0225",
"fulfillment": {
"shipping_method": "USPS Mail (5-7 business days)",
"status": "issued",
"tracking_number": null
},
"id": "card_zuhqnmz7e085",
"last4": "3385",
"pan": null,
"person_id": "psn_5vyzn6sveupa",
"pin_is_set": false,
"status": "active",
"updated_at": "2021-02-19T20:42:41Z",
"userdata": null
}
}
},
"schema": {
"properties": {
"account_id": {
"description": "The ID of the account that the card should be issued against. Filterable.",
"type": "string"
},
"card_controls": {
"description": "An object that defines rules for how this card can be used",
"properties": {
"controls": {
"items": {
"properties": {
"amount": {
"type": "decimal"
},
"interval": {
"type": "string"
},
"mccs": {
"items": {
"type": "mcc"
},
"type": "array"
},
"mids": {
"items": {
"type": "string"
},
"type": "array"
},
"restriction": {
"type": "string"
},
"rollover_time": {
"type": "string"
},
"timezone": {
"type": "string"
},
"type": {
"type": "string"
},
"version": {
"type": "integer"
},
"window": {
"type": "integer"
}
},
"type": "object"
},
"type": "array"
},
"name": {
"type": "string"
}
},
"type": "object"
},
"card_product_id": {
"description": "The ID of the card product that this card should be issued from",
"type": "string"
},
"creation_options": {
"description": "An object that defines additional fields for card customization on creation",
"properties": {
"name_line_one": {
"description": "Specifies the first line of personalized text that appears on the card. (max 21 characters)",
"type": "string"
},
"name_line_two": {
"description": "Specifies the second line of personalized text that appears on the card. (max 21 characters)",
"type": "string"
}
},
"type": "object"
},
"cvv": {
"description": "The 3-digit card verification code. Note this field will return null unless the `show_cvv` query parameter is set",
"type": "string"
},
"expiration": {
"description": "The card expiration year and month, in MMYY format",
"type": "string"
},
"fulfillment": {
"description": "Information about the card's fulfillment process",
"properties": {
},
"type": "object"
},
"id": {
"description": "Unique identifier for object",
"type": "string"
},
"last4": {
"description": "Last 4 digits of the card number. Filterable.",
"type": "string"
},
"new_pan_from_card_id": {
"description": "The ID of a card to reissue. If this field is entered a new card will be created without pin, a new PAN, CVV and expiration",
"type": "string"
},
"pan": {
"description": "The primary 16-digit card number. Note this field will return null unless the `show_pan` parameter is set",
"type": "string"
},
"person_id": {
"description": "The ID of the person representing the cardholder that this card will be issued to. Filterable.",
"type": "string"
},
"pin_is_set": {
"description": "Reflects whether the user has set a PIN on the card; initially false",
"type": "boolean"
},
"reissue_pan_from_card_id": {
"description": "The ID of a card to reissue. If this field is entered a new card will be created with the same PAN and pin, but new CVV and expiration.",
"type": "string"
},
"show_cvv": {
"description": "When true, the `cvv` field will be returned with non-null data. False by default. Requires PCI compliance.",
"enum": [
"true",
"false"
],
"type": "string"
},
"show_pan": {
"description": "When true, the `pan` field will be returned with non-null data. False by default. Requires PCI compliance.",
"enum": [
"true",
"false"
],
"type": "string"
},
"status": {
"description": "One of: `unactivated`, `active`, `suspended`, `terminated`. Filterable.",
"type": "string"
},
"userdata": {
"description": "Optional arbitrary user data",
"type": "object"
}
}
}
}
},
"description": "The card updated"
}
},
"summary": "Update a Card",
"tags": [
"Card"
]
}
},
"/card/{id}/token": {
"get": {
"parameters": [
{
"description": "ID of the Card to retrieve",
"in": "path",
"name": "id",
"required": true,
"schema": {
"description": "ID of the Card to retrieve",
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Success",
"value": {
"token": "eyJ0b2tlbiI6ICI0NGM5YWY5NS01O"
}
}
},
"schema": {
"properties": {
"token": {
"description": "MarqetaJS access token",
"type": "string"
}
}
}
}
},
"description": "The token"
}
},
"summary": "Request an Access Token",
"tags": [
"MarqetaJS"
]
}
},
"/card_auth_loop_endpoint": {
"get": {
"responses": {
"200": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Success",
"value": {
"data": [
{
"basic_secret": "\u003Cencrypted value\u003E",
"basic_user": "organization_name",
"created_at": "2023-12-01T17:00:00Z",
"id": "cale_11ghk0709srf",
"updated_at": "2023-12-01T17:00:00Z",
"url": "https://example.application.com/newurl",
"userdata": null
}
]
}
}
},
"schema": {
"properties": {
"data": {
"items": {
"properties": {
"basic_secret": {
"description": "First value in `base64(basic_user:basic_secret)`, sent as Authorization for request validation. This will appear as `\u003Cencrypted value\u003E` in all responses, for security",
"type": "string"
},
"basic_user": {
"description": "First value in `base64(basic_user:basic_secret)`, sent as Authorization for request validation",
"type": "string"
},
"id": {
"description": "Unique identifier for object",
"type": "string"
},
"url": {
"description": "The HTTPS URL that will respond to the card auth message",
"type": "string"
},
"userdata": {
"description": "Arbitrary data the user can attach",
"type": "object"
}
}
},
"type": "array"
},
"description": "Array of objects"
},
"type": "object"
}
}
},
"description": "A list of card_auth_loop_endpoint elements"
}
},
"summary": "List Endpoints",
"tags": [
"Card Auth Loop Endpoint"
]
},
"post": {
"requestBody": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Success",
"value": {
"basic_secret": "secret",
"basic_user": "organization_name",
"url": "https://example.application.com/newurl"
}
}
},
"schema": {
"properties": {
"basic_secret": {
"description": "First value in `base64(basic_user:basic_secret)`, sent as Authorization for request validation. This will appear as `\u003Cencrypted value\u003E` in all responses, for security",
"type": "string"
},
"basic_user": {
"description": "First value in `base64(basic_user:basic_secret)`, sent as Authorization for request validation",
"type": "string"
},
"url": {
"description": "The HTTPS URL that will respond to the card auth message",
"type": "string"
},
"userdata": {
"description": "Arbitrary data the user can attach",
"type": "object"
}
},
"required": [
"id",
"url"
]
}
}
},
"description": "The card_auth_loop_endpoint to create",
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Success",
"value": {
"basic_secret": "\u003Cencrypted value\u003E",
"basic_user": "organization_name",
"created_at": "2023-12-01T17:00:00Z",
"id": "cale_11ghk0709srf",
"updated_at": "2023-12-01T17:00:00Z",
"url": "https://example.application.com/newurl",
"userdata": null
}
}
},
"schema": {
"properties": {
"basic_secret": {
"description": "First value in `base64(basic_user:basic_secret)`, sent as Authorization for request validation. This will appear as `\u003Cencrypted value\u003E` in all responses, for security",
"type": "string"
},
"basic_user": {
"description": "First value in `base64(basic_user:basic_secret)`, sent as Authorization for request validation",
"type": "string"
},
"id": {
"description": "Unique identifier for object",
"type": "string"
},
"url": {
"description": "The HTTPS URL that will respond to the card auth message",
"type": "string"
},
"userdata": {
"description": "Arbitrary data the user can attach",
"type": "object"
}
}
}
}
},
"description": "The card_auth_loop_endpoint created"
}
},
"summary": "Create an Endpoint",
"tags": [
"Card Auth Loop Endpoint"
]
}
},
"/card_auth_loop_endpoint/{id}": {
"delete": {
"parameters": [
{
"description": "Unique identifier for object",
"in": "path",
"name": "id",
"required": true,
"schema": {
"description": "Unique identifier for object",
"type": "string"
}
}
],
"responses": {
"204": {
"description": "Success"
}
},
"summary": "Delete an Endpoint",
"tags": [
"Card Auth Loop Endpoint"
]
},
"get": {
"parameters": [
{
"description": "Unique identifier for object",
"in": "path",
"name": "id",
"required": true,
"schema": {
"description": "Unique identifier for object",
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Success",
"value": {
"basic_secret": "\u003Cencrypted value\u003E",
"basic_user": "organization_name",
"created_at": "2023-12-01T17:00:00Z",
"id": "cale_11ghk0709srf",
"updated_at": "2023-12-01T17:00:00Z",
"url": "https://example.application.com/newurl",
"userdata": null
}
}
},
"schema": {
"properties": {
"basic_secret": {
"description": "First value in `base64(basic_user:basic_secret)`, sent as Authorization for request validation. This will appear as `\u003Cencrypted value\u003E` in all responses, for security",
"type": "string"
},
"basic_user": {
"description": "First value in `base64(basic_user:basic_secret)`, sent as Authorization for request validation",
"type": "string"
},
"id": {
"description": "Unique identifier for object",
"type": "string"
},
"url": {
"description": "The HTTPS URL that will respond to the card auth message",
"type": "string"
},
"userdata": {
"description": "Arbitrary data the user can attach",
"type": "object"
}
}
}
}
},
"description": "The card_auth_loop_endpoint"
}
},
"summary": "Fetch an Endpoint",
"tags": [
"Card Auth Loop Endpoint"
]
},
"patch": {
"parameters": [
{
"description": "Unique identifier for object",
"in": "path",
"name": "id",
"required": true,
"schema": {
"description": "Unique identifier for object",
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Updating URL and credentials",
"value": {
"basic_secret": "secret",
"basic_user": "organization_name",
"url": "https://example.application.com/newurl"
}
}
},
"schema": {
"properties": {
"basic_secret": {
"description": "First value in `base64(basic_user:basic_secret)`, sent as Authorization for request validation. This will appear as `\u003Cencrypted value\u003E` in all responses, for security",
"type": "string"
},
"basic_user": {
"description": "First value in `base64(basic_user:basic_secret)`, sent as Authorization for request validation",
"type": "string"
},
"url": {
"description": "The HTTPS URL that will respond to the card auth message",
"type": "string"
},
"userdata": {
"description": "Arbitrary data the user can attach",
"type": "object"
}
}
}
}
},
"description": "The card_auth_loop_endpoint to update",
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Success",
"value": {
"basic_secret": "\u003Cencrypted value\u003E",
"basic_user": "organization_name",
"created_at": "2023-12-01T17:00:00Z",
"id": "cale_11ghk0709srf",
"updated_at": "2023-12-01T17:00:00Z",
"url": "https://example.application.com/newurl",
"userdata": null
}
}
},
"schema": {
"properties": {
"basic_secret": {
"description": "First value in `base64(basic_user:basic_secret)`, sent as Authorization for request validation. This will appear as `\u003Cencrypted value\u003E` in all responses, for security",
"type": "string"
},
"basic_user": {
"description": "First value in `base64(basic_user:basic_secret)`, sent as Authorization for request validation",
"type": "string"
},
"id": {
"description": "Unique identifier for object",
"type": "string"
},
"url": {
"description": "The HTTPS URL that will respond to the card auth message",
"type": "string"
},
"userdata": {
"description": "Arbitrary data the user can attach",
"type": "object"
}
}
}
}
},
"description": "The card_auth_loop_endpoint updated"
}
},
"summary": "Update an Endpoint",
"tags": [
"Card Auth Loop Endpoint"
]
}
},
"/card_event": {
"get": {
"responses": {
"200": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Success",
"value": {
"data": [
{
"amount": "10.00",
"atm": null,
"card_id": "card_09876543421",
"created_at": "2017-11-02T11:55:14Z",
"currency": "USD",
"decline_reason": "Card Not Active",
"id": "cnm_2345678901",
"merchant": {
"address": {
"city": "EDGEWATER",
"country": "USA",
"postal_code": "07020",
"state": "NJ"
},
"mcc": "0000",
"mid": "0123456789",
"name": "A VENDOR NAME"
},
"message_type": "auth-request",
"network": "mastercard",
"network_created_at": "2017-11-02T11:55:09Z",
"networkdata": {
"acquirer": null,
"acquirer_fee_amount": 0,
"acting_user_token": "0146434d-3c22-4906-a538-b61d39cf6f71",
"amount": 10,
"card_acceptor": {
"address": "330 Central Ave.",
"city": "St. Petersburg",
"country_code": "USA",
"mcc": "6411",
"mid": "123456890",
"name": "Marqeta Storefront",
"postal_code": "33705",
"state": "FL"
},
"card_security_code_verification": null,
"card_token": "028b20b2-215f-4ab4-a334-f08d99def0e4",
"created_time": "2022-09-29T21:35:03Z",
"currency_code": "USD",
"digital_wallet_token": {
"address_verification": {
"name": "",
"street_address": "180 Grand Ave",
"zip": "**MASKED**"
},
"card_token": "IC_4e3omf16hwgbfpt7pumg6tfky",
"device": {
"device_id": "0423117BE44E80018327074341948822B514D73218EB41DE",
"ip_address": "101.203.084.990",
"language_code": "eng",
"location": "+35.96/-78.85",
"name": "iPhone",
"phone_number": "14088581301",
"type": "MOBILE_PHONE"
},
"state": "ACTIVE",
"token": "4c72bc11-1574-48c3-8cba-586072a7432f"
},
"fraud": {
"network": {
"account_risk_score": 2,
"transaction_risk_score": 86
}
},
"issuer_interchange_amount": 0,
"network": "MASTERCARD",
"pos": {
"card_holder_presence": false,
"card_presence": false,
"is_recurring": false,
"pan_entry_mode": "MAG_STRIPE",
"partial_approval_capable": false,
"pin_entry_mode": "TRUE",
"purchase_amount_only": false,
"terminal_attendance": "ATTENDED",
"terminal_id": "TR100000"
},
"request_amount": 10,
"settlement_date": "2022-09-29T00:00:00Z",
"state": "PENDING",
"token": "9699f5fc-3516-49c1-93a1-f6a9e6635bdf",
"type": "authorization.incremental",
"user_token": "0146434d-3c22-4906-a538-b61d39cf6f71",
"user_transaction_time": "2022-09-29T21:35:03Z"
},
"processor": "marqeta",
"status": "denied",
"updated_at": "2017-11-02T11:55:14Z"
}
]
}
}
},
"schema": {
"properties": {
"data": {
"items": {
"properties": {
"amount": {
"description": "Amount of money related to the event, with two decimal precision",
"pattern": "^-?[0-9]+[.][0-9][0-9]$",
"type": "string"
},
"approved_amount": {
"description": "Approved amount of money related to the event, with two decimal precision",
"pattern": "^-?[0-9]+[.][0-9][0-9]$",
"type": "string"
},
"atm": {
"description": "Object representing data related to ATM transactions",
"properties": {
"network": {
"description": "ATM network for event",
"type": "string"
},
"network_fee": {
"description": "Fee associated with event",
"type": "string"
}
},
"type": "object"
},
"bank_id": {
"description": "ID of the bank associated with the card event",
"type": "string"
},
"card_id": {
"description": "The ID of the card associated with the event. Filterable.",
"type": "string"
},
"currency": {
"description": "Three digit currency code",
"type": "string"
},
"decline_reason": {
"description": "The reason denied requests were not approved",
"type": "string"
},
"id": {
"description": "Unique identifier for object",
"type": "string"
},
"merchant": {
"description": "Object representing the merchant where the card event occurred",
"properties": {
"address": {
"description": "Object containg `city`, `state`, `postal_code`, and `country` as strings",
"properties": {
"city": {
"description": "Merchant city",
"type": "string"
},
"country": {
"description": "Three-digit country abbreviation",
"type": "string"
},
"postal_code": {
"description": "Five-digit postal code",
"type": "string"
},
"state": {
"description": "Two-digit state abbreviation",
"type": "string"
}
},
"type": "object"
},
"mcc": {
"description": "Merchant category code",
"type": "mcc"
},
"mid": {
"description": "Merchant ID",
"type": "string"
},
"name": {
"description": "Name of the merchant",
"type": "string"
}
},
"type": "object"
},
"message_type": {
"description": "Type of message. See Message Types",
"type": "string"
},
"network": {
"description": "Card network the event occurred on (e.g., `mastercard`)",
"type": "string"
},
"network_created_at": {
"description": "Timestamp of when the network states the event was created. This should match closely to the standard created_at field on the object. It may differ slightly due to the amount of time it takes Treasury Prime to process the event",
"type": "string"
},
"networkdata": {
"description": "Information received from the network. The structure of this information depends on the processor, but may contain information such as amount, fees, or additional information about the transaction",
"type": "object"
},
"org_id": {
"description": "ID of the organization associated with the card event",
"type": "string"
},
"processor": {
"description": "Processor that issued the card",
"type": "string"
},
"status": {
"description": "Status of event. One of `pending`, `error`, `approved`, `denied`, `timeout`, or `received`",
"type": "string"
},
"trace_id": {
"description": "Identifier used to link card events to transactions. Filterable.",
"type": "string"
}
}
},
"type": "array"
},
"description": "Array of objects"
},
"type": "object"
}
}
},
"description": "A list of card_event elements"
}
},
"summary": "List Card Events",
"tags": [
"Card Event"
]
}
},
"/card_event/{id}": {
"get": {
"parameters": [
{
"description": "Unique identifier for object",
"in": "path",
"name": "id",
"required": true,
"schema": {
"description": "Unique identifier for object",
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Success",
"value": {
"amount": "10.00",
"atm": null,
"card_id": "card_09876543421",
"created_at": "2017-11-02T11:55:14Z",
"currency": "USD",
"decline_reason": "Card Not Active",
"id": "cnm_2345678901",
"merchant": {
"address": {
"city": "EDGEWATER",
"country": "USA",
"postal_code": "07020",
"state": "NJ"
},
"mcc": "0000",
"mid": "0123456789",
"name": "A VENDOR NAME"
},
"message_type": "auth-request",
"network": "mastercard",
"network_created_at": "2017-11-02T11:55:09Z",
"networkdata": {
"acquirer": null,
"acquirer_fee_amount": 0,
"acting_user_token": "0146434d-3c22-4906-a538-b61d39cf6f71",
"amount": 10,
"card_acceptor": {
"address": "330 Central Ave.",
"city": "St. Petersburg",
"country_code": "USA",
"mcc": "6411",
"mid": "123456890",
"name": "Marqeta Storefront",
"postal_code": "33705",
"state": "FL"
},
"card_security_code_verification": null,
"card_token": "028b20b2-215f-4ab4-a334-f08d99def0e4",
"created_time": "2022-09-29T21:35:03Z",
"currency_code": "USD",
"digital_wallet_token": {
"address_verification": {
"name": "",
"street_address": "180 Grand Ave",
"zip": "**MASKED**"
},
"card_token": "IC_4e3omf16hwgbfpt7pumg6tfky",
"device": {
"device_id": "0423117BE44E80018327074341948822B514D73218EB41DE",
"ip_address": "101.203.084.990",
"language_code": "eng",
"location": "+35.96/-78.85",
"name": "iPhone",
"phone_number": "14088581301",
"type": "MOBILE_PHONE"
},
"state": "ACTIVE",
"token": "4c72bc11-1574-48c3-8cba-586072a7432f"
},
"fraud": {
"network": {
"account_risk_score": 2,
"transaction_risk_score": 86
}
},
"issuer_interchange_amount": 0,
"network": "MASTERCARD",
"pos": {
"card_holder_presence": false,
"card_presence": false,
"is_recurring": false,
"pan_entry_mode": "MAG_STRIPE",
"partial_approval_capable": false,
"pin_entry_mode": "TRUE",
"purchase_amount_only": false,
"terminal_attendance": "ATTENDED",
"terminal_id": "TR100000"
},
"request_amount": 10,
"settlement_date": "2022-09-29T00:00:00Z",
"state": "PENDING",
"token": "9699f5fc-3516-49c1-93a1-f6a9e6635bdf",
"type": "authorization.incremental",
"user_token": "0146434d-3c22-4906-a538-b61d39cf6f71",
"user_transaction_time": "2022-09-29T21:35:03Z"
},
"processor": "marqeta",
"status": "denied",
"updated_at": "2017-11-02T11:55:14Z"
}
}
},
"schema": {
"properties": {
"amount": {
"description": "Amount of money related to the event, with two decimal precision",
"pattern": "^-?[0-9]+[.][0-9][0-9]$",
"type": "string"
},
"approved_amount": {
"description": "Approved amount of money related to the event, with two decimal precision",
"pattern": "^-?[0-9]+[.][0-9][0-9]$",
"type": "string"
},
"atm": {
"description": "Object representing data related to ATM transactions",
"properties": {
"network": {
"description": "ATM network for event",
"type": "string"
},
"network_fee": {
"description": "Fee associated with event",
"type": "string"
}
},
"type": "object"
},
"bank_id": {
"description": "ID of the bank associated with the card event",
"type": "string"
},
"card_id": {
"description": "The ID of the card associated with the event. Filterable.",
"type": "string"
},
"currency": {
"description": "Three digit currency code",
"type": "string"
},
"decline_reason": {
"description": "The reason denied requests were not approved",
"type": "string"
},
"id": {
"description": "Unique identifier for object",
"type": "string"
},
"merchant": {
"description": "Object representing the merchant where the card event occurred",
"properties": {
"address": {
"description": "Object containg `city`, `state`, `postal_code`, and `country` as strings",
"properties": {
"city": {
"description": "Merchant city",
"type": "string"
},
"country": {
"description": "Three-digit country abbreviation",
"type": "string"
},
"postal_code": {
"description": "Five-digit postal code",
"type": "string"
},
"state": {
"description": "Two-digit state abbreviation",
"type": "string"
}
},
"type": "object"
},
"mcc": {
"description": "Merchant category code",
"type": "mcc"
},
"mid": {
"description": "Merchant ID",
"type": "string"
},
"name": {
"description": "Name of the merchant",
"type": "string"
}
},
"type": "object"
},
"message_type": {
"description": "Type of message. See Message Types",
"type": "string"
},
"network": {
"description": "Card network the event occurred on (e.g., `mastercard`)",
"type": "string"
},
"network_created_at": {
"description": "Timestamp of when the network states the event was created. This should match closely to the standard created_at field on the object. It may differ slightly due to the amount of time it takes Treasury Prime to process the event",
"type": "string"
},
"networkdata": {
"description": "Information received from the network. The structure of this information depends on the processor, but may contain information such as amount, fees, or additional information about the transaction",
"type": "object"
},
"org_id": {
"description": "ID of the organization associated with the card event",
"type": "string"
},
"processor": {
"description": "Processor that issued the card",
"type": "string"
},
"status": {
"description": "Status of event. One of `pending`, `error`, `approved`, `denied`, `timeout`, or `received`",
"type": "string"
},
"trace_id": {
"description": "Identifier used to link card events to transactions. Filterable.",
"type": "string"
}
}
}
}
},
"description": "The card_event"
}
},
"summary": "Fetch a Card Event",
"tags": [
"Card Event"
]
}
},
"/cardproduct": {
"get": {
"responses": {
"200": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Success",
"value": {
"data": [
{
"card_auth_loop_endpoint_id": null,
"card_back_image_file_id": null,
"card_controls": null,
"card_front_image_file_id": null,
"created_at": "2021-02-09T18:58:31Z",
"id": "cdpt_zuhqnmz7e085",
"status": "active",
"three_domain_secure_config": null,
"type": "virtual",
"updated_at": "2021-02-09T18:58:31Z",
"userdata": null
}
]
}
}
},
"schema": {
"properties": {
"data": {
"items": {
"properties": {
"card_auth_loop_endpoint_id": {
"description": "The ID of the Card Auth Loop Endpoint object to be used to approve or reject a card transaction",
"type": "string"
},
"card_back_image_file_id": {
"description": "The ID of a File object containing the image defining the design for the back of the card, if applicable",
"type": "string"
},
"card_controls": {
"description": "An object that defines rules for how this card can be used",
"properties": {
"controls": {
"items": {
"properties": {
"amount": {
"type": "decimal"
},
"interval": {
"type": "string"
},
"mccs": {
"items": {
"type": "mcc"
},
"type": "array"
},
"mids": {
"items": {
"type": "string"
},
"type": "array"
},
"restriction": {
"type": "string"
},
"rollover_time": {
"type": "string"
},
"timezone": {
"type": "string"
},
"type": {
"type": "string"
},
"version": {
"type": "integer"
},
"window": {
"type": "integer"
}
},
"type": "object"
},
"type": "array"
},
"name": {
"type": "string"
}
},
"type": "object"
},
"card_front_image_file_id": {
"description": "The ID of a File object containing the image defining the design for the front of the card, if applicable",
"type": "string"
},
"configuration": {
"description": "An object defining additional card configuration",
"type": "object"
},
"id": {
"description": "Unique identifier for object",
"type": "string"
},
"name": {
"description": "Optional name used to identify the object",
"type": "string"
},
"status": {
"description": "One of: `active`, `inactive`. Filterable.",
"type": "string"
},
"three_domain_secure_config": {
"description": "An object defining 3DS configuration",
"properties": {
"policy": {
"description": "3DS Policy. One of: `none`, `challenge_all`",
"type": "string"
}
},
"type": "object"
},
"type": {
"description": "One of: `physical`, `virtual`. Filterable.",
"type": "string"
},
"userdata": {
"description": "Optional arbitrary user data",
"type": "object"
}
}
},
"type": "array"
},
"description": "Array of objects"
},
"type": "object"
}
}
},
"description": "A list of cardproduct elements"
}
},
"summary": "List Card Products",
"tags": [
"Card Product"
]
}
},
"/cardproduct/{id}": {
"get": {
"parameters": [
{
"description": "Unique identifier for object",
"in": "path",
"name": "id",
"required": true,
"schema": {
"description": "Unique identifier for object",
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Success",
"value": {
"card_auth_loop_endpoint_id": null,
"card_back_image_file_id": null,
"card_controls": null,
"card_front_image_file_id": null,
"created_at": "2021-02-09T18:58:31Z",
"id": "cdpt_zuhqnmz7e085",
"status": "active",
"three_domain_secure_config": null,
"type": "virtual",
"updated_at": "2021-02-09T18:58:31Z",
"userdata": null
}
}
},
"schema": {
"properties": {
"card_auth_loop_endpoint_id": {
"description": "The ID of the Card Auth Loop Endpoint object to be used to approve or reject a card transaction",
"type": "string"
},
"card_back_image_file_id": {
"description": "The ID of a File object containing the image defining the design for the back of the card, if applicable",
"type": "string"
},
"card_controls": {
"description": "An object that defines rules for how this card can be used",
"properties": {
"controls": {
"items": {
"properties": {
"amount": {
"type": "decimal"
},
"interval": {
"type": "string"
},
"mccs": {
"items": {
"type": "mcc"
},
"type": "array"
},
"mids": {
"items": {
"type": "string"
},
"type": "array"
},
"restriction": {
"type": "string"
},
"rollover_time": {
"type": "string"
},
"timezone": {
"type": "string"
},
"type": {
"type": "string"
},
"version": {
"type": "integer"
},
"window": {
"type": "integer"
}
},
"type": "object"
},
"type": "array"
},
"name": {
"type": "string"
}
},
"type": "object"
},
"card_front_image_file_id": {
"description": "The ID of a File object containing the image defining the design for the front of the card, if applicable",
"type": "string"
},
"configuration": {
"description": "An object defining additional card configuration",
"type": "object"
},
"id": {
"description": "Unique identifier for object",
"type": "string"
},
"name": {
"description": "Optional name used to identify the object",
"type": "string"
},
"status": {
"description": "One of: `active`, `inactive`. Filterable.",
"type": "string"
},
"three_domain_secure_config": {
"description": "An object defining 3DS configuration",
"properties": {
"policy": {
"description": "3DS Policy. One of: `none`, `challenge_all`",
"type": "string"
}
},
"type": "object"
},
"type": {
"description": "One of: `physical`, `virtual`. Filterable.",
"type": "string"
},
"userdata": {
"description": "Optional arbitrary user data",
"type": "object"
}
}
}
}
},
"description": "The cardproduct"
}
},
"summary": "Fetch a Card Product",
"tags": [
"Card Product"
]
},
"patch": {
"parameters": [
{
"description": "Unique identifier for object",
"in": "path",
"name": "id",
"required": true,
"schema": {
"description": "Unique identifier for object",
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Updating a card control",
"value": {
"card_controls": {
"card_controls": {
"controls": [
{
"amount": "3000.00",
"interval": "rolling",
"type": "spend_limit",
"version": 1,
"window": 1
}
],
"name": "example_control1"
}
}
}
}
},
"schema": {
"properties": {
"card_auth_loop_endpoint_id": {
"description": "The ID of the Card Auth Loop Endpoint object to be used to approve or reject a card transaction",
"type": "string"
},
"card_controls": {
"description": "An object that defines rules for how this card can be used",
"properties": {
"controls": {
"items": {
"properties": {
"amount": {
"type": "decimal"
},
"interval": {
"type": "string"
},
"mccs": {
"items": {
"type": "mcc"
},
"type": "array"
},
"mids": {
"items": {
"type": "string"
},
"type": "array"
},
"restriction": {
"type": "string"
},
"rollover_time": {
"type": "string"
},
"timezone": {
"type": "string"
},
"type": {
"type": "string"
},
"version": {
"type": "integer"
},
"window": {
"type": "integer"
}
},
"type": "object"
},
"type": "array"
},
"name": {
"type": "string"
}
},
"type": "object"
},
"three_domain_secure_config": {
"description": "An object defining 3DS configuration",
"properties": {
"policy": {
"description": "3DS Policy. One of: `none`, `challenge_all`",
"type": "string"
}
},
"type": "object"
},
"userdata": {
"description": "Optional arbitrary user data",
"type": "object"
}
}
}
}
},
"description": "The cardproduct to update",
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Success",
"value": {
"card_auth_loop_endpoint_id": null,
"card_back_image_file_id": null,
"card_controls": {
"card_controls": {
"controls": [
{
"amount": "3000.00",
"interval": "rolling",
"type": "spend_limit",
"version": 1,
"window": 1
}
],
"name": "example_control1"
}
},
"card_front_image_file_id": null,
"created_at": "2021-02-09T18:58:31Z",
"id": "cdpt_zuhqnmz7e085",
"status": "active",
"three_domain_secure_config": null,
"type": "virtual",
"updated_at": "2021-02-09T18:58:31Z",
"userdata": null
}
}
},
"schema": {
"properties": {
"card_auth_loop_endpoint_id": {
"description": "The ID of the Card Auth Loop Endpoint object to be used to approve or reject a card transaction",
"type": "string"
},
"card_back_image_file_id": {
"description": "The ID of a File object containing the image defining the design for the back of the card, if applicable",
"type": "string"
},
"card_controls": {
"description": "An object that defines rules for how this card can be used",
"properties": {
"controls": {
"items": {
"properties": {
"amount": {
"type": "decimal"
},
"interval": {
"type": "string"
},
"mccs": {
"items": {
"type": "mcc"
},
"type": "array"
},
"mids": {
"items": {
"type": "string"
},
"type": "array"
},
"restriction": {
"type": "string"
},
"rollover_time": {
"type": "string"
},
"timezone": {
"type": "string"
},
"type": {
"type": "string"
},
"version": {
"type": "integer"
},
"window": {
"type": "integer"
}
},
"type": "object"
},
"type": "array"
},
"name": {
"type": "string"
}
},
"type": "object"
},
"card_front_image_file_id": {
"description": "The ID of a File object containing the image defining the design for the front of the card, if applicable",
"type": "string"
},
"configuration": {
"description": "An object defining additional card configuration",
"type": "object"
},
"id": {
"description": "Unique identifier for object",
"type": "string"
},
"name": {
"description": "Optional name used to identify the object",
"type": "string"
},
"status": {
"description": "One of: `active`, `inactive`. Filterable.",
"type": "string"
},
"three_domain_secure_config": {
"description": "An object defining 3DS configuration",
"properties": {
"policy": {
"description": "3DS Policy. One of: `none`, `challenge_all`",
"type": "string"
}
},
"type": "object"
},
"type": {
"description": "One of: `physical`, `virtual`. Filterable.",
"type": "string"
},
"userdata": {
"description": "Optional arbitrary user data",
"type": "object"
}
}
}
}
},
"description": "The cardproduct updated"
}
},
"summary": "Update a Card Product",
"tags": [
"Card Product"
]
}
},
"/digital_wallet_token": {
"get": {
"responses": {
"200": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Success",
"value": {
"data": [
{
"card_id": "card_11h5w1kwp9sabc",
"created_at": "2023-08-03T15:33:19Z",
"device": {
"device_id": "01230BDB794680012340018761933446E55590AA589D5E19",
"ip_address": "71.00.00.01",
"location": "40.00/-73.00",
"name": "iPhone",
"phone_number": "1234",
"type": "mobile_phone"
},
"fulfillment": {
"status": "provisioned"
},
"id": "dwt_11jcqme11p6yabc",
"status": "active",
"token_service_provider": {
"network": "mastercard",
"pan_reference_id": "FAPLMC00002647919b243196787642308f0e123f4e6a9ac2",
"token_pan_last4": "9123",
"token_reference_id": "DAPLMC0000264791b80d3526c86242dd854bf8345a4e3a12",
"token_requestor_id": "50110030273",
"token_requestor_name": "apple_pay"
},
"updated_at": "2023-08-03T15:33:20Z"
}
]
}
}
},
"schema": {
"properties": {
"data": {
"items": {
"properties": {
"card_id": {
"description": "The ID of the card object the token is associated with. Filterable.",
"type": "string"
},
"created_at": {
"description": "Timestamp of when the object was created",
"type": "string"
},
"device": {
"description": "An object that defines additional fields for the device that initiated tokenization",
"properties": {
"device_id": {
"description": "A unique identifier of the device",
"type": "string"
},
"ip_address": {
"description": "The IP address of the device",
"type": "string"
},
"location": {
"description": "Approximate latitude and longitude coordinates of the device",
"type": "string"
},
"name": {
"description": "Name of the device",
"type": "string"
},
"phone_number": {
"description": "The last four numbers of the device's telephone number",
"type": "string"
},
"type": {
"description": "The type of the device. Can be one of `mobile_phone`, `watch`, `tablet`, `unknown`",
"type": "string"
}
},
"type": "object"
},
"fulfillment": {
"description": "An object that defines additional fields for fulfillment of the token",
"properties": {
},
"type": "object"
},
"id": {
"description": "Unique identifier for object",
"type": "string"
},
"status": {
"description": "The status of the token. One of: `active`, `requested`, `request_declined`, `suspended`, `terminated`. Filterable.",
"type": "string"
},
"token_service_provider": {
"description": "An object that defines additional fields for requestor of the token",
"properties": {
"network": {
"description": "The card network the tokenization occurred on. Can be one of `visa`, `mastercard`, or `unknown.",
"type": "string"
},
"pan_reference_id": {
"description": "A unique identifier of digital wallet token PAN",
"type": "string"
},
"token_pan_last4": {
"description": "Last 4 of the digital wallet token PAN",
"type": "string"
},
"token_reference_id": {
"description": "The unique identifier of the digital wallet token",
"type": "string"
},
"token_requestor_id": {
"description": "Unique numerical identifier of the digital wallet token requestor within the card network. These IDs map to a `token_requestor_name`",
"type": "string"
}
},
"type": "object"
},
"updated_at": {
"description": "Timestamp of when the object was updated",
"type": "string"
}
}
},
"type": "array"
},
"description": "Array of objects"
},
"type": "object"
}
}
},
"description": "A list of digital_wallet_token elements"
}
},
"summary": "List Tokens",
"tags": [
"Digital Wallet Tokens"
]
}
},
"/digital_wallet_token/{id}": {
"get": {
"parameters": [
{
"description": "Unique identifier for object",
"in": "path",
"name": "id",
"required": true,
"schema": {
"description": "Unique identifier for object",
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Success",
"value": {
"card_id": "card_11h5w1kwp9sabc",
"created_at": "2023-08-03T15:33:19Z",
"device": {
"device_id": "01230BDB794680012340018761933446E55590AA589D5E19",
"ip_address": "71.00.00.01",
"location": "40.00/-73.00",
"name": "iPhone",
"phone_number": "1234",
"type": "mobile_phone"
},
"fulfillment": {
"status": "provisioned"
},
"id": "dwt_11jcqme11p6yabc",
"status": "active",
"token_service_provider": {
"network": "mastercard",
"pan_reference_id": "FAPLMC00002647919b243196787642308f0e123f4e6a9ac2",
"token_pan_last4": "9123",
"token_reference_id": "DAPLMC0000264791b80d3526c86242dd854bf8345a4e3a12",
"token_requestor_id": "50110030273",
"token_requestor_name": "apple_pay"
},
"updated_at": "2023-08-03T15:33:20Z"
}
}
},
"schema": {
"properties": {
"card_id": {
"description": "The ID of the card object the token is associated with. Filterable.",
"type": "string"
},
"created_at": {
"description": "Timestamp of when the object was created",
"type": "string"
},
"device": {
"description": "An object that defines additional fields for the device that initiated tokenization",
"properties": {
"device_id": {
"description": "A unique identifier of the device",
"type": "string"
},
"ip_address": {
"description": "The IP address of the device",
"type": "string"
},
"location": {
"description": "Approximate latitude and longitude coordinates of the device",
"type": "string"
},
"name": {
"description": "Name of the device",
"type": "string"
},
"phone_number": {
"description": "The last four numbers of the device's telephone number",
"type": "string"
},
"type": {
"description": "The type of the device. Can be one of `mobile_phone`, `watch`, `tablet`, `unknown`",
"type": "string"
}
},
"type": "object"
},
"fulfillment": {
"description": "An object that defines additional fields for fulfillment of the token",
"properties": {
},
"type": "object"
},
"id": {
"description": "Unique identifier for object",
"type": "string"
},
"status": {
"description": "The status of the token. One of: `active`, `requested`, `request_declined`, `suspended`, `terminated`. Filterable.",
"type": "string"
},
"token_service_provider": {
"description": "An object that defines additional fields for requestor of the token",
"properties": {
"network": {
"description": "The card network the tokenization occurred on. Can be one of `visa`, `mastercard`, or `unknown.",
"type": "string"
},
"pan_reference_id": {
"description": "A unique identifier of digital wallet token PAN",
"type": "string"
},
"token_pan_last4": {
"description": "Last 4 of the digital wallet token PAN",
"type": "string"
},
"token_reference_id": {
"description": "The unique identifier of the digital wallet token",
"type": "string"
},
"token_requestor_id": {
"description": "Unique numerical identifier of the digital wallet token requestor within the card network. These IDs map to a `token_requestor_name`",
"type": "string"
}
},
"type": "object"
},
"updated_at": {
"description": "Timestamp of when the object was updated",
"type": "string"
}
}
}
}
},
"description": "The digital_wallet_token"
}
},
"summary": "Fetch a Token",
"tags": [
"Digital Wallet Tokens"
]
},
"patch": {
"parameters": [
{
"description": "Unique identifier for object",
"in": "path",
"name": "id",
"required": true,
"schema": {
"description": "Unique identifier for object",
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Suspending a Digital Wallet Token",
"value": {
"status": "suspended"
}
}
},
"schema": {
"properties": {
"status": {
"description": "One of: `active`, `suspended`, `terminated`. Patch this field to control the active or inactive state of the token",
"type": "string"
}
}
}
}
},
"description": "The digital_wallet_token to update",
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"examples": {
"example": {
"summary": "Success",
"value": {
"card_id": "card_11h5w1kwp9sabc",
"created_at": "2023-08-03T15:33:19Z",
"device": {
"device_id": "01230BDB794680012340018761933446E55590AA589D5E19",
"ip_address": "71.00.00.01",
"location": "40.00/-73.00",
"name": "iPhone",
"phone_number": "1234",
"type": "mobile_phone"
},
"fulfillment": {
"status": "provisioned"
},
"id": "dwt_11jcqme11p6yabc",
"status": "suspended",
"token_service_provider": {
"network": "mastercard",
"pan_reference_id": "FAPLMC00002647919b243196787642308f0e123f4e6a9ac2",
"token_pan_last4": "9123",
"token_reference_id": "DAPLMC0000264791b80d3526c86242dd854bf8345a4e3a12",
"token_requestor_id": "50110030273",
"token_requestor_name": "apple_pay"
},
"updated_at": "2023-08-03T15:33:20Z"
}
}
},
"schema": {
"properties": {
"card_id": {
"description": "The ID of the card object the token is associated with. Filterable.",
"type": "string"
},
"created_at": {
"description": "Timestamp of when the object was created",
"type": "string"
},
"device": {
"description": "An object that defines additional fields for the device that initiated tokenization",
"properties": {
"device_id": {
"description": "A unique identifier of the device",
"type": "string"
},
"ip_address": {
"description": "The IP address of the device",
"type": "string"
},
"location": {
"description": "Approximate latitude and longitude coordinates of the device",
"type": "string"
},
"name": {
"description": "Name of the device",
"type": "string"
},
"phone_number": {
"description": "The last four numbers of the device's telephone number",
"type": "string"
},
"type": {
"description": "The type of the device. Can be one of `mobile_phone`, `watch`, `tablet`, `unknown`",
"type": "string"
}
},
"type": "object"
},
"fulfillment": {
"description": "An object that defines additional fields for fulfillment of the token",
"properties": {
},
"type": "object"
},
"id": {
"description": "Unique identifier for object",
"type": "string"
},
"status": {
"description": "The status of the token. One of: `active`, `requested`, `request_declined`, `suspended`, `terminated`. Filterable.",
"type": "string"
},
"token_service_provider": {
"description": "An object that defines additional fields for requestor of the token",
"properties": {
"network": {
"description": "The card network the tokenization occurred on. Can be one of `visa`, `mastercard`, or `unknown.",
"type": "string"
},
"pan_reference_id": {
"description": "A unique identifier of digital wallet token PAN",
"type": "string"
},
"token_pan_last4": {
"description": "Last 4 of the digital wallet token PAN",
"type": "string"
},
"token_reference_id": {
"description": "The unique identifier of the digital wallet token",
"type": "string"
},
"token_requestor_id": {
"description": "Unique numerical identifier of the digital wallet token requestor within the card network. These IDs map to a `token_requestor_name`",
"type": "string"
}
},
"type": "object"
},
"updated_at": {
"description": "Timestamp of when the object was updated",
"type": "string"
}
}
}
}
},
"description": "The digital_wallet_token updated"
}
},
"summary": "Update a Token",
"tags": [
"Digital Wallet Tokens"
]
}
}
},
"security": [
{
"basicAuth": []
},
{
"apiKey": []
}
],
"servers": [
{
"description": "Production",
"url": "https://api.treasuryprime.com"
},
{
"description": "Sandbox",
"url": "https://api.sandbox.treasuryprime.com"
}
]
}
Updated 7 days ago