Skip to main content

Enumerations

BRAccountLinkingError

Error codes returned by account linking operations.

typedef NS_ENUM(NSUInteger, BRAccountLinkingError) { ... };
enum BRAccountLinkingError : UInt

SDK Version: 3.2.0

Cases

ValueObjective-C NameSwift NameDescription
0BRAccountLinkingErrorNonenoneNo error
1BRAccountLinkingErrorNoAccountsLinkednoAccountsLinkedAn attempt was made to grab orders for all merchants or for a specific merchant, but no merchant accounts had been linked
2BRAccountLinkingErrorAccountLinkedAlreadyaccountLinkedAlreadyAn attempt was made to link a merchant, but the same had been linked already
3BRAccountLinkingErrorVerificationNeededverificationNeededLogin encountered a scenario requiring manual user intervention (CAPTCHA, 2FA, etc)
4BRAccountLinkingErrorVerificationCompletedverificationCompletedThe user successfully completed the authentication manually
5BRAccountLinkingErrorVerificationCancelledverificationCancelledThe user cancelled the manual authentication
6BRAccountLinkingErrorNoCredentialsnoCredentialsAn attempt was made to grab orders from Amazon (legacy parser) but no Amazon credentials were found
7BRAccountLinkingErrorInternalinternalAn unexpected error occurred during login or parsing
8BRAccountLinkingErrorParsingFailparsingFailThe structure of the merchant's website or data feed was unexpected
9BRAccountLinkingErrorInvalidCredentialsinvalidCredentialsLogin failed on the merchant's site due to invalid credentials
10BRAccountLinkingErrorRetailerNotFoundretailerNotFoundAn attempt was made to grab orders for a particular merchant but no linked account for that merchant was found
11BRAccountLinkingErrorInvalidKeyinvalidKeyInvalid license or prodIntel key. Contact blinkreceipt@microblink.com to validate your key(s).
12BRAccountLinkingErrorCancelledcancelledThe operation was cancelled
13BRAccountLinkingErrorFeatureNotAvailablefeatureNotAvailableThe feature is not available on your device
14BRAccountLinkingErrorAuthenticationFailauthenticationFailLogin failed on the merchant's site
15BRAccountLinkingErrorWebViewClosedwebViewClosedAuthentication failed due to WebView being terminated by user
16BRAccountLinkingErrorUnsupportedRetailerunsupportedRetailerThis retailer is not currently supported
17BRAccountLinkingErrorSystemTerminatedsystemTerminatedThe operating system terminated the operation due to not enough time for the app to run in background

BRAccountLinkingRetailer

Identifiers for supported retail merchants used in account linking.

typedef NS_ENUM(NSUInteger, BRAccountLinkingRetailer) { ... };
enum BRAccountLinkingRetailer : UInt

SDK Version: 3.2.0

Cases

ValueName
1BRAccountLinkingRetailerTarget
2BRAccountLinkingRetailerCostco
3BRAccountLinkingRetailerCVS
4BRAccountLinkingRetailerDollarGeneral
5BRAccountLinkingRetailerDollarTree
6BRAccountLinkingRetailerKroger
7BRAccountLinkingRetailerPublix
8BRAccountLinkingRetailerSafeway
9BRAccountLinkingRetailerSamsClub
10BRAccountLinkingRetailerWalgreens
11BRAccountLinkingRetailerWalmart
15BRAccountLinkingRetailerHomeDepot
16BRAccountLinkingRetailerLowes
17BRAccountLinkingRetailerAcmeMarkets
19BRAccountLinkingRetailerMeijer
20BRAccountLinkingRetailerAlbertsons
22BRAccountLinkingRetailerShoprite
23BRAccountLinkingRetailerJewelOsco
31BRAccountLinkingRetailerFood4Less
33BRAccountLinkingRetailerHarrisTeeter
40BRAccountLinkingRetailerRalphs
45BRAccountLinkingRetailerBJs
52BRAccountLinkingRetailerWegmans
53BRAccountLinkingRetailerFredMeyer
54BRAccountLinkingRetailerSprouts
63BRAccountLinkingRetailerVons
171BRAccountLinkingRetailerSephora
177BRAccountLinkingRetailerBestBuy
5718BRAccountLinkingRetailerCostcoCA
5849BRAccountLinkingRetailerWalmartCA
6036BRAccountLinkingRetailerAsdaUK
6048BRAccountLinkingRetailerSainsburyUK
6051BRAccountLinkingRetailerTescoUK
6059BRAccountLinkingRetailerCarrefourES
6162BRAccountLinkingRetailerDicksSportingGoods
6457BRAccountLinkingRetailerGap
6677BRAccountLinkingRetailerStarbucks
7610BRAccountLinkingRetailerColesAU
8366BRAccountLinkingRetailerDominosPizza
8643BRAccountLinkingRetailerAmazon
8646BRAccountLinkingRetailerWoolworthsAU
8652BRAccountLinkingRetailerInstacart
8662BRAccountLinkingRetailerUlta
9016BRAccountLinkingRetailerShipt
9137BRAccountLinkingRetailerUberEats
9416BRAccountLinkingRetailerThriveMarket
9947BRAccountLinkingRetailerChewy
10068BRAccountLinkingRetailerSeamless
10078BRAccountLinkingRetailerAmazonUK
10208BRAccountLinkingRetailerGrubhub
10241BRAccountLinkingRetailerDoordash
12099BRAccountLinkingRetailerAmazonCA
12686BRAccountLinkingRetailerAmazonES
12687BRAccountLinkingRetailerAmazonDE
12688BRAccountLinkingRetailerAmazonFR
12691BRAccountLinkingRetailerSheinES
12749BRAccountLinkingRetailerPcExpressCA
12819BRAccountLinkingRetailerTemuUK
12848BRAccountLinkingRetailerSheinUK
12849BRAccountLinkingRetailerAliExpressUK
12850BRAccountLinkingRetailerUberEatsUK
12881BRAccountLinkingRetailerTemu
12882BRAccountLinkingRetailerSheinUS
12948BRAccountLinkingRetailerAmazonAU
13246BRAccountLinkingRetailerAliExpress
19671BRAccountLinkingRetailerPostmates

