Skip to content

SBC11 - List seller billing cycles

Request

Description

This resource uses seek pagination. The maximum allowed value for parameter limit is 1000.

Call Frequency
Maximum usage: Once per day and as many times as there are billing cycle pages returned
Pagination

This resource supports seek pagination (see documentation)

Sort fields

sort field can have the following values:

  • dateCreated (Default) - Sort by creation date (asc by default)

Security
Front-Bearer-Token or OAuth-2
Query
currencyArray of strings

Currency for filtering. This parameter can be supplied multiple times.

Items Enum:"AED""ARS""AUD""BAM""BGN""BHD""BRL""CAD""CHF""CLP"
end_datestring, (date-time)

Creation date used as the maximum value for filtering (inclusive)

idArray of strings, <= 100 items

Seller billing cycle IDs for filtering. This parameter can be supplied multiple times.

pay_out_psp_codeArray of strings

A comma-separated list of pay-out PSP codes for filtering. This parameter requires the Hybrid pay-out PSP feature to be enabled.

Items Enum:"NOT_SPECIFIED""MANGOPAY""MIRAKL_PAYOUT""OPERATOR"
pay_out_stateArray of strings

Pay-out state for filtering. This parameter can be supplied multiple times.

Default:["TO_PAY","FAILED","PAID"]
payment_voucher_numberArray of strings

Payment voucher numbers for filtering. This parameter can be supplied multiple times.

shop_idArray of integers, (int64)

Shop ID for filtering. This parameter can be supplied multiple times. Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.

start_datestring, (date-time)

Creation date used as the minimum value for filtering (inclusive)

curl -i -X GET \
  'https://your-instance.mirakl.net/api/seller-billing-cycles?currency=AED&end_date=2019-08-24T14%3A15%3A22Z&id=stringstringstringstringstringstring&pay_out_psp_code=NOT_SPECIFIED&pay_out_state=TO_PAY%2CFAILED%2CPAID&payment_voucher_number=string&shop_id=0&start_date=2019-08-24T14%3A15%3A22Z' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

Bodyapplication/json
dataArray of objectsrequired

Page of data

next_page_tokenstring

Token to access the next page. Absent if the current page is the last one.

previous_page_tokenstring

Token to access the previous page. Absent if the current page is the first one.

Response
{ "data": [ { … }, { … }, { … } ] }