riverty logo

Docs

Get Prepayments

Get details related to prepayment transactions on the subscription.

Path

GET /v1/clients/{clientId}/subscriptions/{subscriptionId}/prepayment

Request Parameters

clientId
required
integer
Your assigned `ClientId`.
subscriptionId
required
string
Id of the subscription to retrieve.

Responses

Successful Request

Request Example

    
        null
    

Response Example

    
        {
 "id": "subscription-id-1",
 "productId": "subscription-product-id-1",
 "periods": [
  {
   "grossAmount": 180,
   "start": "2024-01-22",
   "end": "2024-01-31",
   "type": "PARTIAL"
  },
  {
   "grossAmount": 620,
   "start": "2024-02-01",
   "end": "2024-02-29",
   "type": "FULL"
  }
 ]
}