Passer au contenu

Get an email batch

Requête

Retrieves the full state of a batch, including its configured email template and processing progress.

Sécurité
basicAuth
Chemin
BatchIdstring, (uuid)obligatoire
curl -i -X GET \
  -u '<username>:<password>' \
  'https://api.evicertia.com/v2/EviMail/Batches/{BatchId}'

Réponses

Batch retrieved.

Corpsapplication/json
Idstring, (uuid)
Statestring
Enum:"Draft""Submitted""Scheduled""Processing""Processed""Invalid""Failed"
Submitterstring
SubmitterIdstring
SiteNamestring
SiteIdstring, (uuid)
Descriptionstring
CreationDatestring, (date-time)
ScheduledForstring, (date-time)

Scheduled execution date and time in UTC.

StartedOnstring, (date-time)
ProcessedOnstring, (date-time)
SubmittedOnstring, (date-time)
InvalidOnstring, (date-time)
LastUpdatedstring, (date-time)
TotalCountinteger
EviMailobject(EviMailBatchTemplate)

The email template configured for the batch (the per-email settings applied to every recipient).

BatchPushNotificationUrlstring, (uri)
SentCountinteger
FailedCountinteger
ProgressPercentagenumber, (float)
ExtraFieldsArray of strings
InvalidReasonstring
CsvIdstring, (uuid)
Outcomestring
Réponse
{ "Id": "38a5a5bb-dc30-49a2-b175-1de0d1488c43", "State": "Draft", "Submitter": "string", "SubmitterId": "string", "SiteName": "string", "SiteId": "2ee62ea7-ea8b-4a01-be17-6f02722940c2", "Description": "string", "CreationDate": "2019-08-24T14:15:22Z", "ScheduledFor": "2019-08-24T14:15:22Z", "StartedOn": "2019-08-24T14:15:22Z", "ProcessedOn": "2019-08-24T14:15:22Z", "SubmittedOn": "2019-08-24T14:15:22Z", "InvalidOn": "2019-08-24T14:15:22Z", "LastUpdated": "2019-08-24T14:15:22Z", "TotalCount": 0, "EviMail": { "Subject": "string", "Body": "string", "IssuerName": "string", "CostCentre": "string", "From": "string", "DisableSenderHeader": true, "ReplyTo": "string", "TimeToLive": 0, "CertificationLevel": "Standard", "LtaStorage": true, "AffidavitKinds": [ … ], "Language": "string", "AffidavitLanguage": "string", "OnlineRetentionPeriod": 0, "PushNotificationUrl": "http://example.com", "PushNotificationFilter": [ … ], "PushNotificationExtraData": "string", "CommitmentOptions": "Disabled", "CommitmentCommentsAllowed": true, "RejectReasons": [ … ], "AcceptReasons": [ … ], "RequireRejectReason": true, "RequireAcceptReason": true, "DeliveryAppearance": "Certified", "OwnerNotificationTemplate": "string" }, "BatchPushNotificationUrl": "http://example.com", "SentCount": 0, "FailedCount": 0, "ProgressPercentage": 0.1, "ExtraFields": [ "string" ], "InvalidReason": "string", "CsvId": "5b047477-7a4a-4e84-8bbf-e1f64f3318c7", "Outcome": "string" }