AWS SQS Bucket Credits (v0.300.0)

NBS adapter sends updates of credits in a subscription bucket. This is received in the pal-cms-credits.fifo queue. The NBS adapter receives more information than just credits in the bucket. But this queue currently only handles credits.

Overview

In the CMS adapter, we handle the check of credits that remain for the subscriptions that has been created by the CMS system. The NBS system holds the status of the credits and sends them to Nbs Adapter, which does some processing before sending to CMS adapter via an SQS queue.

The queue could be used for other types of messages as well, but for the moment this queue only handles the credits. Other data might be handled via eventbridge events.

Payload example

Payload example
{
"Reference": {
"Id": "123e4567-e89b-12d3-a456-426614174000",
},
"Subscription": {
"Id": "67890567-e89b-12d3-a456-426614174000",
},
"CreditAmount": 546
}

JSON Schema

8 properties
Reference object
required
Subscription object
required
CreditAmount integer
required

Amount of credits. 1 SEK is equal to the value 100

Attributes object