От версии 3.2
отредактировано David Persson
на 2019/12/04 10:04
К версии 3.3
отредактировано David Persson
на 2019/12/04 10:15
Комментарий к изменению: К данной версии нет комментариев

Summary

Details

Page properties
Content
... ... @@ -135,7 +135,7 @@
135 135  
136 136  == Bills ==
137 137  
138 -list bills
138 +==== List bills ====
139 139  
140 140  {{code language="http" title="**Request**"}}
141 141  GET /ledger/credit-account/v1/XXX/accounts/123/bills HTTP/1.1
... ... @@ -159,7 +159,9 @@
159 159  }
160 160  {{/code}}
161 161  
162 +==== Bill resource ====
162 162  
164 +
163 163  {{code language="http" title="**Request**"}}
164 164  GET /ledger/credit-account/v1/XXX/accounts/123/bills/456 HTTP/1.1
165 165  Host: -
... ... @@ -168,7 +168,6 @@
168 168  
169 169  {{/code}}
170 170  
171 -bills
172 172  
173 173  {{code language="http" title="**Response**"}}
174 174  HTTP/1.1 200 OK
... ... @@ -197,29 +197,28 @@
197 197  }
198 198  {{/code}}
199 199  
200 -== Cancellations ==
201 +== direct-debit ==
201 201  
202 -The reservation must be cancelled if the seller aborts the process (for any reason) after a successful call to ##authorizations## has been made.
203 -This is done by sending a request to the ##cancellation## URL that was provided in the response of the actual authorization call.
204 204  
205 -An already captured authorization cannot be cancelled.
206 -
207 -[[image:InvoicePurchase external - Cancel.svg||height="443" width="844"]]
208 -
209 -To cancel an authorization (with authorizationId 123 in the example below), we need to perform a post request as below
210 -
211 211  {{code language="http" title="**Request**"}}
212 -POST /ledger/invoice-purchase/v1/XXX/authorizations/123/cancellations HTTP/1.1
205 +POST /ledger/credit-account/v1/XXX/accounts/123/direct-debit HTTP/1.1
213 213  Host: -
214 214  Authorization: Bearer <Token>
215 215  Content-Type: application/json
216 216  {{/code}}
217 217  
218 -If the cancellation succeeds, it should respond with http status 200
219 219  
220 220  {{code language="http" title="**Response**"}}
221 -HTTP/1.1 201 Created
213 +HTTP/1.1 200 OK
222 222  Content-Type: application/json
215 +
216 +{
217 + "@id" : "/ledger/credit-account/v1/501/accounts/123456/direct-debit",
218 + "directDebitType" : "fixedRecurring | totalDebt | billedAmount | onDemand",
219 + "fixedRecurringAmount" : 1500.00,
220 + "parentHREF": "/ledger/credit-account/v1/501/accounts/123456"
221 +}
222 +
223 223  {{/code}}
224 224  
225 225  == Credits ==

Tips

You can click on the arrows next to the breadcrumb elements to quickly navigate to sibling and children pages.

Need help?

If you need help with XWiki you can contact: