/statements/<statement_id>
Allows statements to be resent to end users via email.
Requests
The request body at this endpoint is the statements JSON object.
email_id
Production: Optional. Statements will only be sent to the email address that is currently on file.
Sandbox: Required. Statements can be sent to any email address in this field.
Authorization / Authentication
Apps using Access Token Authorization
Use a valid access token in an Authorization: Bearer request header.
See Authenticating with an Access Token for more details.
Apps using ECDSA Authentication
The auth signature header is required for this request. The user signature header is optional if you would like to get delivery attempts for all users. If you choose to omit the user signature header, you'll also need to omit the user_handle from the Header object.
See the section on ECDSA Authentication for more detail about ECDSA signature generation.
Note - We recently renamed the field auth_handle to app_handle. For backward compatibility, auth_handle is still valid but has been removed from our documentation.
PUT /0.2/statement/<statement_id> HTTP/1.1
Host: sandbox.silamoney.com
Content-Type: application/json
// if using OAuth2
Authorization: Bearer [GENERATED JWT TOKEN HERE]
// if using ECDSA
authsignature: [GENERATED AUTHSIGNATURE HEX STRING HERE]
usersignature: [GENERATED USERSIGNATURE HEX STRING HERE]
{
"header": {
"created": 1234567890,
"app_handle": "handle.silamoney.eth",
"user_handle":"user.silamoney.eth",
"version": "0.2",
"reference": "<your unique id>"
},
"email_id": "Email"
}
Key | Type | Description |
---|---|---|
header | JSON object | Required Requires these keys in JSON format: created, app_handle. user_handle is optional. See the /check_handle endpoint for the complete list of fields in this object. |
String | Optional in Production. Required for Sandbox. Email of the user. |
Response
HTTP/1.1 200 OK
{
"message": "Statement resend request successful.",
"success": true,
"status": "SUCCESS",
"response_time_ms": "171",
"reference": "<your unique id>"
}
Status Code | Success Attribute | Description |
---|---|---|
200 | true | Statement resend request successful. |
400 | false | No statement was found with id : |
400 | false | Statements are disabled for this account. |
400 | false | No email found for end user. |
403 | false | Bad/Absent signature header. |
500 | false | Server-side issue; please reach out to Sila support. |
Updated 3 months ago