BREReceiptIMAPError

Error codes for IMAP-related operations.

typedef NS_ENUM(NSUInteger, BREReceiptIMAPError) { ... };
enum BREReceiptIMAPError : UInt

SDK Version: 3.2.0

Cases

ValueObjective-C NameSwift Name
5BREReceiptIMAPErrorInvalidCredentialsinvalidCredentials
6BREReceiptIMAPErrorGmailIMAPDisabledgmailIMAPDisabled
40BREReceiptIMAPErrorGmailTwoFactorgmailTwoFactor

BREReceiptProvider

Identifies the email provider for an e-receipt account.

typedef NS_ENUM(NSUInteger, BREReceiptProvider) { ... };
enum BREReceiptProvider : UInt, @unchecked Sendable

SDK Version: 3.2.0
Defined in: BREmailAccount.h

Cases

ValueObjective-C NameSwift Name
0BREReceiptProviderNonenone
1BREReceiptProviderGmailgmail
2BREReceiptProviderOutlookoutlook
3BREReceiptProviderYahooyahoo
4BREReceiptProviderAOLaol
5BREReceiptProviderGmailIMAPgmailIMAP
6BREReceiptProviderCustomIMAPcustomIMAP
7BREReceiptProviderYahooV2yahooV2

BREReceiptRemoteError

Error codes for remote e-receipt scrape operations.

typedef NS_ENUM(NSUInteger, BREReceiptRemoteError) { ... };
enum BREReceiptRemoteError : UInt

SDK Version: 3.2.0

Cases

ValueObjective-C NameSwift NameDescription
0BREReceiptRemoteErrorNonenoneNo error
1BREReceiptRemoteErrorNoProvidernoProviderRemote scrape was attempted but no providers have been linked
2BREReceiptRemoteErrorInvalidProviderinvalidProviderRemote scrape was attempted with a provider that is not supported
3BREReceiptRemoteErrorNoCredentialsnoCredentialsRemote scrape was attempted but no valid credentials were found on disk for the specified provider
4BREReceiptRemoteErrorCantObtainTokencantObtainTokenRemote scrape was attempted for an OAuth provider but a new access token could not be obtained
5BREReceiptRemoteErrorInvalidCredentialsinvalidCredentialsThe supplied credentials failed to authenticate against the specified provider server side
6BREReceiptRemoteErrorExpiredTokenexpiredTokenFor OAuth providers this indicates the access token has expired
7BREReceiptRemoteErrorNoClientConfignoClientConfigNo client configuration for the remote scrape service was found server side
8BREReceiptRemoteErrorBadInputbadInputRemote scrape worker could not locate all required parameters to initiate scrape (Unexpected)
9BREReceiptRemoteErrorTimeouttimeoutRemote scrape worker timed out trying to connect to email provider
10BREReceiptRemoteErrorIMAPNoBoxesimapNoBoxesRemote scrape worker connected to IMAP account but found no mailboxes (Unexpected)
11BREReceiptRemoteErrorInvalidReceiptIDsinvalidReceiptIDsIndicates that one or more receipt IDs passed in to a reprocessing job was invalid (will not be returned client side)
12BREReceiptRemoteErrorClientEndpointErrorsclientEndpointErrorsIndicates failure to connect to the results endpoint configured server side (will not be returned client side)
13BREReceiptRemoteErrorJobInProgressjobInProgressCould not queue up a remote scrape job because there is already one queued or in progress for this email address
16BREReceiptRemoteErrorIMAPFailedConnectionimapFailedConnectionCould not connect to or authenticate with the IMAP server
999BREReceiptRemoteErrorUnknownunknownAn unknown error was encountered attempting to queue up the remote scrape job

BRSetupIMAPResult

Result codes returned after an IMAP setup flow completes.

typedef NS_ENUM(NSUInteger, BRSetupIMAPResult) { ... };
enum BRSetupIMAPResult : UInt, @unchecked Sendable

SDK Version: 3.2.0

Cases

ValueObjective-C NameSwift Name
0BRSetupIMAPResultUserCancelleduserCancelled
1BRSetupIMAPResultBadEmailbadEmail
2BRSetupIMAPResultBadPasswordbadPassword
3BRSetupIMAPResultEnabledLSAenabledLSA
4BRSetupIMAPResultRedirectToSafariredirectToSafari
5BRSetupIMAPResultCreatedAppPasswordcreatedAppPassword
6BRSetupIMAPResultAdminNeededadminNeeded
7BRSetupIMAPResultDuplicateEmailduplicateEmail
8BRSetupIMAPResultSavedsaved
9BRSetupIMAPResultUnknownFailureunknownFailure
10BRSetupIMAPResultEnabled2FAAccountRequiredenabled2FAAccountRequired