Create a Payment Method
/brm/paymentMethods/v4/paymentMethod
Request
There are no request parameters for this operation.
- application/json;charset=utf-8
-
object
Cash
Specifies a cash payment method with no additional data. You can extend it to include information such as the cashier who accepted the payment or the person who paid.
-
object
Check
Specifies a check payment method.
-
object
BankAccountDebit
Specifies a bank account debit payment method. You can extend it to include any authorization fields that recurring payments require.
-
object
BankCard
Specifies a bank card payment method.
-
object
TokenizedCard
Specifies a tokenized card payment method.
object-
@baseType: string
Allowed Values:
[ "PaymentMethod" ] -
@type: string
Allowed Values:
[ "cash" ] -
effectiveDate(required): string
(date-time)
Specifies the cash payment's effective date.
-
recieptNo(required): string
Specifies the BRM cash receipt number.
-
object
allOf
PaymentMethod
Specifies the base model for the implemented cash, check, bank account debit, bank card, and tokenized card payment methods.
object-
@baseType: string
Allowed Values:
[ "PaymentMethod" ] -
@type: string
Allowed Values:
[ "check" ] -
bank(required): string
Specifies the bank that pays the check.
-
checkId(required): string
Specifies the check's unique ID.
-
drawer(required): string
Specifies the person or entity that writes the check.
-
payee(required): string
Specifies the check's payee.
-
signedDate(required): string
(date-time)
Specifies the check's signing date.
-
object
allOf
PaymentMethod
Specifies the base model for the implemented cash, check, bank account debit, bank card, and tokenized card payment methods.
object-
@baseType: string
Allowed Values:
[ "PaymentMethod" ] -
@type: string
Allowed Values:
[ "bankAccountDebit" ] -
accountNumber(required): string
Specifies the bank account's number, which may refer to the IBAN or SWIFT number.
-
accountNumberType(required): string
Specifies the account number's type, such as IBAN or SWIFT.
-
bank(required): string
Specifies the bank's display name.
-
BIC: string
Specifies the financial institution's Business Identifier Code or SWIFT code for the account.
-
city: string
Specifies the city in the BRM address.
-
country: string
Specifies the country in the BRM address.
-
owner: string
Specifies the bank account's owner, which also serves as the account name.
-
postCode: string
Specifies the postal code in the BRM address.
-
stateOrProvince: string
Specifies the state or province in the BRM address.
-
street: string
Specifies the BRM street address.
-
object
allOf
PaymentMethod
Specifies the base model for the implemented cash, check, bank account debit, bank card, and tokenized card payment methods.
object-
@baseType: string
Allowed Values:
[ "PaymentMethod" ] -
@type: string
Allowed Values:
[ "bankCard" ] -
bank: string
Specifies the bank that issued the card.
-
brand(required): string
Specifies the card's brand.
-
cardNumber(required): string
Specifies the bank card's number.
-
cardType: string
Specifies the card's type, such as credit or debit.
-
city: string
Specifies the city in the BRM address.
-
country: string
Specifies the country in the BRM address.
-
cvv: string
Specifies the card's security code, such as CVV or CVV2.
-
expirationDate(required): string
Specifies the bank card's expiration date.Example:
0325 -
lastFourDigits: string
Specifies the credit card's last four digits.
-
nameOnCard(required): string
Specifies the name on the card.
-
postCode: string
Specifies the postal code in the BRM address.
-
stateOrProvince: string
Specifies the state or province in the BRM address.
-
street: string
Specifies the BRM street address.
-
object
allOf
PaymentMethod
Specifies the base model for the implemented cash, check, bank account debit, bank card, and tokenized card payment methods.
object-
@baseType: string
Allowed Values:
[ "PaymentMethod" ] -
@type: string
Allowed Values:
[ "tokenizedCard" ] -
brand(required): string
Specifies the card's brand for possible display purposes.
-
cardType: string
Specifies the card's type for possible display purposes.
-
city: string
Specifies the city in the BRM address.
-
country: string
Specifies the country in the BRM address.
-
countryOfIssue: string
Specifies the tokenized card's country of issue as an ISO 3166-1 alpha-2 country code, such as GB, NG, or FR.
-
expirationDate(required): string
Specifies the tokenized card's expiration date.Example:
0325 -
issuer: string
Specifies the entity that issued the token.
-
lastFourDigits(required): string
Specifies the credit card's last four digits.
-
postCode: string
Specifies the postal code in the BRM address.
-
stateOrProvince: string
Specifies the state or province in the BRM address.
-
street: string
Specifies the BRM street address.
-
token(required): string
Specifies the token as a series of randomly generated numbers.
-
tokenType(required): string
Specifies the token's type, such as emv.
-
object
allOf
PaymentMethod
Specifies the base model for the implemented cash, check, bank account debit, bank card, and tokenized card payment methods.
object-
@baseType: string
Allowed Values:
[ "PaymentMethod" ]Specifies the base resource type for an out-of-the-box payment method. -
@type(required): string
Allowed Values:
[ "cash", "tokenizedCard", "bankAccountDebit", "bankCard", "check" ]Specifies the payment method's type, such as bank card, cash, or voucher. -
account: array
account
Refers to the payment method's linked accounts, which may be party accounts or financial accounts.
-
authorizationCode: string
Specifies the authorization code that a financial institution provides. For recurring payments that use this method, this field typically contains the code; individual payments have their own authorization codes.
-
description: string
Specifies a textual description of the payment method's contents.
-
isPreferred: boolean
Specifies whether the owner prefers this payment method. Queries for a specific customer's or account's payment methods typically use this value.
-
name(required): string
Specifies the payment method's friendly name.
- relatedParty: object Related Party
- relatedPlace: object RelatedPlace
-
status: string
Specifies the payment method's status.
-
statusDate: string
(date-time)
Specifies when the payment method's status last changed.
-
statusReason: string
Specifies the reason for the last status change.
-
validFor: object
TimePeriod
Represents a time period with a start date, an end date, or both.
-
object
allOf
Entity
Represents a base entity schema for TM Forum Open APIs.
object-
object
Extensible
Represents a base extensible schema for TM Forum Open APIs. The entity must include @type.
-
object
Addressable
Defines a base schema for addressable entities.
object-
@baseType: string
The superclass.
-
@schemaLocation: string
The URI of a JSON Schema file that defines additional attributes and relationships.
-
@type(required): string
The subclass Extensible name.
object-
href: string
The hyperlink reference.
-
id: string
The ID.
Response
- application/json;charset=utf-8
201 Response
-
object
Cash
Specifies a cash payment method with no additional data. You can extend it to include information such as the cashier who accepted the payment or the person who paid.
-
object
Check
Specifies a check payment method.
-
object
BankAccountDebit
Specifies a bank account debit payment method. You can extend it to include any authorization fields that recurring payments require.
-
object
BankCard
Specifies a bank card payment method.
-
object
TokenizedCard
Specifies a tokenized card payment method.
object-
@baseType: string
Allowed Values:
[ "PaymentMethod" ] -
@type: string
Allowed Values:
[ "cash" ] -
effectiveDate(required): string
(date-time)
Specifies the cash payment's effective date.
-
recieptNo(required): string
Specifies the BRM cash receipt number.
-
object
allOf
PaymentMethod
Specifies the base model for the implemented cash, check, bank account debit, bank card, and tokenized card payment methods.
object-
@baseType: string
Allowed Values:
[ "PaymentMethod" ] -
@type: string
Allowed Values:
[ "check" ] -
bank(required): string
Specifies the bank that pays the check.
-
checkId(required): string
Specifies the check's unique ID.
-
drawer(required): string
Specifies the person or entity that writes the check.
-
payee(required): string
Specifies the check's payee.
-
signedDate(required): string
(date-time)
Specifies the check's signing date.
-
object
allOf
PaymentMethod
Specifies the base model for the implemented cash, check, bank account debit, bank card, and tokenized card payment methods.
object-
@baseType: string
Allowed Values:
[ "PaymentMethod" ] -
@type: string
Allowed Values:
[ "bankAccountDebit" ] -
accountNumber(required): string
Specifies the bank account's number, which may refer to the IBAN or SWIFT number.
-
accountNumberType(required): string
Specifies the account number's type, such as IBAN or SWIFT.
-
bank(required): string
Specifies the bank's display name.
-
BIC: string
Specifies the financial institution's Business Identifier Code or SWIFT code for the account.
-
city: string
Specifies the city in the BRM address.
-
country: string
Specifies the country in the BRM address.
-
owner: string
Specifies the bank account's owner, which also serves as the account name.
-
postCode: string
Specifies the postal code in the BRM address.
-
stateOrProvince: string
Specifies the state or province in the BRM address.
-
street: string
Specifies the BRM street address.
-
object
allOf
PaymentMethod
Specifies the base model for the implemented cash, check, bank account debit, bank card, and tokenized card payment methods.
object-
@baseType: string
Allowed Values:
[ "PaymentMethod" ] -
@type: string
Allowed Values:
[ "bankCard" ] -
bank: string
Specifies the bank that issued the card.
-
brand(required): string
Specifies the card's brand.
-
cardNumber(required): string
Specifies the bank card's number.
-
cardType: string
Specifies the card's type, such as credit or debit.
-
city: string
Specifies the city in the BRM address.
-
country: string
Specifies the country in the BRM address.
-
cvv: string
Specifies the card's security code, such as CVV or CVV2.
-
expirationDate(required): string
Specifies the bank card's expiration date.Example:
0325 -
lastFourDigits: string
Specifies the credit card's last four digits.
-
nameOnCard(required): string
Specifies the name on the card.
-
postCode: string
Specifies the postal code in the BRM address.
-
stateOrProvince: string
Specifies the state or province in the BRM address.
-
street: string
Specifies the BRM street address.
-
object
allOf
PaymentMethod
Specifies the base model for the implemented cash, check, bank account debit, bank card, and tokenized card payment methods.
object-
@baseType: string
Allowed Values:
[ "PaymentMethod" ] -
@type: string
Allowed Values:
[ "tokenizedCard" ] -
brand(required): string
Specifies the card's brand for possible display purposes.
-
cardType: string
Specifies the card's type for possible display purposes.
-
city: string
Specifies the city in the BRM address.
-
country: string
Specifies the country in the BRM address.
-
countryOfIssue: string
Specifies the tokenized card's country of issue as an ISO 3166-1 alpha-2 country code, such as GB, NG, or FR.
-
expirationDate(required): string
Specifies the tokenized card's expiration date.Example:
0325 -
issuer: string
Specifies the entity that issued the token.
-
lastFourDigits(required): string
Specifies the credit card's last four digits.
-
postCode: string
Specifies the postal code in the BRM address.
-
stateOrProvince: string
Specifies the state or province in the BRM address.
-
street: string
Specifies the BRM street address.
-
token(required): string
Specifies the token as a series of randomly generated numbers.
-
tokenType(required): string
Specifies the token's type, such as emv.
-
object
allOf
PaymentMethod
Specifies the base model for the implemented cash, check, bank account debit, bank card, and tokenized card payment methods.
object-
@baseType: string
Allowed Values:
[ "PaymentMethod" ]Specifies the base resource type for an out-of-the-box payment method. -
@type(required): string
Allowed Values:
[ "cash", "tokenizedCard", "bankAccountDebit", "bankCard", "check" ]Specifies the payment method's type, such as bank card, cash, or voucher. -
account: array
account
Refers to the payment method's linked accounts, which may be party accounts or financial accounts.
-
authorizationCode: string
Specifies the authorization code that a financial institution provides. For recurring payments that use this method, this field typically contains the code; individual payments have their own authorization codes.
-
description: string
Specifies a textual description of the payment method's contents.
-
isPreferred: boolean
Specifies whether the owner prefers this payment method. Queries for a specific customer's or account's payment methods typically use this value.
-
name(required): string
Specifies the payment method's friendly name.
- relatedParty: object Related Party
- relatedPlace: object RelatedPlace
-
status: string
Specifies the payment method's status.
-
statusDate: string
(date-time)
Specifies when the payment method's status last changed.
-
statusReason: string
Specifies the reason for the last status change.
-
validFor: object
TimePeriod
Represents a time period with a start date, an end date, or both.
-
object
allOf
Entity
Represents a base entity schema for TM Forum Open APIs.
object-
object
Extensible
Represents a base extensible schema for TM Forum Open APIs. The entity must include @type.
-
object
Addressable
Defines a base schema for addressable entities.
object-
@baseType: string
The superclass.
-
@schemaLocation: string
The URI of a JSON Schema file that defines additional attributes and relationships.
-
@type(required): string
The subclass Extensible name.
object-
href: string
The hyperlink reference.
-
id: string
The ID.
400 Response
-
object
Extensible
Represents a base extensible schema for TM Forum Open APIs. The entity must include @type.
-
object
Error-allOf[1]
object-
@baseType: string
The superclass.
-
@schemaLocation: string
The URI of a JSON Schema file that defines additional attributes and relationships.
-
@type(required): string
The subclass Extensible name.
object-
code(required): string
The application-specific error detail defined by the API or a common list.
-
message: string
Provides error details and corrective actions for a client user.
-
reason(required): string
Explains the error to a client user.
-
referenceError: string
The URI of documentation that describes the error.
-
status: string
The HTTP error code extension.
401 Response
-
object
Extensible
Represents a base extensible schema for TM Forum Open APIs. The entity must include @type.
-
object
Error-allOf[1]
object-
@baseType: string
The superclass.
-
@schemaLocation: string
The URI of a JSON Schema file that defines additional attributes and relationships.
-
@type(required): string
The subclass Extensible name.
object-
code(required): string
The application-specific error detail defined by the API or a common list.
-
message: string
Provides error details and corrective actions for a client user.
-
reason(required): string
Explains the error to a client user.
-
referenceError: string
The URI of documentation that describes the error.
-
status: string
The HTTP error code extension.
403 Response
-
object
Extensible
Represents a base extensible schema for TM Forum Open APIs. The entity must include @type.
-
object
Error-allOf[1]
object-
@baseType: string
The superclass.
-
@schemaLocation: string
The URI of a JSON Schema file that defines additional attributes and relationships.
-
@type(required): string
The subclass Extensible name.
object-
code(required): string
The application-specific error detail defined by the API or a common list.
-
message: string
Provides error details and corrective actions for a client user.
-
reason(required): string
Explains the error to a client user.
-
referenceError: string
The URI of documentation that describes the error.
-
status: string
The HTTP error code extension.
405 Response
-
object
Extensible
Represents a base extensible schema for TM Forum Open APIs. The entity must include @type.
-
object
Error-allOf[1]
object-
@baseType: string
The superclass.
-
@schemaLocation: string
The URI of a JSON Schema file that defines additional attributes and relationships.
-
@type(required): string
The subclass Extensible name.
object-
code(required): string
The application-specific error detail defined by the API or a common list.
-
message: string
Provides error details and corrective actions for a client user.
-
reason(required): string
Explains the error to a client user.
-
referenceError: string
The URI of documentation that describes the error.
-
status: string
The HTTP error code extension.
409 Response
-
object
Extensible
Represents a base extensible schema for TM Forum Open APIs. The entity must include @type.
-
object
Error-allOf[1]
object-
@baseType: string
The superclass.
-
@schemaLocation: string
The URI of a JSON Schema file that defines additional attributes and relationships.
-
@type(required): string
The subclass Extensible name.
object-
code(required): string
The application-specific error detail defined by the API or a common list.
-
message: string
Provides error details and corrective actions for a client user.
-
reason(required): string
Explains the error to a client user.
-
referenceError: string
The URI of documentation that describes the error.
-
status: string
The HTTP error code extension.
500 Response
-
object
Extensible
Represents a base extensible schema for TM Forum Open APIs. The entity must include @type.
-
object
Error-allOf[1]
object-
@baseType: string
The superclass.
-
@schemaLocation: string
The URI of a JSON Schema file that defines additional attributes and relationships.
-
@type(required): string
The subclass Extensible name.
object-
code(required): string
The application-specific error detail defined by the API or a common list.
-
message: string
Provides error details and corrective actions for a client user.
-
reason(required): string
Explains the error to a client user.
-
referenceError: string
The URI of documentation that describes the error.
-
status: string
The HTTP error code extension.
Examples
The following examples show how to create payment methods by submitting POST requests on the REST resource using cURL. Examples 1 and 3 through 6 show core payment methods. Examples 2 and 7 show BRM SDK extended payment methods. For more information, see Use cURL.
Example 1: Payment method creation for direct debit (payinfo/dd).
The following request uses the documented payload.
curl -X POST 'http://host:port/brm/paymentMethods/version/paymentMethod' -H 'Content-Type: application/json;charset=utf-8' -d @createPaymentMethod1.json
where:
- hostname is the URL for the REST server.
- port is the port for the REST server.
- version is the version of the API you're using, such as v1. For Payment Method API, v1 and v4 are supported. In BRM 16.26, v4 support is limited to payment methods with the following @type values: bankCard, cash, check, bankAccountDebit, and tokenizedCard.
-
The -d option specifies the sample request body file.
Example of Request Body
The following example shows the contents of the request body file.
{
"name": "Main Direct Debit",
"isPreferred": false,
"account": [
{
"id": "0.0.0.1+-account+228562"
}
],
"@type": "bankAccountDebit",
"accountNumber": "12345678901234567",
"accountNumberType": "None",
"owner": "ABC ABC",
"bank": "Fictitious Bank.inc"
}Example of Response Body
The following example shows the contents of the response body.
{
"id": "0.0.0.1+-payinfo-dd+1067067",
"href": "http://host:port/brm/paymentMethods/v4/paymentMethod/0.0.0.1+-payinfo-dd+1067067",
"account": [
{
"id": "0.0.0.1+-account+228562"
}
],
"accountNumberType": "None",
"accountNumber": "12345678901234567",
"name": "Main Direct Debit",
"owner": "ABC ABC",
"isPreferred": false,
"@type": "bankAccountDebit",
"bank": "Fictitious Bank.inc"
}Example 2: Create an extended Invoice payment method.
The following request uses the documented payload.
curl -X POST 'http://host:port/brm/paymentMethods/version/paymentMethod' -H 'Content-Type: application/json;charset=utf-8' -d @createPaymentMethod2.json
where:
- hostname is the URL for the REST server.
- port is the port for the REST server.
- version is the version of the API you're using, such as v1. For Payment Method API, v1 and v4 are supported. In BRM 16.26, v4 support is limited to payment methods with the following @type values: bankCard, cash, check, bankAccountDebit, and tokenizedCard.
-
The -d option specifies the sample request body file.
Example of Request Body
The following example shows the contents of the request body file.
{
"name": "New Invoice-1",
"isPreferred": true,
"account": [
{
"id": "0.0.0.1+-account+228562"
}
],
"@type": "invoice",
"mediumType": "emailAddress",
"emailAddress": "abc@xyz.com",
"invoiceName": "test ps8",
"street": "KAR",
"city": "KAR",
"stateOrProvince": "KAR",
"postCode": "147001",
"country": "AF"
}Example of Response Body
The following example shows the contents of the response body.
{
"emailAddress": "abc@xyz.com",
"city": "KAR",
"id": "0.0.0.1+-payinfo-invoice+1062471",
"href": "http://host:port/brm/paymentMethods/v4/paymentMethod/0.0.0.1+-payinfo-invoice+1062471",
"account": [
{
"id": "0.0.0.1+-account+228562"
}
],
"country": "AF",
"invoiceName": "test ps8",
"name": "New Invoice-1",
"street": "KAR",
"stateOrProvince": "KAR",
"postCode": "147001",
"isPreferred": true,
"@type": "invoice"
}Example 3: Payment method creation for credit card(payinfo/cc).
The following request uses the documented payload.
curl -X POST 'http://host:port/brm/paymentMethods/version/paymentMethod' -H 'Content-Type: application/json;charset=utf-8' -d @createPaymentMethod3.json
where:
- hostname is the URL for the REST server.
- port is the port for the REST server.
- version is the version of the API you're using, such as v1. For Payment Method API, v1 and v4 are supported. In BRM 16.26, v4 support is limited to payment methods with the following @type values: bankCard, cash, check, bankAccountDebit, and tokenizedCard.
-
The -d option specifies the sample request body file.
Example of Request Body
The following example shows the contents of the request body file.
{
"name": "Main Direcct Debit",
"isPreferred": false,
"account": [
{
"id": "0.0.0.1+-account+228562"
}
],
"@type": "bankCard",
"city": "KAR",
"country": "AF",
"street": "KAR",
"stateOrProvince": "KAR",
"postCode": "147001",
"cardType": "credit",
"nameOnCard": "New CC",
"expirationDate": "0325",
"cardNumber": "2222 3333 4444 5555",
"brand": "visa"
}Example of Response Body
The following example shows the contents of the response body.
{
"id": "0.0.0.1+-payinfo-cc+1070424",
"href": "http://host:port/brm/paymentMethods/v4/paymentMethod/0.0.0.1+-payinfo-cc+1070424",
"account": [
{
"id": "0.0.0.1+-account+228562"
}
],
"nameOnCard": "New CC",
"street": "KAR",
"cardType": "credit",
"postCode": "147001",
"name": "Main Direcct Debit",
"cardNumber": "2222333344445555 ",
"city": "KAR",
"country": "AF",
"stateOrProvince": "KAR",
"@type": "bankCard",
"brand": "visa",
"isPreferred": false
}Example 4: Create a cash payment method.
The following request uses a tested cash payment-method payload.
curl -X POST 'http://host:port/brm/paymentMethods/version/paymentMethod' -H 'Content-Type: application/json;charset=utf-8' -d @createCashPaymentMethod.json
where:
- hostname is the URL for the REST server.
- port is the port for the REST server.
- version is the version of the API you're using, such as v1. For Payment Method API, v1 and v4 are supported. In BRM 16.26, v4 support is limited to payment methods with the following @type values: bankCard, cash, check, bankAccountDebit, and tokenizedCard.
-
The -d option specifies the sample request body file.
Example of Request Body
The following example shows the contents of the request body file.
{
"name": "Complete Cash Payment",
"account": [
{
"id": "payment_account_usa"
}
],
"isPreferred": false,
"@type": "cash",
"@baseType": "PaymentMethod",
"recieptNo": "CASH-RECEIPT-1001",
"effectiveDate": "2026-01-01T08:40:00Z"
}Example of Response Body
The following example shows the contents of the response body.
{
"id": "payment-cash-complete-1",
"href": "http://host:port/brm/paymentMethods/v4/paymentMethod/payment-cash-complete-1",
"name": "Complete Cash Payment",
"account": [
{
"id": "payment_account_usa"
}
],
"isPreferred": false,
"@type": "cash",
"@baseType": "PaymentMethod",
"recieptNo": "CASH-RECEIPT-1001",
"effectiveDate": "2026-01-01T08:40:00.00Z"
}Example 5: Create a check payment method.
The following request uses a tested check payment-method payload.
curl -X POST 'http://host:port/brm/paymentMethods/version/paymentMethod' -H 'Content-Type: application/json;charset=utf-8' -d @createCheckPaymentMethod.json
where:
- hostname is the URL for the REST server.
- port is the port for the REST server.
- version is the version of the API you're using, such as v1. For Payment Method API, v1 and v4 are supported. In BRM 16.26, v4 support is limited to payment methods with the following @type values: bankCard, cash, check, bankAccountDebit, and tokenizedCard.
-
The -d option specifies the sample request body file.
Example of Request Body
The following example shows the contents of the request body file.
{
"name": "Complete Check Payment",
"account": [
{
"id": "payment_account_usa"
}
],
"isPreferred": false,
"@type": "check",
"@baseType": "PaymentMethod",
"checkId": "CHECK-1001",
"drawer": "ABC Telecom Ltd",
"payee": "Oracle Corporation",
"signedDate": "2026-01-01T08:40:00Z",
"bank": "HSBC Bank"
}Example of Response Body
The following example shows the contents of the response body.
{
"id": "payment-check-complete-1",
"href": "http://host:port/brm/paymentMethods/v4/paymentMethod/payment-check-complete-1",
"name": "Complete Check Payment",
"account": [
{
"id": "payment_account_usa"
}
],
"isPreferred": false,
"@type": "check",
"@baseType": "PaymentMethod",
"checkId": "CHECK-1001",
"drawer": "ABC Telecom Ltd",
"payee": "Oracle Corporation",
"signedDate": "2026-01-01T08:40:00.00Z",
"bank": "HSBC Bank"
}Example 6: Create a tokenized card payment method.
The following request uses a tested tokenized-card payment-method payload.
curl -X POST 'http://host:port/brm/paymentMethods/version/paymentMethod' -H 'Content-Type: application/json;charset=utf-8' -d @createTokenizedCardPaymentMethod.json
where:
- hostname is the URL for the REST server.
- port is the port for the REST server.
- version is the version of the API you're using, such as v1. For Payment Method API, v1 and v4 are supported. In BRM 16.26, v4 support is limited to payment methods with the following @type values: bankCard, cash, check, bankAccountDebit, and tokenizedCard.
-
The -d option specifies the sample request body file.
Example of Request Body
The following example shows the contents of the request body file.
{
"name": "Complete Tokenized Card",
"account": [
{
"id": "payment_account_usa"
}
],
"isPreferred": false,
"@type": "tokenizedCard",
"@baseType": "PaymentMethod",
"cardType": "unknown",
"brand": "visa",
"tokenType": "Token for Visa",
"lastFourDigits": "4242",
"expirationDate": "0328",
"token": "4242424242424242"
}Example of Response Body
The following example shows the contents of the response body.
{
"id": "payment-tokenizedCard-complete-1",
"href": "http://host:port/brm/paymentMethods/v4/paymentMethod/payment-tokenizedCard-complete-1",
"name": "Complete Tokenized Card",
"account": [
{
"id": "payment_account_usa"
}
],
"isPreferred": false,
"@type": "tokenizedCard",
"@baseType": "PaymentMethod",
"cardType": "unknown",
"brand": "visa",
"tokenType": "Token for Visa",
"lastFourDigits": "4242",
"expirationDate": "0328",
"token": "4242424242424242"
}Example 7: Create an extended SEPA payment method.
The following request uses a tested SEPA payment-method payload.
curl -X POST 'http://host:port/brm/paymentMethods/version/paymentMethod' -H 'Content-Type: application/json;charset=utf-8' -d @createSepaPaymentMethod.json
where:
- hostname is the URL for the REST server.
- port is the port for the REST server.
- version is the version of the API you're using, such as v1. For Payment Method API, v1 and v4 are supported. In BRM 16.26, v4 support is limited to payment methods with the following @type values: bankCard, cash, check, bankAccountDebit, and tokenizedCard.
-
The -d option specifies the sample request body file.
Example of Request Body
The following example shows the contents of the request body file.
{
"name": "Complete SEPA Payment",
"account": [
{
"id": "payment_account_euro"
}
],
"isPreferred": false,
"@type": "sepa",
"@baseType": "PaymentMethodOracle",
"BIC": "DEUTDEFF",
"bankAccountNumber": "DE89370400440532013000",
"city": "Frankfurt",
"country": "DE",
"mandateSignedDate": "2026-01-01T08:40:00Z",
"mandateType": "Recurring",
"creditorId": "DE98ZZZ09999999999",
"creditorName": "Oracle Deutschland",
"address": "Mainzer Landstrasse 1",
"zip": "60329"
}Example of Response Body
The following example shows the contents of the response body.
{
"id": "payment-sepa-complete-1",
"href": "http://host:port/brm/paymentMethods/v4/paymentMethod/payment-sepa-complete-1",
"name": "Complete SEPA Payment",
"account": [
{
"id": "payment_account_euro"
}
],
"isPreferred": false,
"@type": "sepa",
"@baseType": "PaymentMethodOracle",
"BIC": "DEUTDEFF",
"bankAccountNumber": "DE89370400440532013000",
"city": "Frankfurt",
"country": "DE",
"mandateSignedDate": "2026-01-01T08:40:00.00Z",
"mandateType": "Recurring",
"creditorId": "DE98ZZZ09999999999",
"creditorName": "Oracle Deutschland",
"address": "Mainzer Landstrasse 1",
"zip": "60329"
}