Get Payments
get
/payment
Gets the payments that match the specified query criteria.
Request
Query Parameters
-
@type: string
The type of object to return.Example:
Use @type=Payment for a base object, or @type=PaymentOracle for an extended object. -
account.id: string
Retrieves the payments from the account with the specified ID.Example:
account.id=0.0.0.1+-account+79731 -
fields: string
The comma-separated list of fields to return in the response.Example:
fields=paymentDate,account -
id: string
Retrieves the payment with the specified ID.Example:
id=0.0.0.1+-item-payment+106589 -
limit: integer
The maximum number of results to return.Example:
Use limit=10 to return the first 10 results only. -
offset: integer
The number of results to offset the response by.Example:
Use offset=10 to return results 10 and higher. -
paymentDate: string
Retrieves the payments with a paymentDate that matches the specified dateTime.Example:
paymentDate=2020-01-01T04:00:27-08:00 -
paymentDate.gt: string
Retrieves the payments with a paymentDate that is greater than the specified dateTime.Example:
paymentDate.gt=2020-01-01T04:00:27-08:00 -
paymentDate.gte: string
Retrieves the payments with a paymentDate that is greater than or equal to the specified dateTime.Example:
paymentDate.gte=2020-01-01T04:00:27-08:00 -
paymentDate.lt: string
Retrieves the payments with a paymentDate that is less than the specified dateTime.Example:
paymentDate.lt=2020-01-01T04:00:27-08:00 -
paymentDate.lte: string
Retrieves the payments with a paymentDate that is less than or equal to the specified dateTime.Example:
paymentDate.lte=2020-01-01T04:00:27-08:00 -
status: string
Retrieves the payments with the specified status.Example:
The only valid value is status=Unallocated. -
totalAmount.value: number(float)
Retrieves the payments with a totalAmount that is equal to the specified amount.Example:
totalAmount.value=40 -
totalAmount.value.gt: number(float)
Retrieves the payments with a totalAmount that is greater than the specified amount.Example:
totalAmount.value.gt=40 -
totalAmount.value.gte: number(float)
Retrieves the payments with a totalAmount that is greater than or equal to the specified amount.Example:
totalAmount.value.gte=40 -
totalAmount.value.lt: number(float)
Retrieves the payments with a totalAmount that is less than the specified amount.Example:
totalAmount.value.lt=40 -
totalAmount.value.lte: number(float)
Retrieves the payments with a totalAmount that is less than or equal to the specified amount.Example:
totalAmount.value.lte=40
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json;charset=utf-8
200 Response
Success
Headers
-
X-Result-Count:
The number of items returned in the response body.
-
X-Total-Count:
The total number of items that matched the criteria.
Root Schema : schema
Type:
Show Source
array-
Array of:
object Payment
Title:
PaymentA payment, including information about the payment, the payment amount, and the payment method.
Nested Schema : Payment
Type:
objectTitle:
PaymentA payment, including information about the payment, the payment amount, and the payment method.
Show Source
-
@baseType: string
Title:
Base TypeThe object's superclass. -
@schemaLocation: string
(uri)
Title:
Schema LocationA URI to a JSON-Schema file that defines additional attributes and relationships. -
@type: string
Title:
TypeThe object's subclass. -
account(required): object
Account Ref
Title:
Account RefAn account's reference. -
amount: object
Money
Title:
MoneyAn amount of money. -
authorizationCode: string
Title:
Authorization codeAn authorization code from an external payment gateway. -
channel: object
Channel Ref
Title:
Channel RefA reference to a channel. -
correlatorId: string
Title:
correlator IDAn payment correlation ID from a client application. -
description: string
Title:
Payment DescriptionThe payment's description. -
href(required): string
Title:
Payment HrefThe payment's href. -
id(required): string
Title:
Payment IDThe payment's ID. -
name: string
Title:
Payment NameThe payment's name. -
payer: object
Related Party
Title:
Related PartyA party related to another object. -
paymentDate(required): string
(date-time)
Title:
Payment DateThe date the payment was made. -
paymentItem: array
paymentItem
Payment items which can be assigned to bills.
-
paymentMethod(required): object
Payment Method Ref Or Value
Title:
Payment Method Ref Or ValueA link to the resource containing information about the payment method. -
status(required): string
Title:
Payment StatusThe payment's status. -
statusDate: string
(date-time)
Title:
Status DateThe date the payment's status was recorded. -
taxAmount: object
Money
Title:
MoneyAn amount of money. -
totalAmount(required): object
Money
Title:
MoneyAn amount of money.
Nested Schema : Account Ref
Type:
objectTitle:
Account RefAn account's reference.
Show Source
-
@baseType: string
Title:
Base TypeThe object's superclass. -
@referredType: string
Title:
Referred TypeThe object's type in the target system, if baseType and type need further disambiguation. -
@schemaLocation: string
(uri)
Title:
Schema LocationA URI to a JSON schema file that defines additional attributes and relationships. -
@type: string
Title:
TypeThe object's subclass. -
description: string
Title:
Account DescriptionThe account's description. -
href: string
Title:
Account HrefThe account's href. -
id(required): string
Title:
Account IDThe account's ID. -
name: string
Title:
Account NameThe account's name.
Nested Schema : Money
Type:
objectTitle:
MoneyAn amount of money.
Show Source
-
unit: string
Title:
CurrencyAn ISO 4217 three letter currency code. -
value: number
(float)
Title:
AmountA positive floating point number.
Nested Schema : Channel Ref
Type:
objectTitle:
Channel RefA reference to a channel.
Show Source
-
@baseType: string
Title:
Base TypeThe object's superclass. -
@referredType: string
Title:
Referred TypeThe object's type in the target system, if baseType and type need further disambiguation. -
@schemaLocation: string
(uri)
Title:
Schema LocationA URI to a JSON-Schema file that defines additional attributes and relationships. -
@type: string
Title:
TypeThe object's subclass. -
href: string
Title:
Channel HrefThe channel's href. -
id(required): string
Title:
Channel IDThe channel's ID. -
name: string
Title:
Channel NameThe channel's name.
Nested Schema : Related Party
Type:
objectTitle:
Related PartyA party related to another object.
Show Source
-
@baseType: string
Title:
Base TypeThe object's superclass. -
@referredType(required): string
Title:
Referred TypeThe object's type in the target system, if baseType and type need further disambiguation. -
@schemaLocation: string
(uri)
Title:
Schema LocationA URI to a JSON schema file that defines additional attributes and relationships. -
@type: string
Title:
TypeThe object's subclass. -
href: string
Title:
Related Party HrefThe related party's href. -
id(required): string
Title:
Related Party IDThe related party's ID. -
name(required): string
Title:
Related Party NameThe related party's name. -
role: string
Title:
Related Party RoleThe related party's role.
Nested Schema : paymentItem
Type:
arrayPayment items which can be assigned to bills.
Show Source
-
Array of:
object Payment Item
Title:
Payment ItemA portion of a payment that can be assigned to a bill.
Nested Schema : Payment Method Ref Or Value
Type:
objectTitle:
Payment Method Ref Or ValueA link to the resource containing information about the payment method.
Show Source
-
@baseType: string
Title:
Base TypeThe object's superclass. -
@referredType: string
Title:
Referred TypeThe payment method's type, further refined from the @type value. To create a payment when @type is PaymentMethodRef, this is required, and valid values are tokenizedCard, bankAccountDebit, and bankCard. -
@schemaLocation: string
(uri)
Title:
Schema LocationA URI to a JSON-Schema file that defines additional attributes and relationships. -
@type(required): string
Title:
TypeThe payment method's type. Valid values are PaymentMethodRef for a credit or debit card, Cash, or Check. When the value is PaymentMethodRef, the payment method specified must be the one assigned to the bill unit. If you specify a different payment method, the one assigned to the bill unit will be used instead. -
account: array
account
Accounts associated with the payment method.
-
description: string
Title:
Payment Method DescriptionThe payment method's description. -
href: string
Title:
Payment Method HrefThe payment method's href. -
id(required): string
Title:
Payment Method IDThe payment method's ID. -
isPreferred: boolean
Title:
Payment Method PreferredWhether this is the preferred payment method (true) or not (false). -
name: string
Title:
Payment Method NameThe payment method's name. - relatedParty: object Related Party
-
status: string
Title:
StatusThe payment method's status. -
statusDate: string
(date-time)
Title:
Status DateThe date the payment method's status was recorded. -
validFor: object
Time Period
Title:
Time PeriodA period of time. You can specify only endDateTime or both endDateTime and startDateTime.
Nested Schema : Payment Item
Type:
objectTitle:
Payment ItemA portion of a payment that can be assigned to a bill.
Show Source
-
@baseType: string
Title:
Base TypeThe object's superclass. -
@schemaLocation: string
(uri)
Title:
Schema LocationA URI to a JSON-Schema file that defines additional attributes and relationships. -
@type: string
Title:
TypeThe object's subclass. -
amount: object
Money
Title:
MoneyAn amount of money. -
id: string
Title:
Payment Item IDThe payment item's ID. -
item(required): object
Entity Ref
Title:
Entity RefAn entity reference schema. -
taxAmount: object
Money
Title:
MoneyAn amount of money. -
totalAmount: object
Money
Title:
MoneyAn amount of money.
Nested Schema : Entity Ref
Type:
objectTitle:
Entity RefAn entity reference schema.
Show Source
-
@baseType: string
Title:
Base TypeThe object's superclass. -
@referredType: string
Title:
Referred TypeThe object's type in the target system, if baseType and type need further disambiguation. -
@schemaLocation: string
(uri)
Title:
Schema LocationA URI to a JSON schema file that defines additional attributes and relationships. -
@type: string
Title:
TypeThe object's subclass. -
href: string
Title:
Entity HrefThe entity's href. -
id(required): string
Title:
Entity IDThe entity's ID. -
name: string
Title:
Entity NameThe entity's name.
Nested Schema : account
Type:
arrayAccounts associated with the payment method.
Show Source
-
Array of:
object Account Ref
Title:
Account RefAn account's reference.
Nested Schema : Time Period
Type:
objectTitle:
Time PeriodA period of time. You can specify only endDateTime or both endDateTime and startDateTime.
Show Source
-
endDateTime: string
(date-time)
Title:
End Time PeriodThe end of the time period in IETC-RFC-3339 format. -
startDateTime: string
(date-time)
Title:
Start Time PeriodThe start of the time period in IETC-RFC-3339 format. If you specify this, you must also specify endDateTime.
400 Response
Bad Request
Root Schema : Error
Type:
objectTitle:
ErrorUsed when an API returns an error, typically with a HTTP error response-code such as 401 (Unauthorized) or 500 (Internal Server Error).
Show Source
-
@baseType: string
Title:
Base TypeThe object's superclass. -
@schemaLocation: string
(uri)
Title:
Schema LocationA URI to a JSON schema file that defines additional attributes and relationships. -
@type: string
Title:
TypeThe object's subclass. -
code(required): string
Title:
Error CodeAn application's error code, defined in the API or a common list. -
message: string
Title:
Error MessageMore details and corrective actions related to the error. -
reason(required): string
Title:
ReasonThe reason for the error. -
referenceError: string
(uri)
Title:
Reference ErrorA URI to documentation describing the error. -
status: string
Title:
Error StatusThe HTTP Error code extension
401 Response
Unauthorized
Root Schema : Error
Type:
objectTitle:
ErrorUsed when an API returns an error, typically with a HTTP error response-code such as 401 (Unauthorized) or 500 (Internal Server Error).
Show Source
-
@baseType: string
Title:
Base TypeThe object's superclass. -
@schemaLocation: string
(uri)
Title:
Schema LocationA URI to a JSON schema file that defines additional attributes and relationships. -
@type: string
Title:
TypeThe object's subclass. -
code(required): string
Title:
Error CodeAn application's error code, defined in the API or a common list. -
message: string
Title:
Error MessageMore details and corrective actions related to the error. -
reason(required): string
Title:
ReasonThe reason for the error. -
referenceError: string
(uri)
Title:
Reference ErrorA URI to documentation describing the error. -
status: string
Title:
Error StatusThe HTTP Error code extension
403 Response
Forbidden
Root Schema : Error
Type:
objectTitle:
ErrorUsed when an API returns an error, typically with a HTTP error response-code such as 401 (Unauthorized) or 500 (Internal Server Error).
Show Source
-
@baseType: string
Title:
Base TypeThe object's superclass. -
@schemaLocation: string
(uri)
Title:
Schema LocationA URI to a JSON schema file that defines additional attributes and relationships. -
@type: string
Title:
TypeThe object's subclass. -
code(required): string
Title:
Error CodeAn application's error code, defined in the API or a common list. -
message: string
Title:
Error MessageMore details and corrective actions related to the error. -
reason(required): string
Title:
ReasonThe reason for the error. -
referenceError: string
(uri)
Title:
Reference ErrorA URI to documentation describing the error. -
status: string
Title:
Error StatusThe HTTP Error code extension
404 Response
Not Found
Root Schema : Error
Type:
objectTitle:
ErrorUsed when an API returns an error, typically with a HTTP error response-code such as 401 (Unauthorized) or 500 (Internal Server Error).
Show Source
-
@baseType: string
Title:
Base TypeThe object's superclass. -
@schemaLocation: string
(uri)
Title:
Schema LocationA URI to a JSON schema file that defines additional attributes and relationships. -
@type: string
Title:
TypeThe object's subclass. -
code(required): string
Title:
Error CodeAn application's error code, defined in the API or a common list. -
message: string
Title:
Error MessageMore details and corrective actions related to the error. -
reason(required): string
Title:
ReasonThe reason for the error. -
referenceError: string
(uri)
Title:
Reference ErrorA URI to documentation describing the error. -
status: string
Title:
Error StatusThe HTTP Error code extension
405 Response
Method Not allowed
Root Schema : Error
Type:
objectTitle:
ErrorUsed when an API returns an error, typically with a HTTP error response-code such as 401 (Unauthorized) or 500 (Internal Server Error).
Show Source
-
@baseType: string
Title:
Base TypeThe object's superclass. -
@schemaLocation: string
(uri)
Title:
Schema LocationA URI to a JSON schema file that defines additional attributes and relationships. -
@type: string
Title:
TypeThe object's subclass. -
code(required): string
Title:
Error CodeAn application's error code, defined in the API or a common list. -
message: string
Title:
Error MessageMore details and corrective actions related to the error. -
reason(required): string
Title:
ReasonThe reason for the error. -
referenceError: string
(uri)
Title:
Reference ErrorA URI to documentation describing the error. -
status: string
Title:
Error StatusThe HTTP Error code extension
409 Response
Conflict
Root Schema : Error
Type:
objectTitle:
ErrorUsed when an API returns an error, typically with a HTTP error response-code such as 401 (Unauthorized) or 500 (Internal Server Error).
Show Source
-
@baseType: string
Title:
Base TypeThe object's superclass. -
@schemaLocation: string
(uri)
Title:
Schema LocationA URI to a JSON schema file that defines additional attributes and relationships. -
@type: string
Title:
TypeThe object's subclass. -
code(required): string
Title:
Error CodeAn application's error code, defined in the API or a common list. -
message: string
Title:
Error MessageMore details and corrective actions related to the error. -
reason(required): string
Title:
ReasonThe reason for the error. -
referenceError: string
(uri)
Title:
Reference ErrorA URI to documentation describing the error. -
status: string
Title:
Error StatusThe HTTP Error code extension
500 Response
Internal Server Error
Root Schema : Error
Type:
objectTitle:
ErrorUsed when an API returns an error, typically with a HTTP error response-code such as 401 (Unauthorized) or 500 (Internal Server Error).
Show Source
-
@baseType: string
Title:
Base TypeThe object's superclass. -
@schemaLocation: string
(uri)
Title:
Schema LocationA URI to a JSON schema file that defines additional attributes and relationships. -
@type: string
Title:
TypeThe object's subclass. -
code(required): string
Title:
Error CodeAn application's error code, defined in the API or a common list. -
message: string
Title:
Error MessageMore details and corrective actions related to the error. -
reason(required): string
Title:
ReasonThe reason for the error. -
referenceError: string
(uri)
Title:
Reference ErrorA URI to documentation describing the error. -
status: string
Title:
Error StatusThe HTTP Error code extension
Examples
The following example shows how to get payments by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.
The request uses the account.id query parameter to limit the results.
curl -X GET 'http://host:port/brm/payment/version/payment?account.id=0.0.0.1+-account+228862'
Example of the Response Body
The following example shows the contents of the response body in JSON format.
[
{
"id": "0.0.0.1+-item-payment+222690",
"href": "http://host:port/brm/payment/version/payment/0.0.0.1+-item-payment+222690",
"authorizationCode": "pinXXX",
"correlatorId": "P1-8",
"description": "Credit Card Payment",
"name": "Billing Event Log",
"paymentDate": "2025-01-08T07:38:46-08:00",
"status": "Allocated",
"statusDate": "2025-01-08T07:38:46-08:00",
"account": {
"id": "0.0.0.1+-account+228862",
"href": null,
"description": null,
"name": "Danielle Rao",
"@baseType": null,
"@schemaLocation": null,
"@type": null,
"@referredType": "billingAccount"
},
"amount": null,
"channel": {
"id": "0",
"href": null,
"name": "Unspecified",
"@baseType": null,
"@schemaLocation": null,
"@type": null,
"@referredType": null
},
"payer": null,
"paymentItem": null,
"paymentMethod": {
"id": null,
"href": null,
"description": null,
"isPreferred": null,
"name": "Credit Card",
"status": null,
"statusDate": null,
"account": null,
"relatedParty": null,
"validFor": null,
"@baseType": "PaymentMethodRefOrValue",
"@schemaLocation": null,
"@type": "PaymentMethodRefOrValue",
"@referredType": null
},
"taxAmount": null,
"totalAmount": {
"unit": "USD",
"value": 50.0
},
"@baseType": "Payment",
"@schemaLocation": null,
"@type": "Payment"
},
{
"id": "0.0.0.1+-item-payment+221042",
"href": "http://host:port/brm/payment/version/payment/0.0.0.1+-item-payment+221042",
"authorizationCode": null,
"correlatorId": "P1-7",
"description": "",
"name": "Billing Event Log",
"paymentDate": "2025-01-08T07:33:05-08:00",
"status": "Allocated",
"statusDate": "2025-01-08T07:33:05-08:00",
"account": {
"id": "0.0.0.1+-account+228862",
"href": null,
"description": null,
"name": "Danielle Rao",
"@baseType": null,
"@schemaLocation": null,
"@type": null,
"@referredType": "billingAccount"
},
"amount": null,
"channel": {
"id": "0",
"href": null,
"name": "Unspecified",
"@baseType": null,
"@schemaLocation": null,
"@type": null,
"@referredType": null
},
"payer": null,
"paymentItem": [
{
"id": "0.0.0.1+-bill+226434",
"amount": null,
"item": {
"id": "B1-31",
"href": "http://host:port/brm/customerBillManagement/version/customerBill/0.0.0.1+-bill+226434",
"name": null,
"@baseType": "CustomerBill",
"@schemaLocation": null,
"@type": "CustomerBill",
"@referredType": null
},
"taxAmount": null,
"totalAmount": {
"unit": "USD",
"value": 55.0
},
"@baseType": "PaymentItem",
"@schemaLocation": null,
"@type": "PaymentItem"
}
],
"paymentMethod": {
"id": null,
"href": null,
"description": null,
"isPreferred": null,
"name": "Cash",
"status": null,
"statusDate": null,
"account": null,
"relatedParty": null,
"validFor": null,
"@baseType": "PaymentMethodRefOrValue",
"@schemaLocation": null,
"@type": "Cash",
"@referredType": null
},
"taxAmount": null,
"totalAmount": {
"unit": "USD",
"value": 200.0
},
"@baseType": "Payment",
"@schemaLocation": null,
"@type": "Payment"
}
]