Get a Payment by ID

get

/payment/{id}

Gets the specified payment.

Request

Path Parameters
Query Parameters
  • The type of object to return.
    Example:
    Use @type=Payment for a base object, or @type=PaymentOracle for an extended object.
  • The comma-separated list of fields to return in the response.
    Example:
    fields=name,paymentItem

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Success
Body ()
Root Schema : Payment
Type: object
Title: Payment
A payment, including information about the payment, the payment amount, and the payment method.
Show Source
Nested Schema : Account Ref
Type: object
Title: Account Ref
A reference to an account.
Show Source
Nested Schema : Money
Type: object
A base / value business entity used to represent money.
Show Source
Nested Schema : Channel Ref
Type: object
Title: Channel Ref
A reference to a channel.
Show Source
Nested Schema : Related Party
Type: object
Title: Related Party
A party related to another object.
Show Source
Nested Schema : paymentItem
Type: array
Payment items which can be assigned to bills.
Show Source
Nested Schema : Payment Method Ref Or Value
Type: object
Title: Payment Method Ref Or Value
A link to the resource containing information about the payment method.
Show Source
Nested Schema : Payment Item
Type: object
Title: Payment Item
A portion of a payment that can be assigned to a bill.
Show Source
Nested Schema : Entity Ref
Type: object
Title: Entity Ref
An entity reference schema.
Show Source
Nested Schema : account
Type: array
Accounts associated with the payment method.
Show Source
Nested Schema : TimePeriod
Type: object
A period of time.
Show Source

400 Response

Bad Request
Body ()
Root Schema : Error
Type: object
This is used when an API throws an error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

401 Response

Unauthorized
Body ()
Root Schema : Error
Type: object
This is used when an API throws an error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

403 Response

Forbidden
Body ()
Root Schema : Error
Type: object
This is used when an API throws an error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

404 Response

Not Found
Body ()
Root Schema : Error
Type: object
This is used when an API throws an error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

405 Response

Method Not allowed
Body ()
Root Schema : Error
Type: object
This is used when an API throws an error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

409 Response

Conflict
Body ()
Root Schema : Error
Type: object
This is used when an API throws an error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source

500 Response

Internal Server Error
Body ()
Root Schema : Error
Type: object
This is used when an API throws an error, typically with a HTTP error response-code (3xx, 4xx, 5xx).
Show Source
Back to Top

Examples

The following example shows how to get a payment with a specified ID by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL.

curl -X GET 'http://host:port/brm/payment/version/payment/0.0.0.1+-item-payment+84530'

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+84530",
    "href": "http://host:port/brm/payment/version/payment/0.0.0.1+-item-payment+84530",
    "authorizationCode": null,
    "correlatorId": "P1-1",
    "description": "",
    "name": "Billing Event Log",
    "paymentDate": "2020-05-01T12:01:23-07:00",
    "status": "Unallocated",
    "statusDate": "2020-05-01T12:01:23-07:00",
    "account": {
        "id": "0.0.0.1+-account+103533",
        "href": null,
        "description": null,
        "name": "Sunny Awal",
        "@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": "Cash",
        "status": null,
        "statusDate": null,
        "account": null,
        "relatedParty": null,
        "validFor": null,
        "@baseType": "PaymentMethodRefOrValue",
        "@schemaLocation": null,
        "@type": "Cash",
        "@referredType": null,
        "details": {
            "receiptNo": "",
            "receiptDate": "2020-07-13T08:53:10-07:00"
        }
    },
    "taxAmount": null,
    "totalAmount": {
        "unit": "USD",
        "value": 10.0
    },
    "@baseType": "Payment",
    "@schemaLocation": null,
    "@type": "Payment"
}
Back to Top