Når et dokument er sendt, kan man få status på det pågældende dokument ved at lavet et GET kald til Sproom.net/api/documents/{documentID}/state
Det vvil resultere i et HTTPS svar som vil se ud som her:
"{
""dateTime"": ""2019-07-04T14:21:13.407Z"",
""state"": ""created"",
""statusCode"": 101,
""deliveryType"": null,
""message"": null
},"
Status på dokumentet skal findes i feltet "statusCode", og værdien repræsenteret kan du se herunder:
Created 101
EndpointNotFound 201
EndpointAdded 202
SendLimitExceeded 203
SendLimitIncreased 204
IncompletePackage 205
Timeout 206
ReceiveLimitExceeded 207
ReceiveLimitIncreased 208
Incomplete 221
IncompleteReturned 222
TransmissionStarted 301
Sent 302
Received 401
TransmissionCompleted 402
PendingApproval 403
Approved 404
Rejected 405
Error 901
ErrorMax 999
ErrorMin 10900000
OIOSchemaValidationError 10900001
SchematronValidationError 10900002
DuplicateFileError 10900004
SendNemHandelError 10900005
RuntimeError 10900006
SendItellaError 10900007
ErrorProcessingAttachments 10900009
CustomValidationError 10900010
Canceled 10900011
Deleted 10900012
TestModeError 10900013
SenderMismatchError 10900014
SendEvenexError 10900015
SendPageroError 10900016
SendBaswareError 10900017
SendInExChangeError 10900018
SendLetterError 10900019
SendStatOilError 10900020
DeliveryRestrictionError 10900021
SendIbisticError 10900022
SendError 10900023
SendEbuilderError 10900024
SendTietoError 10900030
SendSwedbankError 10900031
ApplicationReponseProfileReject 10900025
ApplicationReponseTechnicalReject 10900026
CustomerNotSubscribedToBilsim 10900027
CustomerNotSubscribedToUts 10900028
ApplicationReponseBusinessReject 10900029
Internal 10900099