Register provider products
POST/v1/providers/products
Register one or more of your product codes (the provider_product_code your HIS sends on each charge) in RCM, before the charges that use them arrive. This is the endpoint built for HIS-to-RCM integration.
The provider is taken from your access token: there is no providerSlug in the path.
A registered product is pending configuration, not configured. RCM stores its code and name, plus the agreement_codes and service_codes you send as a pre-configuration: the agreements and services the product applies to, which pre-fill the configuration screen. Which support documents each payer requires for the product is set afterwards in the RCM portal. Until that happens, charges with this code are still accepted, but their account moves to ERROR. See Products.
agreement_codes and service_codes — send both arrays on every product, [] when you have nothing to declare. Omitting either one currently fails with 500 instead of a validation error. ALL or TODOS (also TODOS LOS CONVENIOS / TODOS LOS SERVICIOS) expands to every enabled agreement / every service of the provider. A code that does not belong to the provider rejects the request with 422.
All or nothing. If any code is already registered for the provider, in any state, the whole request is rejected with 422 and nothing is stored. That includes codes RCM registered on its own when a charge arrived with an unknown product. The rejected codes are listed in errors[].values. To register a batch that may overlap with existing codes, use createPendingProducts, which skips them instead. Send each code at most once per request.
Success returns 200 with an empty body.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500
OK - every product was registered as pending configuration. 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 - the provider of your access token does not exist or is disabled.
Validation error - missing code/name, an agreement or service code that does not belong to the provider, or a product code that is already registered (errors[].values lists them).
Internal Server Error