Advertisement
r0m4n91

Untitled

Jan 27th, 2022 (edited)
745
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // fields definition
  2. sku: string  // optional, if not passed it will be randomly generated
  3. product_id_type: csin | isbn10 | isbn13 // type of `product_id`
  4. product_id: string // ex isbn10 | csin >"8839518568", isbn13 > "9788839518569"
  5. active: 1 | 0 // default 1
  6. price // "12,20" | "12.20"
  7. quantity // 1
  8. item_condition: new | etc ..
  9. operation_type: add | delete | update
  10. condition_notes: string
  11. shipping_template: string // optional, if not passed, the default will be used
  12.  
  13. // CREATE
  14. // all headers are required. sku, condition_notes, active and shipping_template can be empty
  15.  
  16. // UPDATE
  17. // `sku` is required. Will be updated values for all headers, also if empty
  18.  
  19. // DELETE
  20. // `sku` is required. All other headers will be ignored
  21.  
  22. // csv example
  23. sku product_id_type product_id  price   quantity    item_condition  operation_type  condition_notes shipping_template
  24. sku_1   isbn10  8839518568  12,2    1   used_acceptable add accettabile blabla  books_1 // valid row
  25. sku_2   csin    8839518568  12.3    2   new update  descrizione aggiornata  // valid
  26. sku_3                       delete      // valid
  27. sku_4   csin    8839518568      2   new update  descrizione aggiornata // invalid, price = ""
  28.  
  29. // csv example 2
  30. sku price   operation_type  condition_notes
  31. sku_1   12,2    update  condizione aggiornata
  32.  
  33.  
  34. // csv example 3
  35.  
  36. sku operation_type
  37. sku_1   delete
  38.  
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement