@@ -64,13 +64,11 @@ curl -X POST http://api-test.cleartreasury.co.uk/api/payments \
6464
6565### Response
6666
67- <!-- TODO: Add response data -->
68-
6967| Name | Description | Type |
7068| ----------- | ------------------------------------- | ------ |
7169| PaymentGuid | The GUID you specified in the request | string |
7270
73- ## List all payments
71+ <!-- ## List all payments
7472
7573Retrieve a list of all payment you have access to.
7674
@@ -93,7 +91,8 @@ curl -X GET http://api-test.cleartreasury.co.uk/api/payments \
9391 "amount": "200.00",
9492 "trade_ref": "<trade reference>",
9593 "payment_guid": "<your GUID>",
96- "client_ref" : " <client reference>"
94+ "client_ref": "<client reference>",
95+ "status": "Pending"
9796 },
9897 {
9998 "beneficiary_id": "1",
@@ -103,7 +102,8 @@ curl -X GET http://api-test.cleartreasury.co.uk/api/payments \
103102 "amount": "100.00",
104103 "trade_ref": "<trade reference>",
105104 "payment_guid": "<your GUID>",
106- "client_ref" : " <client reference>"
105+ "client_ref": "<client reference>",
106+ "status": "Paid"
107107 }
108108]
109109```
@@ -126,8 +126,9 @@ curl -X GET http://api-test.cleartreasury.co.uk/api/payments \
126126| trade_ref | Trade reference | string |
127127| payment_guid | Payment GUID | string |
128128| client_ref | Client reference | string |
129+ | status | Payment status | string | -->
129130
130- <!-- ## Get a payment
131+ ## Get a payment
131132
132133Get payment instruction by ID
133134
@@ -142,73 +143,41 @@ curl -X GET http://api-test.cleartreasury.co.uk/api/payments/{id}?client_ref={{c
142143
143144``` json
144145{
145- "Intermediary": "string",
146- "AccountName": "string",
147- "AccountNumber": "string",
148- "Address": "string",
149- "BankName": "string",
150- "CCY": "string",
151- "Notes": "string",
152- "SortCode": "string",
153- "Swift": "string",
154- "CountryCode": "string",
155- "Email": "string",
156- "BenAddress": "string",
157- "CNAPS": "string",
158- "Purpose": "string",
159- "ChargeCode": "string",
160- "Amount": 0,
161- "PaymentReference": "string",
162- "TradeReference": "string",
163- "tra_client_id": 0,
164- "pin_id": 0,
165- "PaymentGUID": "00000000-0000-0000-0000-000000000000",
166- "opi_id": 0,
167- "CreationDate": "2019-10-17T11:27:23.691Z",
168- "Status": "string",
169- "exportedDate": "2019-10-17T11:27:23.691Z"
146+ "beneficiary_id" : " 2" ,
147+ "currency" : " GBP" ,
148+ "purpose" : " Making an investment" ,
149+ "fee" : " SHA" ,
150+ "amount" : " 200.00" ,
151+ "trade_ref" : " <trade reference>" ,
152+ "payment_guid" : " <your GUID>" ,
153+ "client_ref" : " <client reference>" ,
154+ "status" : " Pending"
170155}
171156```
172157
173158### Request
174159
175- `GET /payments/{id}client_ref={{client_ref} }`
160+ ` GET /payments/{payment_guid } `
176161
177- | Name | Description | Required | Type |
178- | ---------- | ------------------------------------------------------------ | -------- | ------ |
179- | id | payment GUID | yes | string |
180- | client_ref | Client reference you're instructing the payment on behalf of | yes | string |
162+ | Name | Description | Required | Type |
163+ | ------------ | ------------------------ | -------- | ------ |
164+ | payment_guid | Unique ID of the payment | yes | string |
181165
182166### Response
183167
184- | Name | Description | Type |
185- | ---------------- | ----------- | ------- |
186- | Intermediary | | string |
187- | AccountName | | string |
188- | AccountNumber | | string |
189- | Address | | string |
190- | BankName | | string |
191- | CCY | | string |
192- | Notes | | string |
193- | SortCode | | string |
194- | Swift | | string |
195- | CountryCode | | string |
196- | Email | | string |
197- | BenAddress | | string |
198- | CNAPS | | string |
199- | Purpose | | string |
200- | ChargeCode | | string |
201- | Amount | | decimal |
202- | PaymentReference | | string |
203- | TradeReference | | string |
204- | tra_client_id | | integer |
205- | pin_id | | integer |
206- | PaymentGUID | | string |
207- | opi_id | | integer |
208- | CreationDate | | date |
209- | Status | | string |
210- | exportedDate | | date |
168+ | Name | Description | Type |
169+ | -------------- | ---------------- | ------ |
170+ | beneficiary_id | Beneficiary ID | string |
171+ | currency | Currency | string |
172+ | purpose | Purpose | string |
173+ | fee | Fee | string |
174+ | amount | Amount | string |
175+ | trade_ref | Trade reference | string |
176+ | payment_guid | Payment GUID | string |
177+ | client_ref | Client reference | string |
178+ | status | Payment status | string |
211179
180+ <!--
212181## List payments by date
213182
214183Retrieve payment instruction list inclusive of from and to dates.
0 commit comments