Create a Customer Deposit Payment
post
/bcws/webresources/v1.0/depositManagement/depositPayment
Creates a customer deposit payment.
Request
There are no request parameters for this operation.
Supported Media Types
- */*
The deposit payment. The minimum required parameters are:
- customerRef
- customerDepositRef
- paymentAmount
- paymentRef
Root Schema : schema
Type:
Show Source
object
-
customerDepositRef(required): string
The customer deposit reference.
-
customerRef(required): string
The customer reference.
-
notes(required): string
Notes about the deposit payment.
-
payments: array
payments
Nested Schema : DepositPayment
Type:
Show Source
object
-
completedAt: string
The deposit payment completion date.
-
createdAt: string
The date when the deposit payment is created.
-
currency: integer
(int32)
The code for the payment's currency.
-
customerDepositRef: string
The customer deposit reference.
-
customerRef: string
The customer reference.
-
glCode: string
The general ledger ID.
-
href: string
The unique resource URL, used to get the object.
-
id: string
The deposit payment ID.
-
notes: string
Notes about the deposit payment.
-
payinfoTypeObject: object
Discriminator: @class
Discriminator:
{ "propertyName":"@class" }
-
paymentAmount: object
Money
-
paymentMethodType: integer
(int32)
The payment method type. Allowed Values:
- 10003 (Credit card)
- 10005 (Direct debit)
- 10011 (Cash)
- 10012 (Check)
- 10013 (Wire Transfer)
- 10014 (Inter-bank payment order)
- 10015 (Postal order)
- 3 (Prepayment)
- 4 (Other)
-
paymentRef: string
The payment reference.
-
status: integer
(int32)
The deposit payment status. Allowed Values: 1 (Completed), 2 (Failed), 3 (Pending).
Nested Schema : Discriminator: @class
Type:
Show Source
object
-
accountObj: object
ResourceRef
-
creationDate: string
(date-time)
The date and time the payment type was created.
-
extension: object
extension
The extended attributes.
-
id: object
ResourceRef
-
name: string
The name of the payment type.
-
paymentType: integer
(int32)
The payment type.
Nested Schema : Money
Type:
Show Source
object
-
amount(required): number
The amount of money.
-
currency: integer
(int32)
The currency for the money.
Nested Schema : ResourceRef
Type:
Show Source
object
-
id(required): string
The ID.
-
uri: string
The Uniform Resource Identifier (URI) associated with the resource.
Nested Schema : extension
Type:
object
The extended attributes.
Response
201 Response
The deposit payment order was created successfully, and the ID of the new deposit payment was returned.
500 Response
An error occurred. An exception has been raised.
Examples
This example shows how to create a payment for a deposit 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/depositManagement/depositPayment' -H 'content-type: application/json' -d @depositPayment.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.
- depositPayment.json is the JSON file that specifies the deposit payment to create.
Example of Request Body
This example shows the contents of the depositPayment.json file sent as the request body.
{
"customerRef": "0.0.0.1+-account+2243823",
"customerDepositRef": "0.0.0.1+-purchased_deposit+2519408",
"notes":"abc",
"payments": [
{
"paymentMethodType": "PREPAYMENT",
"paymentRef": "0.0.0.1+-item-payment+2519378",
"status": "COMPLETED",
"paymentAmount": {
"amount": 200,
"currency": "EUR"
}
},
{
"paymentMethodType": "PREPAYMENT",
"paymentRef": "0.0.0.1+-item-payment+2521840",
"status": "COMPLETED",
"paymentAmount": {
"amount": 1300,
"currency": "EUR"
}
},
{
"paymentMethodType": "CASH",
"paymentRef": "R-1-2112",
"status": "PENDING",
"paymentAmount": {
"amount": 1000,
"currency": "EUR"
}
}
]
}
Example of Response Body
This example shows the contents of the response body in JSON format.
{
"id": "0.0.0.1+-purchased_deposit+2519408",
"href": "http://hostname:port/bcws/webresources/version/depositManagement/depositPayment/0.0.0.1+-purchased_deposit+2519408"
}