attractionWallet > Attraction Wallet

Add assets to an existing wallet. Note that in the Create Wallet and Add to Wallet, API calls, the assets may also be identified by their visual reference numbers. If the assetId does not interpret as a UUID, the system will attempt to resolve it as a visual reference number.

put/{tenant}/{environment}/{company}/attractionWallet/{walletId}

Request

  • Base URL
    https://api.npretail.app
  • Auth
    API key in header x-np-api-key

Path parameters

tenantstring required

Your Entra Tenant ID. More details.

environmentstring required

Your Business Central Environment. More details.

companystring required

Your Business Central Company. More details.

walletIdstring uuid required

A globally unique identifier for the wallet.

Headers

x-api-versionstring date

Used for API versioning. More details.

Request body

ticketsAttractionWalletTypesSimpleAssetId[]
memberCardsAttractionWalletTypesSimpleAssetId[]
couponsAttractionWalletTypesSimpleAssetId[]
vouchersAttractionWalletTypesSimpleAssetId[]

Response

Response with status 200

walletIdstring uuid required

A globally unique identifier for the wallet.

referenceNumberstring required

The visual reference number associated with the wallet.

descriptionstring required

A human-readable description of the wallet.

expiryDatetimestring required

The expiry datetime of the wallet in ISO 8601 format. Use an empty string if not applicable.

lastPrintedAtstring required

The datetime when the wallet was last printed in ISO 8601 format. Use an empty string if not applicable.

printCountinteger required

The number of times the wallet has been printed.

originatesFromItemNostring

The item number from which the wallet originates.

originatesFromDescriptionstring

The item description from which the wallet originates.

externalReferenceNumberstring

The visual reference number associated with the wallet.

Changes

    • breaking

      the request's body type changed from no type to object

    • breaking

      the response's body type changed from no type to object for status

    • warning

      deleted the header request parameter x-np-api-key

    • info

      the endpoint scheme security NPApiKeyAuthScheme was added to the API

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      for the path request parameter walletId, the type was generalized from no type to string, and format from no format to uuid

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      api operation id add-to-wallet removed and replaced with attractionWallet_serviceAttractionWallet_addToWallet