How I can test a token create with Vault and use in the batch csv upload?

Hi,

i wondering how I can test a vault data_key token created with the api service vault in the csv upload.

When I send the current line with a token created in another store I receive the error 983 cannot find previous because the token does not exist.

res_purchase_cc,abc12345670-10203,XYZ3616998,1.00,DataToken-Here,1

I realise that my token is never created because I work on 2 distinct QA store id store3 for the batch upload and store1 for the token vault.

I achieve to test by creating a token in the batch file csv.

res_add_cc,1234567,XYZ3616998,5143865972,jonatanbouilloa@gmail.com,test,4242424242424242,1111,7

I'm wondering if there is a store available that work for both or I need to use my own store id?

 

  • There is no link for tokens between stores. A store can only access its own tokens. Easiest thing would be to use the same store for your API transactions and your batch upload. The API token for store1, 3 and 5 are the same (yesguy) so simply change the store_id to point to the same store as the one you are using for batch upload.