Any examples on how to use requisition_lists API Endpoint?Magento SOAP (v1) API causes fatal error getSelect() after completed orderHow can I get product list with its detail in rest API I'm on magento2Changing/Modifying Magento 2 Rest Api call from urlGetting error in Rest Api guest-cart. [POST] V1/guest-carts/cart-id/itemsPassing Array in REST Api Magento2 (Post Method)How to return a JSON object with a custom REST API in Magento 2?Magento 2 Rest api to create order not adding shipping addressMagento 2.2 REST API Add Item to cart issueMagento 2 - Best approach for retrieving product data - REST API or Custom Endpoint?How to specific pass fields in custom rest api for get product Information

Improving Sati-Sampajañña (situative wisdom)

What food production methods would allow a metropolis like New York to become self sufficient

Extending Kan fibrations, without using minimal fibrations

How did Thanos not realise this had happened at the end of Endgame?

How to get my matrix to fit on the page

Can the president of the United States be guilty of insider trading?

Has there been evidence of any other gods?

When do you stop "pushing" a book?

Is it a Munchausen Number?

Why does the Earth follow an elliptical trajectory rather than a parabolic one?

Is there an application which does HTTP PUT?

Why can't I prove summation identities without guessing?

Is it nonsense to say B -> [A -> B]?

How are one-time password generators like Google Authenticator different from having two passwords?

Is there ever a rule not to place certain words on separate lines in a Sefer Torah?

Is there a need for better software for writers?

When quoting someone, is it proper to change "gotta" to "got to" without modifying the rest of the quote?

Can more than one creature benefit from multiple Hunter's Mark spells cast on the same target?

What can cause an unfrozen indoor copper drain pipe to crack?

Why does it take longer to fly from London to Xi'an than to Beijing

Why do unstable nuclei form?

How to handle DM constantly stealing everything from sleeping characters?

Is a vertical stabiliser needed for straight line flight in a glider?

Noob at soldering, can anyone explain why my circuit wont work?



Any examples on how to use requisition_lists API Endpoint?


Magento SOAP (v1) API causes fatal error getSelect() after completed orderHow can I get product list with its detail in rest API I'm on magento2Changing/Modifying Magento 2 Rest Api call from urlGetting error in Rest Api guest-cart. [POST] V1/guest-carts/cart-id/itemsPassing Array in REST Api Magento2 (Post Method)How to return a JSON object with a custom REST API in Magento 2?Magento 2 Rest api to create order not adding shipping addressMagento 2.2 REST API Add Item to cart issueMagento 2 - Best approach for retrieving product data - REST API or Custom Endpoint?How to specific pass fields in custom rest api for get product Information






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















ORIGINAL POST




Trying to use the save requisition list REST API endpoint. The API docs are not very clear on what the values should be and currently don't have access to the B2B module code to see what it exactly needs for the JSON input.



So, has anyone used this endpoint before? What would be a working example JSON? Am I even supposed to use this endpoint?



Doc link: https://devdocs.magento.com/redoc/2.3/async-admin-rest-api.html#operation/requisitionListRequisitionListRepositoryV1SavePost



Endpoint Example (POST method): https://magento-store.com/index.php/rest/V1/requisition_lists



Example of what I have used:




"requisitionList":
"id": 0,
"customer_id": 215120,
"name": "My List A",
"updated_at": "2019-05-06T15:49:00",
"description": "None",
"items": [

"id": 1,
"sku": 20410320,
"requisition_list_id": 0,
"qty": 10,
"options": [],
"store_id": 1,
"added_at": "2019-05-06T15:49:00",
"extension_attributes":

],
"extension_attributes":




Example Responses (2 of them):




"message": "Could not save Requisition List"




"message": "Internal Error. Details are available in Magento log file. Report ID: error-id"



UPDATE




It seems that not all the JSON fields are required as pointed out in the comments. I am now able to update an existing requisition list if I have the requisition list ID. I guess now does anyone know how to create a brand new list for a customer?



Request:




"requisitionList":
"id":755,
"customer_id": 215120,
"name": "My List E",
"items": [

"sku": 16740700,
"qty": 3,
"store_id": 1

]




Response:




"id": 755,
"customer_id": null,
"name": "My List E",
"updated_at": "1557246976",
"description": null,
"items": [

"id": 1316,
"sku": "16740700",
"requisition_list_id": 755,
"qty": 3,
"options": [],
"store_id": 1,
"added_at": null

]










share|improve this question









New contributor



Henry Nitz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • you can remove id since it has to be dynamically created then make sure you have store with store id 1

    – magefms
    May 6 at 21:48











  • @magefms Thanks, I will try that. I had it included in the JSON as the docs labeled it as required.

    – Henry Nitz
    2 days ago






  • 1





    @magefms That seemed to work for updating a list. I've updated the post. Any ideas/information on creating a new list for a customer? Thanks.

    – Henry Nitz
    2 days ago

















1















ORIGINAL POST




Trying to use the save requisition list REST API endpoint. The API docs are not very clear on what the values should be and currently don't have access to the B2B module code to see what it exactly needs for the JSON input.



So, has anyone used this endpoint before? What would be a working example JSON? Am I even supposed to use this endpoint?



Doc link: https://devdocs.magento.com/redoc/2.3/async-admin-rest-api.html#operation/requisitionListRequisitionListRepositoryV1SavePost



Endpoint Example (POST method): https://magento-store.com/index.php/rest/V1/requisition_lists



Example of what I have used:




"requisitionList":
"id": 0,
"customer_id": 215120,
"name": "My List A",
"updated_at": "2019-05-06T15:49:00",
"description": "None",
"items": [

"id": 1,
"sku": 20410320,
"requisition_list_id": 0,
"qty": 10,
"options": [],
"store_id": 1,
"added_at": "2019-05-06T15:49:00",
"extension_attributes":

],
"extension_attributes":




Example Responses (2 of them):




"message": "Could not save Requisition List"




"message": "Internal Error. Details are available in Magento log file. Report ID: error-id"



UPDATE




It seems that not all the JSON fields are required as pointed out in the comments. I am now able to update an existing requisition list if I have the requisition list ID. I guess now does anyone know how to create a brand new list for a customer?



Request:




"requisitionList":
"id":755,
"customer_id": 215120,
"name": "My List E",
"items": [

"sku": 16740700,
"qty": 3,
"store_id": 1

]




Response:




"id": 755,
"customer_id": null,
"name": "My List E",
"updated_at": "1557246976",
"description": null,
"items": [

"id": 1316,
"sku": "16740700",
"requisition_list_id": 755,
"qty": 3,
"options": [],
"store_id": 1,
"added_at": null

]










share|improve this question









New contributor



Henry Nitz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • you can remove id since it has to be dynamically created then make sure you have store with store id 1

    – magefms
    May 6 at 21:48











  • @magefms Thanks, I will try that. I had it included in the JSON as the docs labeled it as required.

    – Henry Nitz
    2 days ago






  • 1





    @magefms That seemed to work for updating a list. I've updated the post. Any ideas/information on creating a new list for a customer? Thanks.

    – Henry Nitz
    2 days ago













1












1








1








ORIGINAL POST




Trying to use the save requisition list REST API endpoint. The API docs are not very clear on what the values should be and currently don't have access to the B2B module code to see what it exactly needs for the JSON input.



So, has anyone used this endpoint before? What would be a working example JSON? Am I even supposed to use this endpoint?



Doc link: https://devdocs.magento.com/redoc/2.3/async-admin-rest-api.html#operation/requisitionListRequisitionListRepositoryV1SavePost



Endpoint Example (POST method): https://magento-store.com/index.php/rest/V1/requisition_lists



Example of what I have used:




"requisitionList":
"id": 0,
"customer_id": 215120,
"name": "My List A",
"updated_at": "2019-05-06T15:49:00",
"description": "None",
"items": [

"id": 1,
"sku": 20410320,
"requisition_list_id": 0,
"qty": 10,
"options": [],
"store_id": 1,
"added_at": "2019-05-06T15:49:00",
"extension_attributes":

],
"extension_attributes":




Example Responses (2 of them):




"message": "Could not save Requisition List"




"message": "Internal Error. Details are available in Magento log file. Report ID: error-id"



UPDATE




It seems that not all the JSON fields are required as pointed out in the comments. I am now able to update an existing requisition list if I have the requisition list ID. I guess now does anyone know how to create a brand new list for a customer?



Request:




"requisitionList":
"id":755,
"customer_id": 215120,
"name": "My List E",
"items": [

"sku": 16740700,
"qty": 3,
"store_id": 1

]




Response:




"id": 755,
"customer_id": null,
"name": "My List E",
"updated_at": "1557246976",
"description": null,
"items": [

"id": 1316,
"sku": "16740700",
"requisition_list_id": 755,
"qty": 3,
"options": [],
"store_id": 1,
"added_at": null

]










