| POST | /customers/{CustomerId}/wallet/topup |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CustomerId | path | string | Yes | The customer identifier |
| PaymentMethod | body | PaymentMethodType? | Yes | The payment method. CreditCard is currently not supportedAllowable Values
|
| PaymentDate | body | DateTime? | Yes | The payment date - Universal format |
| Amount | body | decimal | Yes | The amount to be added to customer's balance. It must be greater than 0 and less than top up limit |
| ChequeNumber | body | string | No | Cheque number |
| Reference | body | string | No | The payment reference |
| Cash |
| Cheque |
| MoneyOrder |
| CreditCard |
| PayPal |
| DirectDebit |
| Wallet |
| GooglePay |
| ApplePay |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| PaymentMethodName | form | string | No | |
| JournalBatchNumber | form | string | No | |
| LineNumber | form | int | No | |
| CreditAmount | form | decimal | No | |
| TransactionDate | form | DateTimeOffset | No | |
| TransactionText | form | string | No | |
| PaymentReference | form | string | No | |
| ResponseStatus | form | ResponseStatus | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /customers/{CustomerId}/wallet/topup HTTP/1.1
Host: azs-stg-lotteries-web.azurewebsites.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
customerId: String,
paymentMethod: Cash,
paymentDate: 0001-01-01,
amount: 0,
chequeNumber: String,
reference: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
paymentMethodName: String,
journalBatchNumber: String,
lineNumber: 0,
creditAmount: 0,
transactionDate: 0001-01-01T00:00:00.0000000+00:00,
transactionText: String,
paymentReference: String,
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}