Create a Payment

post

/bcws/webresources/v1.0/payments

Creates a payment for the bill units specified in the body.

Request

Query Parameters
  • Whether to save the payment method information:
    • true specifies to save the payment method information.
    • false specifies to make the payment without saving the payment method.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : Notes
Type: object
Show Source
Nested Schema : Discriminator: @class
Type: object
Show Source
Nested Schema : comments
Type: array
The list of comments associated with the note.
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Nested Schema : Comments
Type: object
The list of comments associated with the note.
Show Source
Nested Schema : ResourceRef
Type: object
Show Source
Nested Schema : extension
Type: object
The extended attributes.
Back to Top

Response

200 Response

The payment was created successfully.

500 Response

An internal server error occurred.
Back to Top

Examples

This example shows how to create a payment by submitting a POST request on the REST resource using cURL. For more information about cURL, see "Use cURL".

cURL Command

curl -X POST 'http://hostname:port/bcws/webresources/version/payments?savePaymentType=false' -H 'content-type: application/json' -d @paymentCreate.json

where:

  • hostname is the URL for the Billing Care REST server.
  • port is the port for the Billing Care REST server.
  • version is the version of the API you're using, such as v1.0.
  • paymentCreate.json is the JSON file that specifies the payment to create.

Example of Request Body

This example shows the contents of the paymentCreate.json file sent as the request body.

{
   "payinfoTypeObject": {
      "wireTransferInfo": [
         {
            "effectiveDate": "2021-01-28T13:07:34.000Z",
            "wireTransferId": "wireTransfer",
            "bankCode": "bankCode",
            "bankAccountNo": "accountNumber"
         }
      ],
      "@class": "com.oracle.communications.brm.cc.model.Externalpayment10013",
      "accountObj": {
         "id": "0.0.0.1+-account+81329"
      },
      "paymentType": 10013,
      "externalType": true,
      "id": {
         "id": "0.0.0.1+-payinfo+068934"
      }
   },
   "selectedBillUnit": "0.0.0.1+-billinfo+78769",
   "itemPaymentRef": "0.0.0.1+-account+81329",
   "amount": 1,
   "currency": 840,
   "notes": {
      "amount": 1,
      "domainId": 5,
      "accountId": "0.0.0.1+-account+81329",
      "billUnitId": "0.0.0.1+-billinfo+78769",
      "reasonId": "12",
      "status": 101,
      "comments": [
         {
            "comment": "Customer will call bank to check on status."
         }
      ]
   }
}

Example of Response Body

If successful, the response code 200 is returned with no response body.

Back to Top