question

jameswood avatar image
jameswood asked jameswood answered

Create atomic order not working

For the create atomic order endpoint, I get the error

Referenced order type does not exist

when i run it from the online api reference, and when i run it from my php curl request I get

{"details":"Cart is empty or missing","message":"cart_is_empty_or_missing"}


Here is the data i am submitting

Array
(
    [orderType] => Array
        (
            [id] => existing-order-type-id
        )

    [orderCart] => Array
        (
            [lineItems] => Array
                (
                    [0] => Array
                        (
                            [item] => Array
                                (
                                    [id] => existing-line-item-id
                                )

                        )

                )

        )

)


Orders
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

David Marginian avatar image
David Marginian Deactivated answered

OrderType is an object, not an array. If you continue to have issues provide the json you are posting?

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jameswood avatar image
jameswood answered

Thank you! That worked!

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community