RE: Crypto / Walmart P1

In order to connect to Walmart P1 (DSV) we need to generate a signature. Below are the steps

  1. Decode the byte array with Base-64.
  2. Encode the resulting value using PKCS#8 to represent your Private Key.
    Libraries in various languages offer the ability to identify that the Private Key is in PKCS#8 format and not in other conflicting formats such as PKCS#1.
  3. Use this byte representation of the Private Key to sign the data using SHA-256 with RSA.
  4. Encode the generated digital signature using Base 64.

I’m really confused. I know I have to use N/crypto but  B and C and D do not work

Anyone ever worked with Walmart ?

 

simon5337 Rookie Asked on June 17, 2020 in SuiteScript.
Add Comment
1 Answers

Yes I’ve worked with Walmart API before. If memory serves me right I had to write a web service in C# .NET that Netsuite could call to generate the signature that could be consumed as JSON object to use for authenticating with the Walmart API.

Beginner Answered on June 17, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.