Get a Payment Method by ID

get

/paymentMethod/{paymentMethodId}

Gets the specified payment method.

Request

Path Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

The payment method was returned successfully.
Body ()
Root Schema : PaymentMethodType
Type: object
A payment method.
Show Source
Nested Schema : account
Type: array
An account that owns or can use the payment method.
Show Source
Nested Schema : details
Type: object
The payment method's details, which differ based on the '@type' property.
Nested Schema : relatedParty
Type: array
The related party that owns the payment method.
Show Source
Nested Schema : TimePeriodType
Type: object
A period of time.
Show Source
Nested Schema : AccountRefType
Type: object
An account reference.
Show Source
Nested Schema : RelatedPartyRefType
Type: object
A related party.
Show Source

400 Response

Invalid Token

401 Response

Unauthorized

403 Response

Forbidden

404 Response

Not Found

405 Response

Method not Allowed

500 Response

Internal Server Error
Back to Top

Examples

The following example shows how to get the payment method with the 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/paymentMethods/version/paymentMethod/0.0.0.1+-payinfo-dd+240947'

Example of the Response Body

The following example shows the contents of the response body in JSON format.

{
    "id": "0.0.0.1+-payinfo-dd+240947",
    "href": "http://host:port/brm/paymentMethods/version/paymentMethod/0.0.0.1+-payinfo-dd+240947",
    "name": "Mary Robbin's Direct Debit Account",
    "description": null,
    "validFor": null,
    "account": [
        {
            "id": "0.0.0.1+-account+244543",
            "href": null,
            "description": "Mary's primary account",
            "name": "Mary Robbins",
            "@baseType": null,
            "@schemaLocation": null,
            "@type": null,
            "@referredType": null
        }
    ],
    "preferred": true,
    "relatedParty": null,
    "@type": "bankAccountDebit",
    "authorizationCode": null,
    "status": null,
    "statusDate": null,
    "details": {
        "accountNumber": "12341234123412341",
        "accountNumberType": "Savings",
        "BIC": "111122334",
        "owner": "Mary Robbins",
        "bank": "My Bank"
    }
}
Back to Top