CGSmith-LLC / shipwise-api

Shipwise API
Other
0 stars 0 forks source link

Allow csvbox import to modify status #176

Open bohdan-vorona opened 1 year ago

bohdan-vorona commented 1 year ago

The sample template is attached.

Guide:

  1. Create a new (or edit the current one) CSVBOX template similar to the current one but add a new field to the end.
Column Name: Status
Column Type: Dynamic List
List Source API URL: GET https://shipwise.ngrok.io/v1/statuses
Don't check "Required" (important)
  1. Edit Sheet -> Display -> Update the field Help Text. So here you can add information that there is one additional field - Status.

  2. The field is optional. It means that the current template (without the field) will work as the new template (attached below; with the field) as well.

  3. Since CSVBOX requires to have specific names for Dynamic Lists, I added the ability to change the key and the value of the statuses list in our API via GET parameters (added to the API docs). Default values = values needed for Dynamic Lists.

  4. If there will be an error pulling statuses from https://shipwise.ngrok.io/v1/statuses in the browser console, apply this -> https://stackoverflow.com/a/73271938/2964248


Order_Import_Example.csv


Swagger:

csvbox-swagger

API Statuses:

csvbox-api-statuses

CSVBOX:

api-statuses-csvbox

Map columns:

csvbox-map-columns

Statuses column:

csvbox-statuses-column

Status selection:

csvbox-status-selection

Webhook data:

csvbox-webhook-data