The user needs to be logged in to use this endpoint, click here to read more.
Produces a list with Vipps recurring agreements. Only agreements marked as valid are returned.
OK
Array of objects |
Bad Request
Too Many Requests
Internal Server Error
{- "recurringAgreements": [
- {
- "agreementRef": "abcd-efgh",
- "paymentProviderId": 55,
- "productCode": "CO27409"
}
]
}
The user needs to be logged in to use this endpoint, click here to read more.
Use the id from the response to complete the adding the card by redirecting the customer to loginServer/payment/vipps/agreement/add?clientId=…&returnUrl=….&errorUrl=…..&transactionId=12378954
. The system will redirect the customer to the proper third-party system for the change, and upon success will then redirect to the given returnUrl
. If an system error occurs, the given errorUrl
will be used instead.
In addition to return url will be returned the result of operation:
errorUrl
.{- "productCode": "CO27409"
}
{- "success": true,
- "transactionId": 12378954
}
The user needs to be logged in to use this endpoint, click here to read more.
This API can be used for removing Vipps agreement.
{- "agreementRef": "abcd-efgh",
- "paymentProviderId": 25
}
{- "success": true
}