Weavr · Schema
PurchaseRequestByCardId
Embedded FinanceBanking as a ServicePaymentsCardsFintechAccountKYCCompany
Properties
| Name | Type | Description |
|---|---|---|
| merchantName | string | The merchant name |
| merchantId | string | The merchant id (MID). If not specified, a random value will be used |
| merchantCategoryCode | string | The merchant category code (MCC). If unspecified or an invalid MCC is specified, the Merchant Code 5399 (Misc. General Merchandise) will be used instead |
| transactionAmount | object | |
| transactionCountry | string | The transaction country in ISO 3166 - alpha-3 format |
| forexFee | integer | If this is a cross-currency transaction, the forex fee amount in the card currency. Deprecated; the forex fee percentage configured at the card profile will be applied if this field is not provided |
| forexPadding | integer | If this is a cross-currency transaction, the forex padding amount in the card currency. Deprecated; a 2% forex padding will be applied if this field is not provided |
| atmWithdrawal | boolean | If set to true, this purchase simulates and ATM Withdrawal transaction. MCC will automatically be set to 6011 |
| additionalMerchantData | object | |
| cardHolderPresent | object | |
| cardPresent | boolean | Optional detail indicating if the card was present when the authorisation occurred. |
| initiateBiometricThreeDSecure | boolean | If the card is enrolled for Biometric Authentication, a 3DS Flow is initiated before the Purchase can resume. |
| transactionTimestamp | integer | Epoch timestamp using millisecond precision. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/weavr/main/json-schema/weavr-purchase-request-by-card-id-schema.json",
"title": "PurchaseRequestByCardId",
"x-generated": "2026-10-12",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/weavr-cards-api-openapi.yml#/components/schemas/PurchaseRequestByCardId",
"required": [
"merchantName",
"transactionAmount"
],
"type": "object",
"properties": {
"merchantName": {
"maxLength": 50,
"minLength": 1,
"type": "string",
"description": "The merchant name",
"x-fieldValidation": "required size(1,50)"
},
"merchantId": {
"maxLength": 15,
"minLength": 1,
"type": "string",
"description": "The merchant id (MID). If not specified, a random value will be used",
"x-fieldValidation": "size(1,15)"
},
"merchantCategoryCode": {
"maxLength": 4,
"minLength": 1,
"type": "string",
"description": "The merchant category code (MCC). If unspecified or an invalid MCC is specified, the Merchant Code 5399 (Misc. General Merchandise) will be used instead",
"x-fieldValidation": "size(1,4)"
},
"transactionAmount": {
"allOf": [
{
"$ref": "#/$defs/CurrencyAmount"
},
{
"description": "The amount of the purchase",
"x-fieldValidation": "required"
}
]
},
"transactionCountry": {
"maxLength": 3,
"minLength": 3,
"pattern": "^[A-Z]*$",
"type": "string",
"description": "The transaction country in ISO 3166 - alpha-3 format",
"x-fieldValidation": "size(3,3) regex([A-Z]*)"
},
"forexFee": {
"type": "integer",
"description": "If this is a cross-currency transaction, the forex fee amount in the card currency. Deprecated; the forex fee percentage configured at the card profile will be applied if this field is not provided",
"format": "int64",
"deprecated": true
},
"forexPadding": {
"type": "integer",
"description": "If this is a cross-currency transaction, the forex padding amount in the card currency. Deprecated; a 2% forex padding will be applied if this field is not provided",
"format": "int64",
"deprecated": true
},
"atmWithdrawal": {
"type": "boolean",
"description": "If set to true, this purchase simulates and ATM Withdrawal transaction. MCC will automatically be set to 6011"
},
"additionalMerchantData": {
"allOf": [
{
"$ref": "#/$defs/AdditionalMerchantData"
},
{
"description": "Additional merchant data"
}
]
},
"cardHolderPresent": {
"allOf": [
{
"$ref": "#/$defs/CardHolderPresent"
},
{
"description": "Optional detail indicating if the card holder was present when the authorisation occurred."
}
]
},
"cardPresent": {
"type": "boolean",
"description": "Optional detail indicating if the card was present when the authorisation occurred."
},
"initiateBiometricThreeDSecure": {
"type": "boolean",
"description": "If the card is enrolled for Biometric Authentication, a 3DS Flow is initiated before the Purchase can resume."
},
"transactionTimestamp": {
"type": "integer",
"description": "Epoch timestamp using millisecond precision.",
"format": "int64"
}
},
"$defs": {
"AdditionalMerchantData": {
"type": "object",
"properties": {
"merchantStreet": {
"type": "string"
},
"merchantCity": {
"type": "string"
},
"merchantState": {
"type": "string"
},
"merchantPostalCode": {
"type": "string"
},
"merchantCountry": {
"maxLength": 3,
"minLength": 3,
"pattern": "^[A-Z]*$",
"type": "string",
"x-fieldValidation": "size(3,3) regex([A-Z]*)"
},
"merchantTelephone": {
"type": "string"
},
"merchantURL": {
"type": "string"
},
"merchantNameOther": {
"type": "string"
},
"merchantNetworkId": {
"type": "string"
},
"merchantContact": {
"type": "string"
}
}
},
"CardHolderPresent": {
"type": "string",
"enum": [
"PRESENT",
"NOT_PRESENT",
"PRESENCE_UNKNOWN"
]
},
"CurrencyAmount": {
"required": [
"currency"
],
"type": "object",
"properties": {
"currency": {
"maxLength": 3,
"minLength": 3,
"pattern": "^[A-Z]*$",
"type": "string",
"description": "The currency ISO-4217 code, i.e. a three letter uppercase code, such as GBP, EUR, USD.",
"x-fieldValidation": "required size(3,3) regex([A-Z]*)"
},
"amount": {
"type": "integer",
"description": "The monetary amount, scaled to the lowest denomination of the currency. For example, an amount of 1000 for a EUR currency is actually 1000 Euro cents, i.e. EUR 10.00.",
"format": "int64"
}
},
"description": "A message representing a monetary amount in a particular currency."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/weavr-purchase-request-by-card-id"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.