Consent
Record consent (consumer)
Records the user's acceptance of the Payment Account terms.
The first acceptance wins: re-posting "accepted": true for a user who already consented leaves the original consent record — including its acceptance date — unchanged. Recording "accepted": false withdraws consent: the user’s third-party transactions are refused from then on.
ip defaults to the source IP of this API request. When calling from your backend — the normal integration pattern — pass the end user's IP explicitly, otherwise your server's IP is recorded on the consent record.
dateAccepted defaults to the server time of the call.
post/user/payment-account/consent
Request
- Base URLhttps://www.sandbox.striga.com/api/v1
- URLhttps://www.sandbox.striga.com/api/v1/user/payment-account/consent
- AuthAPI key in header api-key and API key in header Authorization
Request body
Example request
{
"userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"accepted": true,
"termsVersion": "2026-08-v1",
"termsUri": "https://yourapp.example/legal/payment-account-terms",
"dateAccepted": "2026-09-11T12:00:00.000Z",
"ip": "198.51.100.9"
}Response
Consent recorded. The response echoes the stored record.
Example response
{
"userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"paymentAccountConsent": {
"accepted": true,
"dateAccepted": "2026-09-11T12:00:00.000Z",
"ip": "198.51.100.9",
"termsUri": "https://yourapp.example/legal/payment-account-terms",
"termsVersion": "2026-08-v1"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.