Download OpenAPI specification:Download
Add support for filtering settlements by
item_created_at.gte
anditem_created_at.lte
. The new filter enables getting list of settlement by when they was created, the existing support forcreated_at.gte
/created_at.lte
filters by when they was settled (settled_at
)
Add pagination to report configuration listing
new Add filter on
namespace
andcurrency
new Add filter on
payout_destination_id
new Add possibility to delete report configurations
new Add
destination_type: email
and support filter onpayout_destination_id
on settlement report configs
new Support filter user payout rules with
include_deleted
query parameter.
Payout Rules Add new endpoint for managing Payout rules.
Get the costs aggregated by periode
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
year required | integer Example: year=2019 filter result by year |
month required | integer [ 1 .. 12 ] Example: month=8 filter result by month |
limit | integer [ 1 .. 1000 ] Default: 100 A limit on the number of objects to be returned. Limit can range between 1 and 1000 items, and the default is 100 items. |
starting_after | string cursor for use in pagination. starting_after is an object ID
that defines your place in the list. For instance, if you make
a list request and receive 100 objects, end the result contains
|
type | string Example: type=checkout/capture filter result by cost type |
date | string <date> filter result by date, requires to be combined with type parameter |
[- {
- "id": "string",
- "start_at": "2019-08-24T14:15:22Z",
- "end_at": "2019-08-24T14:15:22Z",
- "total_count": 0,
- "total_amount": 0.1,
- "total_metric_value": 0,
- "currency": "NOK",
- "namespace": "checkout",
- "metric_name": "capture",
- "type": "checkout/capture",
- "dimensions": [
- {
- "name": "payment_product_type",
- "value": "vipps"
}
], - "plan": {
- "id": "string",
- "prices": [
- {
- "currency": "NOK",
- "type": "unit_amount",
- "amount": 0.0125,
- "up_to": 0
}
]
}
}
]
Get billing reports
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
limit | integer [ 1 .. 1000 ] Default: 100 A limit on the number of objects to be returned. Limit can range between 1 and 1000 items, and the default is 100 items. |
starting_after | string cursor for use in pagination. starting_after is an object ID
that defines your place in the list. For instance, if you make
a list request and receive 100 objects, end the result contains
|
{- "starting_after": "string",
- "reports": [
- {
- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "start_at": "2019-08-24T14:15:22Z",
- "end_at": "2019-08-24T14:15:22Z",
}
]
}
Get payout rules
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
limit | integer [ 1 .. 1000 ] Default: 100 A limit on the number of objects to be returned. Limit can range between 1 and 1000 items, and the default is 100 items. |
starting_after | string cursor for use in pagination. starting_after is an object ID
that defines your place in the list. For instance, if you make
a list request and receive 100 objects, end the result contains
|
rule_type | string Filter payment rules by rule_type |
rule_id | string Filter payment rules by rule_id. Must be used together
with |
include_deleted | boolean Default: false include deleted payout rules in the response |
{- "starting_after": "string",
- "payout_rules": [
- {
- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "deleted_at": "2019-08-24T14:15:22Z",
- "account_id": "string",
- "rule_type": "order.items.store.id",
- "rule_id": "sc029",
- "rule_version": 1,
- "destinations": [
- {
- "type": "percentage",
- "value": 10,
- "destinations": [
- {
- "type": "flat_amount",
- "value": "500",
- "destination": "account-a"
}, - {
- "type": "remaining_amount",
- "destinations": [
- {
- "type": "percentage",
- "value": "5.0",
- "destination": "account-b"
}
]
}
]
}, - {
- "type": "flat_amount",
- "value": "500",
- "destination": "account-a"
}, - {
- "type": "remaining_amount",
- "destinations": [
- {
- "type": "percentage",
- "value": "5",
- "destination": "account-b"
}, - {
- "type": "percentage",
- "value": "95.0",
- "destination": "account-c"
}
]
}
], - "metadata": { }
}
]
}
Create payout rules
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
rule_id required | string Unique ID given the rule type. |
rule_type required | string |
required | Array of objects (BillingPayoutRuleDestination) Destinations for the payout splits tree. The splitting is done in the order of the destinations.
|
metadata | object <= 10 properties Additional metadata about the payout rule |
{- "rule_type": "order.items.store.id",
- "rule_id": "sc029",
- "destinations": [
- {
- "type": "percentage",
- "value": 10,
- "destinations": [
- {
- "type": "flat_amount",
- "value": "500",
- "destination": "account-a"
}, - {
- "type": "remaining_amount",
- "destinations": [
- {
- "type": "percentage",
- "value": "5.0",
- "destination": "account-b"
}
]
}
]
}, - {
- "type": "flat_amount",
- "value": "500",
- "destination": "account-a"
}, - {
- "type": "remaining_amount",
- "destinations": [
- {
- "type": "percentage",
- "value": "5",
- "destination": "account-b"
}, - {
- "type": "percentage",
- "value": "95.0",
- "destination": "account-c"
}
]
}
], - "metadata": { }
}
{- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "deleted_at": "2019-08-24T14:15:22Z",
- "account_id": "string",
- "rule_type": "order.items.store.id",
- "rule_id": "sc029",
- "rule_version": 1,
- "destinations": [
- {
- "type": "percentage",
- "value": 10,
- "destinations": [
- {
- "type": "flat_amount",
- "value": "500",
- "destination": "account-a"
}, - {
- "type": "remaining_amount",
- "destinations": [
- {
- "type": "percentage",
- "value": "5.0",
- "destination": "account-b"
}
]
}
]
}, - {
- "type": "flat_amount",
- "value": "500",
- "destination": "account-a"
}, - {
- "type": "remaining_amount",
- "destinations": [
- {
- "type": "percentage",
- "value": "5",
- "destination": "account-b"
}, - {
- "type": "percentage",
- "value": "95.0",
- "destination": "account-c"
}
]
}
], - "metadata": { }
}
Update payout with new destinations
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
id required | string <uuid> payout rule id |
rule_id required | string Unique ID given the rule type. |
rule_type required | string |
required | Array of objects (BillingPayoutRuleDestination) Destinations for the payout splits tree. The splitting is done in the order of the destinations.
|
metadata | object <= 10 properties Additional metadata about the payout rule |
{- "rule_type": "order.items.store.id",
- "rule_id": "sc029",
- "destinations": [
- {
- "type": "percentage",
- "value": 10,
- "destinations": [
- {
- "type": "flat_amount",
- "value": "500",
- "destination": "account-a"
}, - {
- "type": "remaining_amount",
- "destinations": [
- {
- "type": "percentage",
- "value": "5.0",
- "destination": "account-b"
}
]
}
]
}, - {
- "type": "flat_amount",
- "value": "500",
- "destination": "account-a"
}, - {
- "type": "remaining_amount",
- "destinations": [
- {
- "type": "percentage",
- "value": "5",
- "destination": "account-b"
}, - {
- "type": "percentage",
- "value": "95.0",
- "destination": "account-c"
}
]
}
], - "metadata": { }
}
{- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "deleted_at": "2019-08-24T14:15:22Z",
- "account_id": "string",
- "rule_type": "order.items.store.id",
- "rule_id": "sc029",
- "rule_version": 1,
- "destinations": [
- {
- "type": "percentage",
- "value": 10,
- "destinations": [
- {
- "type": "flat_amount",
- "value": "500",
- "destination": "account-a"
}, - {
- "type": "remaining_amount",
- "destinations": [
- {
- "type": "percentage",
- "value": "5.0",
- "destination": "account-b"
}
]
}
]
}, - {
- "type": "flat_amount",
- "value": "500",
- "destination": "account-a"
}, - {
- "type": "remaining_amount",
- "destinations": [
- {
- "type": "percentage",
- "value": "5",
- "destination": "account-b"
}, - {
- "type": "percentage",
- "value": "95.0",
- "destination": "account-c"
}
]
}
], - "metadata": { }
}
Remove payout rule
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
id required | string <uuid> payout rule id |
{- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "deleted_at": "2019-08-24T14:15:22Z",
- "account_id": "string",
- "rule_type": "order.items.store.id",
- "rule_id": "sc029",
- "rule_version": 1,
- "destinations": [
- {
- "type": "percentage",
- "value": 10,
- "destinations": [
- {
- "type": "flat_amount",
- "value": "500",
- "destination": "account-a"
}, - {
- "type": "remaining_amount",
- "destinations": [
- {
- "type": "percentage",
- "value": "5.0",
- "destination": "account-b"
}
]
}
]
}, - {
- "type": "flat_amount",
- "value": "500",
- "destination": "account-a"
}, - {
- "type": "remaining_amount",
- "destinations": [
- {
- "type": "percentage",
- "value": "5",
- "destination": "account-b"
}, - {
- "type": "percentage",
- "value": "95.0",
- "destination": "account-c"
}
]
}
], - "metadata": { }
}
Get subscriptions
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
namespace | string Filter subscriptions by namespace |
currency | string <iso-4217> Example: currency=NOK Filter subscriptions by prices currency |
limit | integer [ 1 .. 1000 ] Default: 100 A limit on the number of objects to be returned. Limit can range between 1 and 1000 items, and the default is 100 items. |
starting_after | string cursor for use in pagination. starting_after is an object ID
that defines your place in the list. For instance, if you make
a list request and receive 100 objects, end the result contains
|
[- {
- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "description": "checkout/capture",
- "namespace": "checkout",
- "metric_name": "capture",
- "dimensions": [
- {
- "name": "payment_product_type",
- "value": "vipps"
}
], - "prices": [
- {
- "currency": "NOK",
- "type": "unit_amount",
- "amount": 0.0125,
- "up_to": 0
}
]
}
]
List settlements
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
limit | integer [ 1 .. 1000 ] Default: 10 A limit on the number of objects to be returned. Limit can range between 1 and 1000 items, and the default is 10 items. |
starting_after_id | string cursor for use in pagination. starting_after_id is an object ID
that defines your place in the list, included in the For instance, if you make a list request and receive 100 objects,
ending with
Must be used together with |
starting_after_date | string cursor for use in pagination.
starting_after_date is the Must be used together with |
created_at.gte | string <date> Settlement created after, the |
created_at.lte | string <date> Settlement created before a date, the |
item_created_at.gte | string <date> Filter by Settlement |
item_created_at.lte | string <date> Filter by Settlement |
payment_provider | Array of strings The payment provider |
payout_destination_id | string The seller id to filter on |
search | string Will try to match the search to settlement_id. |
{- "items": [
- {
- "id": "string",
- "start_at": "string",
- "end_at": "string",
- "created_at": "string",
- "updated_at": "string",
- "settled_at": "string",
- "email_received_at": "string",
- "provider": "string",
- "provider_reference": "string",
- "attachments": [
- {
- "id": "string",
- "key": "string",
- "content_type": "application/xml",
- "extension": "string",
- "created_by": "payex"
}
], - "amounts": [
- {
- "amount": 0,
- "capture": 0,
- "refund": 0,
- "fee": 0,
- "currency": "NOK"
}
], - "payment_status": "paid",
- "store_id": "string",
- "payout_destination_id": "string"
}
], - "last_evaluated_key": {
- "id": "string",
- "account_id": "string",
- "settled_at": "string",
- "created_at": "string"
}
}
Download a settlement attachment
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
settlementid required | string An id that uniquely identifies the settlement. |
attachmentid required | string An id that uniquely identifies the attachment. |
"string"
List settlement report configurations
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
starting_after | string cursor for use in pagination |
limit | integer [ 1 .. 1000 ] Default: 100 A limit on the number of objects to be returned. Limit can range between 1 and 1000 items, and the default is 100 items. |
{- "items": [
- {
- "send_every": 86400000,
- "filetypes": [
- "string"
], - "destinations": [
- {
- "id": "string",
- "destination_type": "account_email",
- "destination_value": "string"
}
], - "providers": [
- "string"
], - "filters": [
- {
- "filter": "payout_destination_id",
- "value": "string"
}
], - "id": "string",
- "last_send_at": 0,
- "last_modified_at": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "account_id": "string"
}
], - "starting_after": "string"
}
Create settlement report configurations
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
filetypes required | Array of strings The filetypes that should be sent |
required | Array of objects List of destinations. If empty, the report is just stored and visible from the backoffice. |
providers required | Array of strings List of providers to send report for. If empty, send for all. |
send_every | number Deprecated report configuration is not used for controlling when to create and send report Value in milliseconds describing how often reports should be sent. |
Array of objects The report will only be sent to the provided destinations if it satisfies these criterias. | |
id | string |
{- "send_every": 86400000,
- "filetypes": [
- "string"
], - "destinations": [
- {
- "id": "string",
- "destination_type": "account_email",
- "destination_value": "string"
}
], - "providers": [
- "string"
], - "filters": [
- {
- "filter": "payout_destination_id",
- "value": "string"
}
], - "id": "string"
}
{- "send_every": 86400000,
- "filetypes": [
- "string"
], - "destinations": [
- {
- "id": "string",
- "destination_type": "account_email",
- "destination_value": "string"
}
], - "providers": [
- "string"
], - "filters": [
- {
- "filter": "payout_destination_id",
- "value": "string"
}
], - "id": "string",
- "last_send_at": 0,
- "last_modified_at": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "account_id": "string"
}
Get settlement report configuration
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
id required | string <uuid> report config id |
{- "send_every": 86400000,
- "filetypes": [
- "string"
], - "destinations": [
- {
- "id": "string",
- "destination_type": "account_email",
- "destination_value": "string"
}
], - "providers": [
- "string"
], - "filters": [
- {
- "filter": "payout_destination_id",
- "value": "string"
}
], - "id": "string",
- "last_send_at": 0,
- "last_modified_at": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "account_id": "string"
}
Update settlement report configuration
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
id required | string <uuid> report config id |
filetypes required | Array of strings The filetypes that should be sent |
required | Array of objects List of destinations. If empty, the report is just stored and visible from the backoffice. |
providers required | Array of strings List of providers to send report for. If empty, send for all. |
send_every | number Deprecated report configuration is not used for controlling when to create and send report Value in milliseconds describing how often reports should be sent. |
Array of objects The report will only be sent to the provided destinations if it satisfies these criterias. |
{- "send_every": 86400000,
- "filetypes": [
- "string"
], - "destinations": [
- {
- "id": "string",
- "destination_type": "account_email",
- "destination_value": "string"
}
], - "providers": [
- "string"
], - "filters": [
- {
- "filter": "payout_destination_id",
- "value": "string"
}
]
}
{- "send_every": 86400000,
- "filetypes": [
- "string"
], - "destinations": [
- {
- "id": "string",
- "destination_type": "account_email",
- "destination_value": "string"
}
], - "providers": [
- "string"
], - "filters": [
- {
- "filter": "payout_destination_id",
- "value": "string"
}
], - "id": "string",
- "last_send_at": 0,
- "last_modified_at": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "account_id": "string"
}
Delete settlement report configuration
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
id required | string <uuid> report config id |
{- "send_every": 86400000,
- "filetypes": [
- "string"
], - "destinations": [
- {
- "id": "string",
- "destination_type": "account_email",
- "destination_value": "string"
}
], - "providers": [
- "string"
], - "filters": [
- {
- "filter": "payout_destination_id",
- "value": "string"
}
], - "id": "string",
- "last_send_at": 0,
- "last_modified_at": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "account_id": "string"
}