share|improve this question









New contributor



Henry Nitz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











ORIGINAL POST




Trying to use the save requisition list REST API endpoint. The API docs are not very clear on what the values should be and currently don't have access to the B2B module code to see what it exactly needs for the JSON input.



So, has anyone used this endpoint before? What would be a working example JSON? Am I even supposed to use this endpoint?



Doc link: https://devdocs.magento.com/redoc/2.3/async-admin-rest-api.html#operation/requisitionListRequisitionListRepositoryV1SavePost



Endpoint Example (POST method): https://magento-store.com/index.php/rest/V1/requisition_lists



Example of what I have used:




"requisitionList":
"id": 0,
"customer_id": 215120,
"name": "My List A",
"updated_at": "2019-05-06T15:49:00",
"description": "None",
"items": [

"id": 1,
"sku": 20410320,
"requisition_list_id": 0,
"qty": 10,
"options": [],
"store_id": 1,
"added_at": "2019-05-06T15:49:00",
"extension_attributes":

],
"extension_attributes":




Example Responses (2 of them):




"message": "Could not save Requisition List"




"message": "Internal Error. Details are available in Magento log file. Report ID: error-id"



UPDATE




It seems that not all the JSON fields are required as pointed out in the comments. I am now able to update an existing requisition list if I have the requisition list ID. I guess now does anyone know how to create a brand new list for a customer?



Request:




"requisitionList":
"id":755,
"customer_id": 215120,
"name": "My List E",
"items": [

"sku": 16740700,
"qty": 3,
"store_id": 1

]




Response:




"id": 755,
"customer_id": null,
"name": "My List E",
"updated_at": "1557246976",
"description": null,
"items": [

"id": 1316,
"sku": "16740700",
"requisition_list_id": 755,
"qty": 3,
"options": [],
"store_id": 1,
"added_at": null

]







magento2 api rest b2b magento-2-commerce






share|improve this question









New contributor



Henry Nitz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share|improve this question









New contributor



Henry Nitz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this question




share|improve this question








edited 2 days ago







Henry Nitz













New contributor



Henry Nitz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked May 6 at 21:07









Henry NitzHenry Nitz

62




62




New contributor



Henry Nitz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




Henry Nitz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.














  • you can remove id since it has to be dynamically created then make sure you have store with store id 1

    – magefms
    May 6 at 21:48











  • @magefms Thanks, I will try that. I had it included in the JSON as the docs labeled it as required.

    – Henry Nitz
    2 days ago






  • 1





    @magefms That seemed to work for updating a list. I've updated the post. Any ideas/information on creating a new list for a customer? Thanks.

    – Henry Nitz
    2 days ago

















  • you can remove id since it has to be dynamically created then make sure you have store with store id 1

    – magefms
    May 6 at 21:48











  • @magefms Thanks, I will try that. I had it included in the JSON as the docs labeled it as required.

    – Henry Nitz
    2 days ago






  • 1





    @magefms That seemed to work for updating a list. I've updated the post. Any ideas/information on creating a new list for a customer? Thanks.

    – Henry Nitz
    2 days ago
















you can remove id since it has to be dynamically created then make sure you have store with store id 1

– magefms
May 6 at 21:48





you can remove id since it has to be dynamically created then make sure you have store with store id 1

– magefms
May 6 at 21:48













@magefms Thanks, I will try that. I had it included in the JSON as the docs labeled it as required.

– Henry Nitz
2 days ago





@magefms Thanks, I will try that. I had it included in the JSON as the docs labeled it as required.

– Henry Nitz
2 days ago




1




1





@magefms That seemed to work for updating a list. I've updated the post. Any ideas/information on creating a new list for a customer? Thanks.

– Henry Nitz
2 days ago





@magefms That seemed to work for updating a list. I've updated the post. Any ideas/information on creating a new list for a customer? Thanks.

– Henry Nitz
2 days ago










0






active

oldest

votes












Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






Henry Nitz is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f273578%2fany-examples-on-how-to-use-requisition-lists-api-endpoint%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








Henry Nitz is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















Henry Nitz is a new contributor. Be nice, and check out our Code of Conduct.












Henry Nitz is a new contributor. Be nice, and check out our Code of Conduct.











Henry Nitz is a new contributor. Be nice, and check out our Code of Conduct.














Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f273578%2fany-examples-on-how-to-use-requisition-lists-api-endpoint%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form