PURCHASE A Product
POST/v5/contract/:contractId/purchase
Use this method to trigger a payment of a product, defined by the product id. You need also pass the payment provider config you want to use (need to be valid for the contract of the product).
Depending on this you may need to send data as key values the payment provider needs. If they are not available, the API is rejecting your requet.
For the provider config for Stripe this is:
- stripeCustomerId or customerId: customer id in stripe, you get this information for your user on the user profile call GET /v5/user/profile
- paymentMethodId: you need to select this one via Stripe directly in your Frontend
Request
Responses
- 200
OK