Pricing API
This API is used for policy pricing, creation and resolution.
Successful operation
0x79D1cA16Cf39367f9d7A66974ee2627f458570290x79D1cA16Cf39367f9d7A66974ee2627f458570296dynamic-pricingSuccessful operation
Unsigned
{"internal_id":"ac3b3fe475","arrival":"2022-10-12T14:36:07.00Z","channel":"website","departure":"2022-10-12T11:36:07.00Z"}2022-10-27T21:36:07.211025Z190.25Successful operation
Quote unique identifier, used across Ensuro's APIs
c06bec3e-6984-49d8-a866-b27e0cbf1f4dHash that uniquely identifies this policy
0x0a39ddc02112fd46bdd9be79f4e13f558aaf9ce02467e4b6ea7ee8a896f89008Loss probability for the policy, 0 < loss_prob < 1
0.105The premium that must be sent to the contract. If null send MAX_UINT256
19.9[optional] Pricing bucket id, only if the riskmodule is a SignedBucketRiskModule
Bucket1Quote expiration as seconds since epoch
1665447869Invalid input
EIP-191 signature of the body digest (SHA256 of the body, without leading '0x'). The signature must be made by an authorized signer. Signature format: r+s+v in hexadecimal. Example: "0xc9a9d2e9ebf6a9930705c4517ff7ae6aa91a4799df8f87189488e1f1396080c76cbeb698c047af21ee94d2c5bb89f72a56fb70ac58f1c2b7245e9d2b400c243f1b"
This is the preferred signing method. Only one of X-EIP191-Signature or X-Ensuro-Signature must be provided.
0x[0-9a-f]{130}HMAC-SHA256 signature of the body, using the shared secret provided. The signature must be in hexadecimal, without including the leading "0x", for example: "41deed7140512b0d351a588d05bff44dfdc58a6a038b47edf4f5e944dd1185d6" will be the signature for body '{"foo":"bar"}' and secret 'topsecret'.
This method is not recommended, use X-EIP191-Signature whenever possible. Only one of X-EIP191-Signature or X-Ensuro-Signature must be provided.
[0-9a-f]{64}{"internal_id":"ac3b3fe475","arrival":"2022-10-12T14:36:07.00Z","channel":"website","departure":"2022-10-12T11:36:07.00Z"}2022-10-27T21:36:07.211025Z190.25Successful operation
Quote unique identifier, used across Ensuro's APIs
c06bec3e-6984-49d8-a866-b27e0cbf1f4dHash that uniquely identifies this policy
0x0a39ddc02112fd46bdd9be79f4e13f558aaf9ce02467e4b6ea7ee8a896f89008Loss probability for the policy, 0 < loss_prob < 1
0.105The premium that must be sent to the contract. If null send MAX_UINT256
19.9[optional] Pricing bucket id, only if the riskmodule is a SignedBucketRiskModule
Bucket1Quote expiration as seconds since epoch
1665447869Invalid input
EIP-191 signature of the body digest (SHA256 of the body, without leading '0x'). The signature must be made by an authorized signer. Signature format: r+s+v in hexadecimal. Example: "0xc9a9d2e9ebf6a9930705c4517ff7ae6aa91a4799df8f87189488e1f1396080c76cbeb698c047af21ee94d2c5bb89f72a56fb70ac58f1c2b7245e9d2b400c243f1b"
This is the preferred signing method. Only one of X-EIP191-Signature or X-Ensuro-Signature must be provided.
0x[0-9a-f]{130}HMAC-SHA256 signature of the body, using the shared secret provided. The signature must be in hexadecimal, without including the leading "0x", for example: "41deed7140512b0d351a588d05bff44dfdc58a6a038b47edf4f5e944dd1185d6" will be the signature for body '{"foo":"bar"}' and secret 'topsecret'.
This method is not recommended, use X-EIP191-Signature whenever possible. Only one of X-EIP191-Signature or X-Ensuro-Signature must be provided.
[0-9a-f]{64}55290711940124341656440444382658655728151858290209621141129482339851750871896105.25Successful operation
QUEUEDInvalid input
EIP-191 signature of the body digest (SHA256 of the body, without leading '0x'). The signature must be made by an authorized signer. Signature format: r+s+v in hexadecimal. Example: "0xc9a9d2e9ebf6a9930705c4517ff7ae6aa91a4799df8f87189488e1f1396080c76cbeb698c047af21ee94d2c5bb89f72a56fb70ac58f1c2b7245e9d2b400c243f1b"
This is the preferred signing method. Only one of X-EIP191-Signature or X-Ensuro-Signature must be provided.
0x[0-9a-f]{130}HMAC-SHA256 signature of the body, using the shared secret provided. The signature must be in hexadecimal, without including the leading "0x", for example: "41deed7140512b0d351a588d05bff44dfdc58a6a038b47edf4f5e944dd1185d6" will be the signature for body '{"foo":"bar"}' and secret 'topsecret'.
This method is not recommended, use X-EIP191-Signature whenever possible. Only one of X-EIP191-Signature or X-Ensuro-Signature must be provided.
[0-9a-f]{64}Successful operation
Quote unique identifier, used across Ensuro's APIs
c06bec3e-6984-49d8-a866-b27e0cbf1f4dHash that uniquely identifies this policy
0x0a39ddc02112fd46bdd9be79f4e13f558aaf9ce02467e4b6ea7ee8a896f89008Loss probability for the policy, 0 < loss_prob < 1
0.105The premium that must be sent to the contract. If null send MAX_UINT256
19.9[optional] Pricing bucket id, only if the riskmodule is a SignedBucketRiskModule
Bucket1Quote expiration as seconds since epoch
1665447869Invalid input
Signatures
Last updated