Create a Payment Allocation for a Bill

post

/paymentAllocation

Allocates a payment to the specified bill.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : Payment Allocation Request Ref Oracle
Type: object
Title: Payment Allocation Request Ref Oracle
A payment allocation request.
Show Source
Nested Schema : bill
Type: array
The bill to which the payment is allocated.
Show Source
Nested Schema : BillWise Payment Allocation Req Oracle
Type: object
Title: BillWise Payment Allocation Req Oracle
Bill information for a payment allocation request.
Show Source
Nested Schema : Money
Type: object
Title: Money
An amount of money.
Show Source
Back to Top

Response

Supported Media Types

201 Response

Payment allocation created successfully.

400 Response

Bad Request
Body ()
Root Schema : Error
Type: object
Title: Error
Used when an API returns an error, typically with a HTTP error response-code such as 401 (Unauthorized) or 500 (Internal Server Error).
Show Source

401 Response

Unauthorized
Body ()
Root Schema : Error
Type: object
Title: Error
Used when an API returns an error, typically with a HTTP error response-code such as 401 (Unauthorized) or 500 (Internal Server Error).
Show Source

403 Response

Forbidden
Body ()
Root Schema : Error
Type: object
Title: Error
Used when an API returns an error, typically with a HTTP error response-code such as 401 (Unauthorized) or 500 (Internal Server Error).
Show Source

405 Response

Method Not allowed
Body ()
Root Schema : Error
Type: object
Title: Error
Used when an API returns an error, typically with a HTTP error response-code such as 401 (Unauthorized) or 500 (Internal Server Error).
Show Source

409 Response

Conflict
Body ()
Root Schema : Error
Type: object
Title: Error
Used when an API returns an error, typically with a HTTP error response-code such as 401 (Unauthorized) or 500 (Internal Server Error).
Show Source

500 Response

Internal Server Error
Body ()
Root Schema : Error
Type: object
Title: Error
Used when an API returns an error, typically with a HTTP error response-code such as 401 (Unauthorized) or 500 (Internal Server Error).
Show Source
Back to Top

Examples

The following example shows how to create an allocation for an existing payment by submitting a POST request on the REST resource using cURL. For more information about cURL, see Use cURL.

The -d option specifies the file to attach as the request body.

curl -X POST 'http://host:port/brm/payment/version/paymentAllocation' -d @allocationCreate.json

The following is an example of the contents of the allocationCreate.json file sent as the request body.

{
  "paymentId": "0.0.0.1+-item-payment+91630",
  "bill": [
      {
        "id": "0.0.0.1+-bill+62437",
        "allocatedAmount": {
            "value": "50",
            "unit": "USD"
         }
      }
   ]
}

When the allocation is created successfully, the only response is a 201 status code.

Back to Top