Register pending products (skip existing)
POST/v1/providers/:providerSlug/products
Register product codes as pending configuration, skipping the ones that are already registered. This is the idempotent counterpart of createProviderProduct: you can resend the same batch safely.
The differences:
createProviderProduct | createPendingProducts | |
|---|---|---|
| Provider | from the access token | providerSlug in the path (must match the token) |
| Code already registered | 422, nothing stored | skipped silently, the rest is stored |
| Agreement / service pre-configuration | yes | no: only code and name |
| Success | 200 | 201 |
A code counts as registered in any state, including codes RCM registered on its own when a charge arrived with an unknown product. Configuration still happens in the RCM portal; see Products.
The response does not say which codes were created and which were skipped. To check, read getPendingConfigurationProducts filtering by product_codes.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 422
- 500
Created - new codes stored, already-registered codes skipped. Empty body.
Bad Request
Unauthorized
Forbidden - your client is not enabled for product registration. Product endpoints are not granted by default to integration clients; ask OSIGU to enable them for your client_id.
Not Found - providerSlug is not the provider of your access token, or the provider is disabled.
Validation error - missing products, or a code/name that is blank or too long (128 / 1024 characters).
Internal Server Error